aboutsummaryrefslogtreecommitdiff
path: root/tw/system/btl.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/system/btl.scm')
-rw-r--r--tw/system/btl.scm19
1 files changed, 18 insertions, 1 deletions
diff --git a/tw/system/btl.scm b/tw/system/btl.scm
index a7389de9..ce0af3ac 100644
--- a/tw/system/btl.scm
+++ b/tw/system/btl.scm
@@ -35,6 +35,22 @@
(define data-partition ; /dev/nvme0n1p1
(uuid "cd4b7af3-f5ce-44a0-a986-3271078fb1d6" 'btrfs))
+;; This may fix AMDGPU crashes in Minecraft with the following errors in dmesg:
+;; [drm:amdgpu_dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -22
+;; and the following errors in the Minecraft log:
+;; amdgpu: amdgpu_cs_query_fence_status failed.
+;; amdgpu: The CS has been rejected (-125).
+;; https://old.reddit.com/r/AMDHelp/comments/17yn72h/page_flip_fails_error22game_crash/
+(define amdgpu-reduced-output-latency "\
+Section \"OutputClass\"
+ Identifier \"AMDgpu\"
+ MatchDriver \"amdgpu\"
+ Driver \"amdgpu\"
+ Option \"EnablePageFlip\" \"off\"
+ Option \"TearFree\" \"false\"
+EndSection
+")
+
(define-public %btl-system
(operating-system
(host-name "btl.twilken.net")
@@ -148,7 +164,8 @@
#:host-name host-name
#:cores 24
#:wireless-interface "wlp15s0"
- #:backlight-device "amdgpu_bl0")
+ #:backlight-device "amdgpu_bl0"
+ #:xorg-extra-config (list amdgpu-reduced-output-latency))
(delete thermald-service-type))))))
%btl-system