From nobody Sun Dec 31 03:14:45 2023 X-Original-To: dev-commits-src-main@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 4T2kkf4CLWz55yZ6; Sun, 31 Dec 2023 03:15:06 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4T2kkd3j1Nz4Hf0; Sun, 31 Dec 2023 03:15:05 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of vladimir@kondratyev.su has no SPF policy when checking 195.170.219.3) smtp.mailfrom=vladimir@kondratyev.su; dmarc=none Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id 39EF54A0A74; Sun, 31 Dec 2023 06:14:58 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id 7cUI_Mi9mVEH; Sun, 31 Dec 2023 06:14:57 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id 81F894A0DDE; Sun, 31 Dec 2023 06:14:57 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id 6DDE742211F; Sun, 31 Dec 2023 06:14:53 +0300 (MSK) Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id HpGR300GS_ph; Sun, 31 Dec 2023 06:14:46 +0300 (MSK) Received: from kondratyev.su (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTPA id 27D2D42211C; Sun, 31 Dec 2023 06:14:46 +0300 (MSK) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Sun, 31 Dec 2023 06:14:45 +0300 From: Vladimir Kondratyev To: John Baldwin , Vladimir Kondratyev , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: b4efc6277634 - main - LinuxKPI: Do not use explicit context in FPU sections on powerpc64 In-Reply-To: References: <202312241320.3BODK2DA076069@gitrepo.freebsd.org> Message-ID: X-Sender: vladimir@kondratyev.su User-Agent: Roundcube Webmail/1.3.5 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.00 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org,dev-commits-src-main@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[kondratyev.su]; RCVD_COUNT_FIVE(0.00)[6]; ARC_NA(0.00)[]; ASN(0.00)[asn:8299, ipnet:195.170.192.0/19, country:RU]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4T2kkd3j1Nz4Hf0 X-Spamd-Bar: - On 27.12.2023 20:05, John Baldwin wrote: > On 12/24/23 5:20 AM, Vladimir Kondratyev wrote: >> The branch main has been updated by wulf: >>=20 >> URL:=20 >> https://cgit.FreeBSD.org/src/commit/?id=3Db4efc62776344a9aaada5a0866e4= 53e528a0e977 >>=20 >> commit b4efc62776344a9aaada5a0866e453e528a0e977 >> Author:=C2=A0=C2=A0=C2=A0=C2=A0 Vladimir Kondratyev >> AuthorDate: 2023-12-24 12:48:06 +0000 >> Commit:=C2=A0=C2=A0=C2=A0=C2=A0 Vladimir Kondratyev >> CommitDate: 2023-12-24 12:48:06 +0000 >>=20 >> =C2=A0=C2=A0=C2=A0=C2=A0 LinuxKPI: Do not use explicit context in FPU = sections on=20 >> powerpc64 >> =C2=A0=C2=A0=C2=A0=C2=A0 It is not supported yet. >> =C2=A0=C2=A0=C2=A0=C2=A0 Sponsored by:=C2=A0=C2=A0 Serenity Cyber Secu= rity, LLC >> =C2=A0=C2=A0=C2=A0=C2=A0 Fixes:=C2=A0 5a3bd281672b ("LinuxKPI: Add exp= licit software context to=20 >> FPU sections") >> =C2=A0=C2=A0=C2=A0=C2=A0 MFC after:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 we= ek >> --- >> =C2=A0 sys/compat/linuxkpi/common/include/linux/compat.h | 5 ----- >> =C2=A0 sys/compat/linuxkpi/common/src/linux_current.c=C2=A0=C2=A0=C2=A0= | 9 ++++++--- >> =C2=A0 sys/compat/linuxkpi/common/src/linux_fpu.c=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 | 3 ++- >> =C2=A0 3 files changed, 8 insertions(+), 9 deletions(-) >=20 > Do you need explicit contexts at all? Original version of https://reviews.freebsd.org/D42822 did not use explicit contexts. =C2=A0 That is, can you not just > use FPU_KERN_NOCTX all the time?=C2=A0 Most code in the tree now uses > FPU_KERN_NOCTX now (all the crypto drivers for example), and I've > been thinking about removing support for the !FPU_KERN_NOCTX case. > Is there a reason drm-kmod can't use FPU_KERN_NOCTX?=C2=A0 Do you reall= y > need to save FPU registers in one block of code wrapped by fpu_kern_* > and then use those register values in a future section wrapped by > fpu_kern_*? >=20 I can revert current code end use previous version. Just give me some=20 time. I will be AFK till the end of january. --=20 WBR Vladimir Kondratyev