From nobody Thu Mar 26 16:17:52 2026 X-Original-To: freebsd-emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fhTTW6d3qz6W0W3 for ; Thu, 26 Mar 2026 16:18:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-yx1-xb133.google.com (mail-yx1-xb133.google.com [IPv6:2607:f8b0:4864:20::b133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fhTTW2n4Nz3vqt for ; Thu, 26 Mar 2026 16:18:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yx1-xb133.google.com with SMTP id 956f58d0204a3-64e8cdafeffso1519954d50.1 for ; Thu, 26 Mar 2026 09:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774541885; cv=none; d=google.com; s=arc-20240605; b=Ko/FnPxLmL8KQvuE8ARGCQUzE656SLPeOBR19dU1Aw68/NZZWZTIiNlth4Qfrm0jcz kL89ch4hqTla9Yq26/hUSrsikExb+jYUAY7pYulebG2NVmWZVfzsyd1L7vojJXEVBgAb sG35liaCdpFGtChDc1lTXFAwX1GEpPkcwYXZFOglBxoNrOt7GHq0WmcQX3DONKu/B6zw bJG/MPRV9nrc96rU8Nw2SF3MoYnQEDLrYVUC8TXjDpRuCKBb2hHhb3JejqDXRN4DZ9Bu DaLuBRk7Do0+IAtzZEU7RGw/4C+h479hWfR3kmVKeG85N7+S5uiig37aVcOo21R16yHc hdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Or7YjKngF4oCwPjC74ZeDr3jMqbNB8lpVzGgCVuwWDA=; fh=ueJv/3SFZ/Oz+wZm1FOuMIe9aYCv+2bGez+6So34Yd0=; b=A6Q+vq3h17eT2JM7wcB1pSRObVK0jIatqrw5XYypeK16Nsx/H1y5eQceRQGFEUUnr7 XukXPnUc560fxeerhwYJ+YxBxPYh0iNUz+48eeyI8nVuyc+d4rjNEaE34nb6MP8ZB4oj TZ/5KiPaXjf7UxwewcdKv1PqVWg29XVJVYjPgHIg/XsSSQw4t16cze+4qEB0yn2s9bEA QZTgNFW3ox9DXkuFIti3na4tgOYFDp/YwZrRsKUP62oA52YEBNHdOSv99ns6VsOUxea6 Whkmuc4xbhw3NKglSV5aHGnZyRKdUEkLq/TjOcWEyJJ2h3Y6sRE8TqpzTuQDcqvWsKmo NYXw==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1774541885; x=1775146685; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Or7YjKngF4oCwPjC74ZeDr3jMqbNB8lpVzGgCVuwWDA=; b=RnaWOML0qp3PZO9yNDbM4W/ZLad7qeG1ZBboeb9I0mazIZjFzZEzAc4+KKa1otmvQG LBgBq4royxvGy2NatZJrZaGfUObdqvHbnGBGK/SbZbPjDtDU9gywNgPaF3J05jj+Tvx6 qPqUZTxsTwMoC3Xa3BWfgCuJ53tWw0fVywwEZc1/+/lIPTogBcncSBk/70JXk7bX6ohi C6brXVyrusEja8Vy2MAY6tEWv8KrzP5LO6hw4nuAfJO3pjtZNXqahXgg5j248m5qkJyn Rg5TIOBpAyn6dxoy5XmcogedV1BSiEH4jGIli8Y0C1jYnJ/292Vv7To7XtpbAfRNT8tn ZaDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774541885; x=1775146685; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Or7YjKngF4oCwPjC74ZeDr3jMqbNB8lpVzGgCVuwWDA=; b=gXi5NVgTnw55v309hrTRLqK74UKwYl811SaMIXgxqvbq/r0VmFLbXdgxtCRYR2Q3co 1Zuw3dRma6GQtN15ZeDQ1IG3k7hZ3jiHBcAyzN1rnhTLxMMgR3v5rNeNKzIhfztDgI72 /Yx79riUvjldBlN/lIWVOzCfmassEQC078p/kCwyBY4pD5ZS0AuTVXyI38jMLjn2y5tw Y4U++CS2ZEzl1mfHM/ZuLGFmxfmmQm0u6JIFx6zbUnWZLVI3dsUpt5leawsj6TxcZAZJ tkgs8zinJ2D3kOHZbJX29p4ErHqZMSsCJ3Wu5NtWDaG/cYRXaRxUUISji7YoPCmbViC9 HnyA== X-Gm-Message-State: AOJu0YzUkPiJI8Nxl3BbCx4B9/qy8g1GHF38NG5PsXvcNmqFdyz/SD5u yK6AoywKYKbDfCgbL7at60Vw24mQeiCt9shY7fB7O5d/QMii0qlZ4STNLc42U6+QDZUSf8b+ixW pMAqjJOeV4N0UYWuensSz2dipGJrGZktIc6X24pKwx55dFKkL/Cgb0fQ= X-Gm-Gg: ATEYQzwZ97N/s6QlvnrRYhzkB0pDyFkCRkmzIEVDRz79gAMqzJExg4X3lVdhqaM0TPF d3BsOHz1hgEYen/yAqbQiKnUroCQ4ko+lObsQjnaJ6kkw3YeSReY78wstEeJKgjUO4I8CmO6SCZ QubH9HPzpMGacAcMzdLL3Ibfv+E4TjEfL26BLb+YF0b3rSK17iWCaCpGt/f44r2qLarC/ex8ezD 9u3VXwysbDvNZEiQu0mG65ExCq4kHDBPqyEyx2rLiHnJNLCBVPKSlOGrQrI/VUY/GjsTujxCgyy HqpqlaESnPCt1v+KTA== X-Received: by 2002:a05:690e:4105:b0:649:ba22:58d0 with SMTP id 956f58d0204a3-64fee2b0f74mr1805737d50.29.1774541884732; Thu, 26 Mar 2026 09:18:04 -0700 (PDT) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Thu, 26 Mar 2026 10:17:52 -0600 X-Gm-Features: AQROBzAUwEoUs-WSJYbf711Ktm2hcQOhrgatmGe-3L_yjVqoqo9klu2mih2HnsM Message-ID: Subject: Re: [RFC] Porting ntsync from Linux to FreeBSD for WINE/Proton compatibility To: Phrolova Cc: freebsd-emulation@freebsd.org Content-Type: multipart/alternative; boundary="000000000000add499064defba83" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4fhTTW2n4Nz3vqt X-Spamd-Bar: ---- --000000000000add499064defba83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 25, 2026 at 3:58=E2=80=AFPM Phrolova wrote: > Hello! > > I intend to port the ntsync kernel driver from Linux to FreeBSD to > provide compatibility for WINE/Proton to be used with games that require > it. > > One example of such a game is Arknights: Endfield. It crashes after > 10-15 minutes without ntsync. > > The files worth looking at are: > https://github.com/torvalds/linux/blob/master/drivers/misc/ntsync.c > and > https://github.com/torvalds/linux/blob/master/include/uapi/linux/ntsync.h > > Has anyone tried this before and does anyone else have interest in using > such a thing? > There was a thread on discord on #gaming (https://discord.gg/freebsd) about how someone had written a loadable module that would do this already. Maybe you could learn more by going there and work with people talking about it there... Warner --000000000000add499064defba83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Mar 25,= 2026 at 3:58=E2=80=AFPM Phrolova <me@phrolova.moe> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Hello!

I intend to port the ntsync kernel driver from Linux to FreeBSD to
provide compatibility for WINE/Proton to be used with games that require it.

One example of such a game is Arknights: Endfield. It crashes after
10-15 minutes without ntsync.

The files worth looking at are:
https://github.com/torvalds/linux= /blob/master/drivers/misc/ntsync.c
and
https://github.com/torvalds= /linux/blob/master/include/uapi/linux/ntsync.h

Has anyone tried this before and does anyone else have interest in using such a thing?

There was a thread on dis= cord=C2=A0on #gaming (https://discor= d.gg/freebsd) about how someone had written a loadable module that woul= d do this already. Maybe you could learn more by going there and work with = people talking about it there...

Warner
--000000000000add499064defba83--