Bug 258546

Summary: graphics/gpu-firmware-radeon-kmod: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
Product: Ports & Packages Reporter: Nick Briggs <nicholas.h.briggs>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin, jakub_lach, manu, x11
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (jmd)
grahamperrin: maintainer-feedback? (x11)
Hardware: Any   
OS: Any   
URL: https://www.freshports.org/graphics/gpu-firmware-radeon-kmod/
Attachments:
Description Flags
Contents of /var/log/messages showing radeon failure on reboot none

Description Nick Briggs 2021-09-16 21:12:20 UTC
Created attachment 227951 [details]
Contents of /var/log/messages showing radeon failure on reboot

Since updating to FreeBSD 13.0 RELEASE (currently FreeBSD 13.0-RELEASE-p4) from FreeBSD 12.2 RELEASE I've been getting failures on boot when loading boot/modules/radeon_R100_cp_bin.ko (from gpu-firmware-kmod-g20210330)

[drm] Loading R100 Microcode
drmn0: successfully loaded firmware image 'radeon/R100_cp.bin'
[drm] radeon: ring at 0x0000000040001000
[drm ERROR :r100_ring_test] radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
[drm ERROR :r100_cp_init] radeon: cp isn't working (-22).
drmn0: failed initializing CP (-22).
drmn0: Disabling GPU acceleration
[drm ERROR :r100_cp_fini] Wait for CP idle timeout, shutting down CP.
[drm] radeon: cp finalized

This is an (old) HP/Compaq nc4010 laptop.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2021-09-19 15:53:23 UTC
(In reply to Nick Briggs from comment #0)

> … HP/Compaq nc4010 …

pciconf -lv | grep -B 3 -A 2 display
Comment 2 Nick Briggs 2021-09-19 15:54:38 UTC
vgapci0@pci0:1:5:0:	class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4337 subvendor=0x0e11 subdevice=0x005a
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'RS200M [Radeon IGP 330M/340M/345M/350M]'
    class      = display
    subclass   = VGA
Comment 3 Nick Briggs 2022-05-07 00:51:20 UTC
Updated to the firmware in the packages released today… still a problem
Comment 4 Nick Briggs 2022-09-21 01:20:39 UTC
Now on 13.1-RELEASE-p2, with

Name    : gpu-firmware-radeon-kmod-r100-20220511
Comment : Firmware modules for r100 Radeon GPUs
Repo    : FreeBSD
Filename: boot/modules/radeon_R100_cp_bin.ko

and

Name    : drm-510-kmod-5.10.113_6
Comment : DRM drivers modules
Repo    : FreeBSD
Filename: boot/modules/radeonkms.ko

and this is still a problem.
Comment 5 Nick Briggs 2023-01-22 22:30:53 UTC
Upgraded to:

% pkg provides boot/modules/radeonkms.ko
Name    : drm-510-kmod-5.10.163
Comment : DRM drivers modules
Repo    : FreeBSD
Filename: boot/modules/radeonkms.ko

Does anyone have any suggestions how to approach fixing this?