!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

592 Members
Gaming things, my hands are typing words.161 Servers

Load older messages


SenderMessageTime
19 Jun 2026
@atemu12:matrix.orgAtemuAnyhow, Monado with STEAMVR_LH is quite good as the weak part has always been libsurvive15:40:45
@atemu12:matrix.orgAtemuI have migrated to it (+xrizer/opencomposite) for VR purposes and will be retiring the kernel patch from my config soon because I no longer have a need for SteamVR as a compositor15:42:10
@k900:0upti.meK900 You need to have CAP_SYS_NICE 15:44:28
@atemu12:matrix.orgAtemu
static int amdgpu_ctx_priority_permit(struct drm_file *filp,
				      enum drm_sched_priority priority)
{
	/* NORMAL and below are accessible by everyone */
	if (priority <= DRM_SCHED_PRIORITY_NORMAL)
		return 0;

	if (capable(CAP_SYS_NICE))
		return 0;

	if (drm_is_current_master(filp))
		return 0;

	return -EACCES;
}
15:45:33
@k900:0upti.meK900 OK so there's no check for root namespace 15:46:32
@k900:0upti.meK900So technically inherited CAP_SYS_NICE would work probably15:46:40
@atemu12:matrix.orgAtemu
bool capable(int cap)
{
	return ns_capable(&init_user_ns, cap);
}
15:47:55
@atemu12:matrix.orgAtemu(It's really quite remarkable how readable kernel sources are despite being c)15:48:46
@k900:0upti.meK900Of course15:52:23
@k900:0upti.meK900Ugh15:52:31
@k900:0upti.meK900Stupid15:52:36
@k900:0upti.meK900Then I guess we have to wait for real DRM scheduling to become an actual thing15:53:01
@k900:0upti.meK900Or I guess for GPUs to grow enough hardware scheduling to make this not a problem15:53:42
@magic_rb:matrix.redalder.orgmagic_rbWhat, the way im reading the code, which is probably wrong, would mean that were good. It says that the init_user_ns must be capable of sys_nice, which it would be no?16:07:02
@k900:0upti.meK900No, it says the current thread needs to have that capability in the init ns16:07:38
@magic_rb:matrix.redalder.orgmagic_rbOooh16:07:51
@magic_rb:matrix.redalder.orgmagic_rbOh so its checking the capability of the thread in the root ns, not the threads ns16:08:15
@magic_rb:matrix.redalder.orgmagic_rb(I mean thats an easy patch :P)16:08:21
@magic_rb:matrix.redalder.orgmagic_rb(Would also solve the gamescope RT issue)16:08:31
@k900:0upti.meK900 It won't no 16:08:40
@k900:0upti.meK900 That's a different issue 16:08:44
@magic_rb:matrix.redalder.orgmagic_rbIs it? If gamescope had valid cap_sys_nice when launched from steam as custom command, it could renice itself16:09:18
@elvishjerricco:matrix.orgElvishJerriccowould relaxing that actually be safe? Like, presumably that cap exists to guard a user against doing these things; being able to bypass it just by entering a userns sounds like probably not something to allow16:09:21
@magic_rb:matrix.redalder.orgmagic_rbI run into that on my desktop16:09:23
@k900:0upti.meK900
In reply to @magic_rb:matrix.redalder.org
Is it? If gamescope had valid cap_sys_nice when launched from steam as custom command, it could renice itself
The global check cannot be changed
16:09:43
@k900:0upti.meK900 The change needs to be local to amdgpu if anything 16:09:50
@k900:0upti.meK900 And then it won't get CAP_SYS_NICE 16:09:57
@marie:marie.cologneMarieso basically our options are apply the kernel patch or wait for valve to solve it because they have the same problem with steamrt3? :(16:09:59
@k900:0upti.meK900 It should really use rtkit for that 16:10:07
@magic_rb:matrix.redalder.orgmagic_rbI mean if i understand it correctly, you cant just give yourself cap_sys_nice even inti a userns16:10:14

Show newer messages


Back to Room ListRoom Version: 10