[Bug 285747] graphics/drm-61-kmod: Freezes with AMD GPU

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Mar 2025 18:21:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285747

            Bug ID: 285747
           Summary: graphics/drm-61-kmod: Freezes with AMD GPU
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: bsd@orsolic.org
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

I am on FreeBSD 14.2-RELEASE on my desktop PC with AMD 4750G Renoir GPU.

% freebsd -ku
14.2-RELEASE-p1
14.2-RELEASE-p2

% pkg info drm\*
drm-61-kmod-6.1.128.1402000_1

% uptime
 1:52PM  up 10 days, 16:26, 42 users, load averages: 7.02, 6.47, 6.42

% kldstat | grep -iE 'drm|amdgpu'
 8    1 0xffffffff83e00000   6878f0 amdgpu.ko
 9    2 0xffffffff83c13000    88082 drm.ko
15    1 0xffffffff83cbe000     64e0 amdgpu_renoir_sdma_bin.ko
16    1 0xffffffff83cc5000    2c2e0 amdgpu_renoir_asd_bin.ko
17    1 0xffffffff83cf2000     c4e0 amdgpu_renoir_ta_bin.ko
18    1 0xffffffff83cff000    1fbe8 amdgpu_renoir_dmcub_bin.ko
19    1 0xffffffff83d1f000     7560 amdgpu_renoir_pfp_bin.ko
20    1 0xffffffff83d27000     6560 amdgpu_renoir_me_bin.ko
21    1 0xffffffff83d2e000     4560 amdgpu_renoir_ce_bin.ko
22    1 0xffffffff83d33000     bcd8 amdgpu_renoir_rlc_bin.ko
23    1 0xffffffff83d3f000    43800 amdgpu_renoir_mec_bin.ko
24    1 0xffffffff83d83000    645a0 amdgpu_renoir_vcn_bin.ko

drm-kmod and gpu-firmware are compiled from ports.
All pkgs and system are up to the date.
System will freeze for seconds, later for minutes - mouse cursor will move but
won't do anything, audio will play but video will stop, it would not be
possible to switch alt-tab programs or do anything on the PC.
There is nothing related in /var/log/messages.
As the uptime grows, freezes will be longer and longer (5 minutes and longer is
not unusual, measured personal record is 27 minutes), VM will stop working,
audio too, keyboard and mouse won't react.
Sometimes problem occurs freshly after restart, sometimes days are needed for
reproduction.
Same thing if picom is used or not.

Everything was working without problems for the past 5 years until few weeks
ago. I think it started on 14.1, before 14.2-RELEASE upgrade, but I am not sure
anymore (although I remember that I did upgraded all pkgs and rebooted after
few months of uptime and then problem started).
Nothing has changed HW wise in years. RAM is healthy (according to memtest),
ZFS doesn't report problems on NVMe nor SATA drives.

I did try to use drm-515 but that ends with kernel panic.
Rebuilding older drm-kmods from ports didn't help.

My problem seems similar to the
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284480 but there are no zpool
scrubs involved.

Is there something I can do? This is making my system unusable (and having
freezes of 5+ minutes every windows switch is not nice either)

-- 
You are receiving this mail because:
You are the assignee for the bug.