• Bug#1105129: Please backport ntsync driver from Linux-6.14 to trixie (1

    From Piotr Morgwai Kotarbinski@21:1/5 to All on Sun May 11 22:50:01 2025
    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
  • From Salvatore Bonaccorso@21:1/5 to Piotr Morgwai Kotarbinski on Mon May 12 06:00:02 2025
    XPost: linux.debian.kernel

    Control: tags -1 + wontfix

    Hi,

    On Sun, May 11, 2025 at 10:42:47PM +0200, Piotr Morgwai Kotarbinski wrote:
    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.

    This is out of scope for landing in trixie. If the ntsync driver would
    have made it to the 6.12.y upstream series then we could have enabled
    it, but we are not going to backport a whole driver to an older
    series.

    If the ntsync driver is needed then please use the future trixie-backports versions once trixie is releases.

    Regards,
    Salvatore

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)