From 70a8ff0a2511c300a7ab4dc8a9ab03328d52da5a Mon Sep 17 00:00:00 2001 From: Steffen Weitz Date: Sun, 26 Mar 2023 23:53:18 +0200 Subject: [PATCH] Add settings for AMD Raphael iGPU --- common/cpu/amd/raphael/igpu.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 common/cpu/amd/raphael/igpu.nix diff --git a/common/cpu/amd/raphael/igpu.nix b/common/cpu/amd/raphael/igpu.nix new file mode 100644 index 0000000..1192d41 --- /dev/null +++ b/common/cpu/amd/raphael/igpu.nix @@ -0,0 +1,15 @@ +{ lib, pkgs, ... }: + +{ + # Disables scatter/gather which was introduced with kernel version 6.2 + # It produces completely white or flashing screens when enabled while using the iGPU of Ryzen 7000-series CPUs (Raphael) + + imports = [ ../. ]; + + boot = lib.mkMerge [ + (lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") { + kernelPackages = pkgs.linuxPackages_latest; + kernelParams = lib.mkMerge [["amdgpu.sg_display=0"]]; + }) + ]; +}