I recently switched my port tree from 2021Q2 to 2021Q3, after updating and rebooting my FreeBSD 13.0 system, I started to notice random system freeze, I can ssh to the frozen system, and from dmesg I see: --- Aug 4 08:58:51 Fryzen495 kernel: drmn0: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32769, for process pid 100349 thread pid 100349) Aug 4 08:58:51 Fryzen495 kernel: drmn0: in page starting at address 0x000080012c3f0000 from client 27 Aug 4 08:58:51 Fryzen495 kernel: drmn0: VM_L2_PROTECTION_FAULT_STATUS:0x00141051 Aug 4 08:58:51 Fryzen495 kernel: drmn0: MORE_FAULTS: 0x1 Aug 4 08:58:51 Fryzen495 kernel: drmn0: WALKER_ERROR: 0x0 Aug 4 08:58:51 Fryzen495 kernel: drmn0: PERMISSION_FAULTS: 0x5 Aug 4 08:58:51 Fryzen495 kernel: drmn0: MAPPING_ERROR: 0x0 Aug 4 08:58:51 Fryzen495 kernel: drmn0: RW: 0x1 --- The only thing seemed relevant for me between 2021Q2 and 2021Q3 is the newer GPU firmware g20210330 versus g20210224. I downgraded to g20210224, rebooted the system, and it is running stable as before. My system is a Thinkpad T495 with Picasso GPU. Please don't hesitate to ask for more information.
Created attachment 227129 [details] Attaching the relevant part of dmesg when the problem had occured.
Created attachment 227131 [details] pciconf -lvb full output
Although I have a Picasso, I have never experienced the problem. Anyway, it seems to be related to the following upstream commits pushed today: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=d7b50e61669dc137924337d03d09b8986eb752a3 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=99d72504bff7ab40c261b8509c0b9d8abf98b296 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=d843e520a4b0d92b986645548d11ade3b9b239a4
Created attachment 227136 [details] Update amdgpu firmwares to the latest Please try this patch.
Created attachment 227137 [details] Update amdgpu firmwares to the latest Sorry, the previous patch was incomplete. Please try this instead.
(In reply to Jung-uk Kim from comment #5) Actually, this firmware caused problem for my Picasso platform, i.e., Ryzen 5 3500U, and the firmware in the ports tree is working just fine. :-(
(In reply to Jung-uk Kim from comment #6) I tried every firmware release for amdgpu since 20210315. 20210511 and 20210716 worked fine for me.
Created attachment 227143 [details] Update amdgpu firmwares to 20210716 This patch sync. amdgpu firmwares to linux-firmware-20210716. Please try this too if possible.
I will give linux-firmware-20210716 a try and report back here.
I'm using linux-firmware-20210716 on my T495 since Thu Aug 19 18:05 without any issue so far.
(In reply to Ali Abdallah from comment #10) Too fast, today I had the same crash with linux-firmware-20210716, going back to g20210224.
Hello, I had been having crashes related to graphics (thought it was this: https://github.com/freebsd/drm-kmod/issues/78 at first) since April. A couple weeks ago I decided to try the patch in this PR that upgrades `graphics/drm-firmware-kmod` to 20210812 and with that my problem has been gone. This is a Lenovo A485 with an AMD Ryzen 7 PRO 2700U w/ Radeon Vega Mobile Gfx.
Firmware version 20220511 works fine for me.