From b40af51eec2c2a5b4088e1b613afd881623f6d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Mon, 1 Dec 2025 20:18:14 +0100 Subject: [PATCH] =?UTF-8?q?framework/amd:=20disable=20Panel=20Replay=20in?= =?UTF-8?q?=20addition=20to=20PSR=20(0x10=20=E2=86=92=200x410)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Panel Replay requires PSR/PSR-SU to also be disabled to avoid heavy framebuffer corruption and flickering. Using 0x410 disables all three. References: - https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459 - https://gitlab.freedesktop.org/drm/amd/-/issues/3647 - https://community.frame.work/t/workaround-graphical-corruption-with-780m-igpu/61750 - https://gist.github.com/lbrame/f9034b1a9fe4fc2d2835c5542acb170a --- framework/13-inch/common/amd.nix | 8 +++++--- framework/16-inch/common/amd.nix | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/framework/13-inch/common/amd.nix b/framework/13-inch/common/amd.nix index 4a89f8dae..1f454371e 100644 --- a/framework/13-inch/common/amd.nix +++ b/framework/13-inch/common/amd.nix @@ -7,12 +7,14 @@ ]; boot.kernelParams = [ - # There seems to be an issue with panel self-refresh (PSR) that - # causes hangs for users. + # Disable PSR, PSR-SU, and Panel Replay to fix display hangs and corruption. + # Panel Replay requires PSR/PSR-SU to also be disabled to avoid issues. # # https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459 # https://gitlab.freedesktop.org/drm/amd/-/issues/3647 - "amdgpu.dcdebugmask=0x10" + # https://community.frame.work/t/workaround-graphical-corruption-with-780m-igpu/61750 + # https://gist.github.com/lbrame/f9034b1a9fe4fc2d2835c5542acb170a + "amdgpu.dcdebugmask=0x410" ] # Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/ ++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [ diff --git a/framework/16-inch/common/amd.nix b/framework/16-inch/common/amd.nix index 4a89f8dae..1f454371e 100644 --- a/framework/16-inch/common/amd.nix +++ b/framework/16-inch/common/amd.nix @@ -7,12 +7,14 @@ ]; boot.kernelParams = [ - # There seems to be an issue with panel self-refresh (PSR) that - # causes hangs for users. + # Disable PSR, PSR-SU, and Panel Replay to fix display hangs and corruption. + # Panel Replay requires PSR/PSR-SU to also be disabled to avoid issues. # # https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459 # https://gitlab.freedesktop.org/drm/amd/-/issues/3647 - "amdgpu.dcdebugmask=0x10" + # https://community.frame.work/t/workaround-graphical-corruption-with-780m-igpu/61750 + # https://gist.github.com/lbrame/f9034b1a9fe4fc2d2835c5542acb170a + "amdgpu.dcdebugmask=0x410" ] # Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/ ++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [