patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Demi Marie Obenour <demiobenour@gmail.com>
To: Spectrum OS Development <devel@spectrum-os.org>
Cc: Alyssa Ross <hi@alyssa.is>, Demi Marie Obenour <demiobenour@gmail.com>
Subject: [PATCH v2] Disable panel self-refresh on AMD GPUs
Date: Wed, 20 May 2026 22:05:51 -0400	[thread overview]
Message-ID: <20260520-disable-panel-self-refresh-v2-1-959c8ac37078@gmail.com> (raw)
In-Reply-To: <20260520-disable-panel-self-refresh-v1-1-dbc6ff6617c8@gmail.com>

KDE Linux has already done this.  It works around a long-running bug in
the AMD GPU driver, which I believe also affects my test laptop.
Without the workaround, the system freezes and does not recover until a
hard reboot.

A potential fix has been sent upstream, but there's no guarantee it
fixes the problem and it isn't in mainline yet.  Once the relevant
the fix included in the latest stable kernel and confirmed to work,
this patch can be reverted.

Link: https://invent.kde.org/kde-linux/kde-linux/-/merge_requests/431
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/4831
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/4643
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/4816
Link: https://lore.kernel.org/amd-gfx/20260519220529.202096-1-sunpeng.li@amd.com/
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
---
Changes in v2:
- Link to multiple reports of the bug.
- Link to KDE Linux's choice to add amdgpu.dcdebugmask=0x10.
- Link to v1: https://spectrum-os.org/lists/archives/spectrum-devel/20260520-disable-panel-self-refresh-v1-1-dbc6ff6617c8@gmail.com
---
 host/efi.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/host/efi.nix b/host/efi.nix
index ecedb6bea6bf29c7a7303dc9062fe12b5c7a9fbd..a832489f3816ca66c2170f0f114a4a8e3a357e32 100644
--- a/host/efi.nix
+++ b/host/efi.nix
@@ -35,6 +35,6 @@ runCommand "spectrum-efi" {
       --linux ${kernel} \
       --initrd ${initramfs} \
       --os-release $'NAME="Spectrum"\n' \
-      --cmdline "ro intel_iommu=on roothash=$roothash"
+      --cmdline "ro intel_iommu=on roothash=$roothash amdgpu.dcdebugmask=0x10"
   ''
 ) (_: {})

---
base-commit: 5b3151fd08d1f1e3e166a328449fe6fe5092f316
change-id: 20260520-disable-panel-self-refresh-6c5e1dc0bab5

-- 
Sincerely,
Demi Marie Obenour (she/her/hers)


  reply	other threads:[~2026-05-21  2:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-21  1:29 [PATCH] Disable panel self-refresh on AMD GPUs Demi Marie Obenour
2026-05-21  2:05 ` Demi Marie Obenour [this message]
2026-05-21 12:52   ` [PATCH v2] " Alyssa Ross
2026-05-21 14:04     ` Demi Marie Obenour
2026-05-21 15:50       ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260520-disable-panel-self-refresh-v2-1-959c8ac37078@gmail.com \
    --to=demiobenour@gmail.com \
    --cc=devel@spectrum-os.org \
    --cc=hi@alyssa.is \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).