Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp886655pxj; Fri, 21 May 2021 01:12:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAWI/QiIBnLye1QalLLTim2ExOyFvshMb/h62cA0BS7imEXxXsuGT4o9ObcmjTYhSNo+GS X-Received: by 2002:a17:906:6a93:: with SMTP id p19mr9159893ejr.319.1621584741596; Fri, 21 May 2021 01:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621584741; cv=none; d=google.com; s=arc-20160816; b=DniW/3DETrra0EJBu5vawagQ8FgT8rtroB9FrW/yV3w+lbWWUf6chPmorLDVWR+Bsc d2IwExQHTS0qn+SnpwrnABMPWdjR+8jhKoZBdgnhmEhNzp2NlzAN99tsi9dCYfLXiwiG 1b8HtQ6UND4Ne1IoPmtkloRuUZWZOVh8XGQ0VpKMYgAAOCe/s5UJ3S75XMMZ35jhcGpQ zUkGcZmRlVbfvnHlhXOyJbqXi/txFQfP902a+BlVUmtVYPQACXmR9W2rHu9MuTmw9y7Z HtHG2anx0RDi3k/eLJ4BOYZSv7J7j+b21VdXfqNMTgC9JLc2DYSlJS1rCAFk82JzT2Py AeyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=wW24DYlPkr7pkQEBZ+G/csAqmXvvJc049o7EdOTc3zo=; b=ulYRRui5LZkgSNomu9hO9cOfdA3NHqH3eaFBre2nbbT6YQ//bUZl/kEd291qlC+o6x 8yuUObofrQ/HlkaEck7xZ/v66xDtvjL0d3HTZsQGpDIIajXwoq9pb7nK+NvZcSejnjdW qi0lIMaZ/Sgs0Wnj4A68MF4E/SwyHouMGf4W1D9pzZqSORPGfaJnDAkHGH0UN5LXyehm uDRhamJDzxtnuGUIGXH5B6An1rwoDW2alA7J4EF3ZzuaA8LuMRJpM4mI38vYAZh1y3ai zylMMC6LLGOKJHIXmF9AZzc4wgqUUIswKnmcW+t5sC5QQlo2wO2rgVoJ+M/xOH4dDupY VW8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="xRH/tK+5"; dkim=neutral (no key) header.i=@linutronix.de header.b=PUh5AoPc; 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 w16si4801940ejv.219.2021.05.21.01.11.56; Fri, 21 May 2021 01:12:21 -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="xRH/tK+5"; dkim=neutral (no key) header.i=@linutronix.de header.b=PUh5AoPc; 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 S230293AbhETVmf (ORCPT + 99 others); Thu, 20 May 2021 17:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbhETVmf (ORCPT ); Thu, 20 May 2021 17:42:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DEDC061574; Thu, 20 May 2021 14:41:13 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621546870; 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: in-reply-to:in-reply-to:references:references; bh=wW24DYlPkr7pkQEBZ+G/csAqmXvvJc049o7EdOTc3zo=; b=xRH/tK+52B87Eo7tPeRpYoYXWeciTZlh3DrLShYY6C/r7eRkNbhXgC3E87qFFxreJ+aWzF rglswI+ZNypjQW/nKyPY4U9en/I1zCYrlY3NCanNtMeqLTmAmZOK3locY19d19ClxPZgHu nrn80/1udqRFZqo2RR/L7hynJcsKJR8DQkAf5gNKrQ4ghXfFQkKKmliHSQ4xoh+t2EHrnn PlpyNiyDO8m0sc3x2Tc3H5+OhXucTJ2ohfGDYZWgNymONVKHwrNLymfYbcyjENDKaJ8erH rYPCXBQZ13pQICaHdy0pHWj6NTNFra8CD02Con9mhZuKlkM4bM98+F7hTPmFOA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621546870; 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: in-reply-to:in-reply-to:references:references; bh=wW24DYlPkr7pkQEBZ+G/csAqmXvvJc049o7EdOTc3zo=; b=PUh5AoPcGtdQLFK71CDr1AwyPujneKlpGAe6G+Onzh4cRGB/p+/eOXwPvVioU/1JzKlzEM Bo8COlGOrVrd70BQ== To: Len Brown Cc: Borislav Petkov , Willy Tarreau , Andy Lutomirski , Florian Weimer , "Bae\, Chang Seok" , Dave Hansen , X86 ML , LKML , Linux API , "libc-alpha\@sourceware.org" , Rich Felker , Kyle Huey , Keno Fischer , Arjan van de Ven Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features In-Reply-To: References: <20210415044258.GA6318@zn.tnic> <20210415052938.GA2325@1wt.eu> <20210415054713.GB6318@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> Date: Thu, 20 May 2021 23:41:10 +0200 Message-ID: <87h7ixaxs9.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Len, On Thu, May 20 2021 at 17:22, Len Brown wrote: > On Thu, May 20, 2021 at 4:54 PM Thomas Gleixner wrote: >> > AMX is analogous to the multiplier used by AVX-512. >> > The architectural state must exist on every CPU, including HT siblings. >> > Today, the HT siblings share the same execution unit, >> > and I have no reason to expect that will change. >> >> I'm well aware that HT siblings share the same execution unit for >> AVX. >> >> Though AMX is if I remember the discussions two years ago correctly >> shared by more than the HT siblings which makes things worse. > > I regret that we were unable to get together in the last year to have > an updated discussion. I think if we had, then we would have saved > a lot of mis-understanding and a lot of email! > > So let me emphasize here: > > There is one TMUL execution unit per core. > It is shared by the HT siblings within that core. > > So the comparison to the AVX-512 multiplier is a good one. Fine, but that does not at all change the facts that: 1) It's shared between logical CPUs 2) It has effects on power/thermal and therefore effects which reach outside of the core scope 3) Your appproach of making it unconditionlly available via the proposed #NM prevents the OS and subsequently the system admin / system designer to implement fine grained control over that resource. And no, an opt-in approach by providing a non-mandatory preallocation prctl does not solve that problem. Thanks, tglx