Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1448262pxj; Fri, 21 May 2021 14:45:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycJcp3qXJ6MQqF1rslZEKCWUIGMylGesdzMASKyPRwkpgesoi3boEPZ47sP9Qkcc4EXJgV X-Received: by 2002:a17:907:10ca:: with SMTP id rv10mr12083604ejb.377.1621633501679; Fri, 21 May 2021 14:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621633501; cv=none; d=google.com; s=arc-20160816; b=eCVtY16W2vVO8my4PJpfrzoO4BjxBn3k0E7irMgxA9TaqWpsNm5i2ZXB/v/D/zTxxy F3qkujxjH/qFt4XeR+m5c9kngOTycWEo9PhdVZpGyWCdXiZVHbWxEYQQuAfFsQClv6rn 9FVf6Wttea1e5FBGf5IARe5zqbhzz6+gCZb0kyyBYEXUnvlEa91/B7U1eNuYUPvwDd03 vX1IIWynzd2ydEVUeOX133eZTtS0kXfiS+DyMLJm4Awb9CndVKBGO/VGO9LcNgLbZLbx WEmB8UR6wpG4tsoaui7RXwlBDLg9Rrmge0cO7u/HDT1zaAcXfgBzUAEbuYycdX5DJZ+F vCfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=O2Zvf4YEm1tFPNzEd7n/UJedCF9RvfBvtdYegG4LEec=; b=Dj01/zzFWD+QJEjwJA8t8uUJ2mvzOBCpURpT6YwceSCMGIlWsV4OhuHFQlheyB7Rgw 93pRhSLMoI2jecMjEiLjhH+bufQh6Rr5lMtN2zEs5cKXnimqZuKXuHXSyT5rzwhTp+43 +6wa7Bw6Uv/4XJ2UyP+YgYWeKGXph0iy6c/3SMA8oWPFU1vrLgcdj85N+rMqETiWoO6k wx0Htf6w08bSPuGvGwnQncBK2QU/M7ILuL5eFYDSBpLJ0EGtdKpsVE0uQ4rnz6t0xEHg Vmf+LAZii5utjBHh3pGUuO3nnymk7LawoMNMIgmifinDzk7y3iILt62igajf8v6xMA5R wJbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iFF+GrJj; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si7688441eje.142.2021.05.21.14.44.38; Fri, 21 May 2021 14:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iFF+GrJj; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbhEUVpF (ORCPT + 99 others); Fri, 21 May 2021 17:45:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56534 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhEUVpD (ORCPT ); Fri, 21 May 2021 17:45:03 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621633418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2Zvf4YEm1tFPNzEd7n/UJedCF9RvfBvtdYegG4LEec=; b=iFF+GrJjH231ECxDi6mr1GS+vUU+Muc9cB7hxoXY+5Mqlmhu4PAbAfPaP6XJGNI0MJEoWV fbRXPRxJOM4XVuZOYkUSeTz4LoowD74WdZvUhbE+y21la0hu9hZq2ylnJVlqQ0CpTV4LHF YVXlhEaSgpUyrlTsNRAEj/BORwjunbOhu4sujqy0zrTjRPWOAzGqnPfXV3I/QXoq9AzN2B gHhTr0kX6LHLDByw5JYf3nRv2RskZ49+e45sAoMjkNi0D4KCMMNIAB2JDqsybpGePxKh6c qB4efT0uKcagFsa7Zw5loWSuTNeyp3GRNfpHiEOSqTeZBznxQ0huT+30yPy0Ng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621633418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2Zvf4YEm1tFPNzEd7n/UJedCF9RvfBvtdYegG4LEec=; b=FQvivXj6EAnAS/ROEOttaW8WjCkuzfYbXboYPCGOpz+27FOorQZFKcw+ao6rwvRtr4Kie6 oUJHCIhRsRIj8iDA== To: Andy Lutomirski , Florian Weimer , Dave Hansen Cc: Dave Hansen via Libc-alpha , Len Brown , Rich Felker , Linux API , "Bae\, Chang Seok" , the arch/x86 maintainers , Linux Kernel Mailing List , Kyle Huey , Borislav Petkov , Keno Fischer , Arjan van de Ven , Willy Tarreau Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features In-Reply-To: <6c9c4597-a1af-4cbb-9dc8-424999d04793@www.fastmail.com> References: <20210415044258.GA6318@zn.tnic> <20210419141454.GE9093@zn.tnic> <20210419191539.GH9093@zn.tnic> <20210419215809.GJ9093@zn.tnic> <874kf11yoz.ffs@nanos.tec.linutronix.de> <87k0ntazyn.ffs@nanos.tec.linutronix.de> <37833625-3e6b-5d93-cc4d-26164d06a0c6@intel.com> <9c8138eb-3956-e897-ed4e-426bf6663c11@intel.com> <87pmxk87th.fsf@oldenburg.str.redhat.com> <939ec057-3851-d8fb-7b45-993fa07c4cb5@intel.com> <87r1i06ow2.fsf@oldenburg.str.redhat.com> <263a58a9-26d5-4e55-b3e1-3718baf1b81d@www.fastmail.com> <87k0nraonu.ffs@nanos.tec.linutronix.de> <6c9c4597-a1af-4cbb-9dc8-424999d04793@www.fastmail.com> Date: Fri, 21 May 2021 23:43:38 +0200 Message-ID: <87h7ivahkl.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21 2021 at 13:07, Andy Lutomirski wrote: > On Fri, May 21, 2021, at 12:10 PM, Thomas Gleixner wrote: >> Why? The bit can be enabled and #NM catches the violation of the ABI >> contract if the application did not request usage. No XCR0 fiddling on >> context switch required. > > XFD does nothing about signals. It's a matter of what's implemented in #NM. XFD just arms #NM > It also doesn=E2=80=99t help give applications a non-Linux-specific way t= o ask > if AMX is available. The SDM says that one can read XCR0. Sure, we > can use it, but cross platform libraries seem likely to get it wrong. Well, that's the inevitable consequence of Intel declaring that everything needs to be exposed unconditionally for the very wrong reasons. Thanks, tglx