XPost: linux.debian.kernel
This is a multi-part MIME message sent by reportbug.
Source: linux
Version: 6.12
Severity: wishlist
Tags: patch
X-Debbugs-Cc:
debian-wine@lists.debian.org,
foss@morgwai.pl
ntsync driver significantly improves performance of many apps running under new versions of Wine and its derivatives such as Proton (see
https://lwn.net/Articles/962325/ and
https://wiki.debian.org/Wine/NtsyncHowto ). As a consequence, it will be also very beneficial for Steam users.
The patch is self-contained, meaning it does not modify any production code outside of `drivers/misc/ntsync.c` and `include/uapi/linux/ntsync.h`. Moreover, the driver may only be activated by explicitly accessing `/dev/ntysnc` device node, so no other functionality will be affected in any way.
The patch was tested to work nicely when applied to kernel 6.12.27-1.
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.27-ntsync (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Description: Backport ntsync driver from Linux-6.14.
Origin: Linux-6.14
Index: linux-6.12.27/Documentation/userspace-api/index.rst ===================================================================
--- linux-6.12.27.orig/Documentation/userspace-api/index.rst
+++ linux-6.12.27/Documentation/userspace-api/index.rst
@@ -63,6 +63,7 @@ Everything else
vduse
futex2
perf_ring_buffer
+ ntsync
.. only:: subproject and html
Index: linux-6.12.27/Documentation/userspace-api/ntsync.rst ===================================================================
--- /dev/null
+++ linux-6.12.27/Documentation/userspace-api/ntsync.rst
@@ -0,0 +1,385 @@
+===================================
+NT synchronization primitive driver
+===================================
+
+This page documents the user-space API for the ntsync driver.
+
+ntsync is a support driver for emulation of NT synchronization
+primitives by user-space NT emulators. It exists because implementation
+in user-space, using existing tools, cannot match Windows performance
+while offering accurate semantics. It is implemented entirely in
+software, and does not drive any hardware device.
+
+This interface is meant as a compati