From 68c3f4559b8e1344186d2002eec785d0e3ea666d Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Wed, 3 May 2023 23:10:15 +0200 Subject: [PATCH] workaround amdgpu bug --- hosts/toaster/amdgpu-sg-fix.nix | 4 ++++ hosts/toaster/default.nix | 1 + 2 files changed, 5 insertions(+) create mode 100644 hosts/toaster/amdgpu-sg-fix.nix diff --git a/hosts/toaster/amdgpu-sg-fix.nix b/hosts/toaster/amdgpu-sg-fix.nix new file mode 100644 index 0000000..b67bd57 --- /dev/null +++ b/hosts/toaster/amdgpu-sg-fix.nix @@ -0,0 +1,4 @@ +{ ... }: +{ + boot.kernelParams = [ "amdgpu.sg_display=0" ]; +} diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix index 55d9fe8..483d3e8 100644 --- a/hosts/toaster/default.nix +++ b/hosts/toaster/default.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { imports = [ ./amd.nix + ./amdgpu-sg-fix.nix ./hardware-configuration.nix ./irc.nix ./network.nix