framenix: try some recommendedpatches for amd-pmf

This commit is contained in:
Trolli Schmittlauch 2024-02-17 17:52:52 +01:00
parent 7ebe7bc149
commit 1d8de843af

View file

@ -33,6 +33,18 @@ in
# revert some commits that introduced the clourful graphics artefacts flickering,
# at least that's the current working hypothesis in https://gitlab.freedesktop.org/drm/amd/-/issues/3097
boot.kernelPatches = [
{name = "[v3,2/2] platform/x86/amd/pmf: Fix TEE enact command failure after suspend and resume (suspend-resume-freeze)";
patch = pkgs.fetchpatch {
url = "https://patchwork.kernel.org/project/platform-driver-x86/patch/20240216064112.962582-2-Shyam-sundar.S-k@amd.com/raw/";
hash = "sha256-qUobf4IpvNemFcB0BAvMvpV/85O6to5XvJB3HA5fEOw=";
};
}
{name = "[v3,1/2] platform/x86/amd/pmf: remove smart_pc_status enum (suspend-resume-freeze)";
patch = pkgs.fetchpatch {
url = "https://patchwork.kernel.org/project/platform-driver-x86/patch/20240216064112.962582-1-Shyam-sundar.S-k@amd.com/raw/";
hash = "sha256-whJEq3lubsRP+AX/BPLUUzX4T0RefuiCqw+GLG+pc5U=";
};
}
{name = "drm/buddy: Fix alloc_range() error handling code";
patch = pkgs.fetchpatch {
url = "https://cgit.freedesktop.org/drm/drm-misc/patch/?id=8746c6c9dfa31d269c65dd52ab42fde0720b7d91";
@ -41,7 +53,7 @@ in
}
];
# fix freezes after s2idle suspend-resume
boot.blacklistedKernelModules = [ "amd-pmf" ];
#boot.blacklistedKernelModules = [ "amd-pmf" ];
boot.kernelParams = [
# temporary workaround for white flickering graphics artefacts