Skip to content

Commit

Permalink
linux61-tkg: Add patch to allow high priority queue for any app
Browse files Browse the repository at this point in the history
Taken from https://codeberg.org/Scrumplex/flake

This works around NixOS/nixpkgs#217119 and
flathub/com.valvesoftware.Steam#898

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
  • Loading branch information
Scrumplex committed Mar 21, 2023
1 parent 51c8597 commit 503b977
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions linux61-tkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- OpenRGB.mypatch - Patch to add OpenRGB compatibility for certain i2c controllers - https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGB.patch
- x86_split_lock-Add_sysctl_to_control_the_misery_mode.mypatch - Allows controlling the "misery mode" behavior, for which the default changed with b041b525dab9 ("x86/split_lock: Make life miserable for split lockers"), notably slowing down some windows games runnning through Wine - We are enforcing the behavior to "off" in linux-tkg through kernel command line, but this makes it configurable at runtime - https://lore.kernel.org/all/20221024200254.635256-1-gpiccoli@igalia.com/
- BBRv2.mypatch - Add BBRv2 TCP IPv4 algorithm - https://github.com/google/bbr/tree/v2alpha - Imported from https://codeberg.org/pf-kernel/linux
- cap_sys_nice_begone.mypatch - Allow all applications to request high priority queues in AMDGPU. Allows SteamVR to use Asynchronous Reprojection on Flatpak and NixOS - From https://codeberg.org/Scrumplex/flake
26 changes: 26 additions & 0 deletions linux61-tkg/cap_sys_nice_begone.mypatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From fe059b4c373639fc5d69067e62de3f2a0e44a037 Mon Sep 17 00:00:00 2001
From: Sefa Eyeoglu <contact@scrumplex.net>
Date: Fri, 17 Mar 2023 16:50:57 +0100
Subject: [PATCH] amdgpu: allow any ctx priority

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index d2139ac12159..c7f1d36329c8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -107,7 +107,7 @@ static int amdgpu_ctx_priority_permit(struct drm_file *filp,
if (drm_is_current_master(filp))
return 0;

- return -EACCES;
+ return 0;
}

static enum amdgpu_gfx_pipe_priority amdgpu_ctx_prio_to_gfx_pipe_prio(int32_t prio)
--
2.39.2

0 comments on commit 503b977

Please sign in to comment.