Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp990175pxj; Fri, 21 May 2021 04:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYjp3eFXRIcCArLlBsIUnVVHsOAI7om49JO9WQEwCHA1sCF8uUBOO/Pr3dwY+SkKhKAze/ X-Received: by 2002:a92:ddc6:: with SMTP id d6mr9631209ilr.51.1621594926490; Fri, 21 May 2021 04:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621594926; cv=none; d=google.com; s=arc-20160816; b=yzgidQuZHqxe+EwXfa3ZFjMN4WYOvkOSrLvRIa9uAn7Z/P+BWZVydtC/OPDubc1Y/i mnYOvGstUETg/sP9PzsqszTWPaWclJm8qd2UgC9joiKNWWbP/4uo3gYUZOPwnY36vOvf k0B1StaTswg5xiyGmP7U78TNTCdNzzu01HlJ/9Lwza8GZbdyTlvhPMlBV4LMNidQFTHd uruun/KWfgAVZB8y80mKvB/2XaU+uYb9yfwDaOVzSwHQbuQnlLMOB8tceaFeu9rOaynt fknEsSGhkqJy1oz+HpR2B3x54VekIkNGfdOusNoCaPi7V0OcfoFqfLw3n9/OegIavrbZ trLA== 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=YH3IeA3uE4Q+xSi3z5y5AVoS8ahuOw9YD3AMctxS7O0=; b=EPnZpLg92UQlBYdZ7t8+4OZ7wL6Y+usaj087x7OK9TV1u5oraTiojGVnrWK95IwUTN 0yVM2ucEKrtqHMVX11c6qzuNxnjbCUb+JYa2Wyq6PVCA1uxfWGmnFBI1CfLEC6wriOGH EStm2MElD2a2eRF7PogZwY/yCLyqeDoXBYigQ9RrY3OKW+tgaE98NlXnZTG4+uFbJq2a jHCtK2Lix8SJ1YPaM2Ms5+6k8ab4ZHjE9yG/6vlrRYOIkl/cG+LOXj0hsuM5TgBt7tU5 VKYOCG8kibz+MPquA7WsZwP1rYwTk8C99rRHcZ/wnKjrbTtGdSPA08CmoCcyrJruTviz +svA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RiphfFne; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XcH8jWcp; 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 u8si5519985ilv.32.2021.05.21.04.01.52; Fri, 21 May 2021 04:02:06 -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=RiphfFne; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=XcH8jWcp; 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 S236355AbhEUJ3h (ORCPT + 99 others); Fri, 21 May 2021 05:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236507AbhEUJ3S (ORCPT ); Fri, 21 May 2021 05:29:18 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 550CAC061763; Fri, 21 May 2021 02:26:30 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621589187; 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=YH3IeA3uE4Q+xSi3z5y5AVoS8ahuOw9YD3AMctxS7O0=; b=RiphfFneNCnbD6G8Lii75tG/Vq+it+xs5PzoghIEjXytCf1126mnlkbNJqigdk5MJVInxQ lMKqkSUARY3nzjofsEIEIvaOrZuOZLZDw2VfkM/XjzH06Y5zB3JWl85jUIa5NMf2QpPMu2 nuHiiBR6kZIgIvx9dGE1hP9DG6LBAmTjqNG8UHunL/0O+t5u7BEJMNBFIADdX+gRgP+Vog rTBeEICG01i5xOYBO80dYlkUBBxTfZSEt8Zr8OiMcKmmqYT8fS26srUkJhWAkTI/xukqiH GgGw20bXVU12gnejjg+x5Uj6n6+6dza5FAWXOUo+nq0BU9SK+N8NeJfeBSvOrg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621589187; 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=YH3IeA3uE4Q+xSi3z5y5AVoS8ahuOw9YD3AMctxS7O0=; b=XcH8jWcpAmSlaGhTzXGoU4IyMmZXjpCi6Gh3Qo2esYoUJE1YRF6hson4GJXo1VfWgKqrMn lveu5FhtbLBIYnBw== 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> <87h7ixaxs9.ffs@nanos.tec.linutronix.de> Date: Fri, 21 May 2021 11:26:26 +0200 Message-ID: <87eee0bfp9.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:49, Len Brown wrote: > On Thu, May 20, 2021 at 5:41 PM Thomas Gleixner wrote: >> 2) It has effects on power/thermal and therefore effects which reach >> outside of the core scope > > FWIW, this is true of *every* instruction in the CPU. > Indeed, even when the CPU is executing *no* instructions at all, > the C-state chosen by that CPU has power/thermal impacts on its peers. > > Granted, high performance instructions such as AVX-512 and TMUL > are the most extreme case. Right and we have to draw the line somewhere. >> 3) Your approach of making it unconditionally 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. > > I'm perfectly fine with making the explicit allocation (aka opt-in) mandatory, > and enforcing it. Great! Thanks, tglx