mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
amd/cpu/raphael-igpu: enable scatter/gather for kernel 6.6+
Scatter/gather was introduced in 6.2 kernel and caused flickering and various issues when running iGPU on Ryzen 7000-series CPUs. This issue is not observed in kernel 6.6 or newer versions so we can enable it for kernel 6.6 and newer versions.
This commit is contained in:
parent
239c3864fe
commit
0cd5621572
1 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,15 @@
|
||||||
{ lib, pkgs, config, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
|
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
|
||||||
# Disables scatter/gather which was introduced with kernel version 6.2
|
# 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)
|
# It produces completely white or flashing screens when enabled while using the iGPU of Ryzen 7000-series CPUs (Raphael)
|
||||||
|
# This issue is not seen in kernel 6.6 or newer versions
|
||||||
|
|
||||||
imports = [ ../. ];
|
imports = [ ../. ];
|
||||||
|
|
||||||
|
@ -12,8 +18,9 @@
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2") {
|
(lib.mkIf (
|
||||||
kernelParams = ["amdgpu.sg_display=0"];
|
(lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2")
|
||||||
})
|
&& (lib.versionOlder config.boot.kernelPackages.kernel.version "6.6")
|
||||||
|
) { kernelParams = [ "amdgpu.sg_display=0" ]; })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue