[Bug 276757] graphics/drm-515-kmod: Black screen freeze (RX 6600, FreeBSD-14.0-RELEASE-p3)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Feb 2024 01:10:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276757

            Bug ID: 276757
           Summary: graphics/drm-515-kmod: Black screen freeze (RX 6600,
                    FreeBSD-14.0-RELEASE-p3)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: illegalcoding@proton.me
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

Created attachment 248111
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248111&action=edit
/var/log/messages file

Whenever X11 has been running for roughly 4,5 - 5 hours (although sometimes
(rarely) this happens in just some tens of minutes) both my screens go black,
and I have to hard reset my PC (i.e.: press the reset button on the front of
the case) to get a working system again.

It's important to note that this doesn't panic or fully crash the system, audio
still works, and it doesn't panic, but it's effectively useless, and the
screens will not come back on no matter what.

I'm using an RX 6600 with 2 displays: 1 DP display @ 1920x1080 165hz, and 1
HDMI display @ 1920x1080 60hz. I'm also using the xf86-video-amdgpu driver with
XDM as my display manager and DWM as my window manager. 

I believe this is an issue in drm-515-kmod as /var/log/messages includes some
drm-related errors when this "crash" happens. Mainly stuff about "waiting for
fences timed out" and "GPU reset failed". I initially had the same issues as in
bug #274770, but the panics were fixed with compiling drm-kmod from the
5.15-lts-focal branch, and I now have these black screen freezes instead.

Apologies if this makes this a duplicate, but as that one isn't very active and
not exactly about the same issue (no panics or anything), I thought i'd try
opening a new bug specifically for the black screen freeze.

I doubt this is a hardware issue, as my GPU works flawlessly under OpenBSD 7.4
and Linux. Under Windows I get some weird artifacting and screen resets
occasionally, but that sounds like a driver issue as it works on OpenBSD &
Linux.

I've attached my /var/log/messages file which contains the drm-related errors.
I've also done a hw-probe, it's at https://bsd-hardware.info/?probe=b41ed8f957

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