summaryrefslogtreecommitdiff
path: root/hosts/desktop/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/desktop/hardware-configuration.nix')
-rw-r--r--hosts/desktop/hardware-configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix
index ba7f356..cc0c460 100644
--- a/hosts/desktop/hardware-configuration.nix
+++ b/hosts/desktop/hardware-configuration.nix
@@ -12,6 +12,11 @@
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
+ boot.kernelParams = [
+ "amdgpu.noretry=0" # Allows the GPU to retry memory access instead of crashing
+ "amdgpu.gpureset=1" # Enables better recovery if a fault occurs
+ "amdgpu.pcie_gen_cap=0x00040000" # Forces PCIe 4.0 if your board is being weird
+ ];
hardware.graphics = {
enable = true;