Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1636149pxy; Fri, 23 Apr 2021 12:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgap1KkddMHodkYU/Cf8jS4AjAXiGtA9Rfoesv5cjhpwW6JEmEJf0ALxIjtAjOguvO7zOs X-Received: by 2002:a05:6a00:2ad:b029:262:2f1e:71b with SMTP id q13-20020a056a0002adb02902622f1e071bmr5440013pfs.28.1619207927090; Fri, 23 Apr 2021 12:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619207927; cv=none; d=google.com; s=arc-20160816; b=rqwvn52RPLmzp3FnzvlQCUknhumyWNhv8NbqdByDQqjzwhDZscBbsmbK6bfZPEx5Cf Z1AhShQbfI0NF76AtpxUFCoOH8Uq/uAtCPN+s1SsQ9JNXA63T2XdKVCi8SlkmNapHHJc ZT/uzc+vugUpRDWPxKGMzW8hipXFnGHMdcgxTq7Dcqw4IQ64SHzyZvwFa0vq0Pi8sAW/ cGlXKKI8HHN3UaDH1waLgLsA5POISZtal1CagSCbEMmh99Z/NY0xBvcZeq0Z2R5AAQk3 ftklNbfRh3secswV8Ibq/XP5Pe4fBRS1NUqQfHuEYjQlPTAzSdvVZzaAX2XLAOKM9GZq FmLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wvsKEi1eJGHeLPZJEa6xjsiy+KUSZ+p+/AowYRFXmJo=; b=VD6o1d1z+ev7Qbz3mZ0T8EaUhBLGYo3pUS8Pleh8aZ2NaHobet/IQWYC33N1hCesIX m9HHx8Lejvi0uylNEeW+FBAQhIocwtHaXDOHQOBoZV/wad5CWf4yFvHPB+mbzBqgVQOB gLsafeccoszIFdek2E+qo++Q/26HAiOfqMRepoSNUxdE26aF26tjeUTZVCEW77GybD/u F3tA79JIQidB+i6+uOCqaC4g6L/bJAqtZWCBuE/S0K2EZktHiLv0pup4gC8TK8/yRg9J H9aNVCroE+dXgVgSmFygqTsm582ytxwNVRp0CTgiTs5oXaGaWJ8s+Ch4JRaz+S7Xvzqp BCuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NAgX5GAL; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c27si10064788pgb.88.2021.04.23.12.58.35; Fri, 23 Apr 2021 12:58:47 -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=@alien8.de header.s=dkim header.b=NAgX5GAL; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243879AbhDWT6i (ORCPT + 99 others); Fri, 23 Apr 2021 15:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232645AbhDWT6h (ORCPT ); Fri, 23 Apr 2021 15:58:37 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFCF5C061574; Fri, 23 Apr 2021 12:57:59 -0700 (PDT) Received: from zn.tnic (p200300ec2f0cb1003e0d9ed13dff4615.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:b100:3e0d:9ed1:3dff:4615]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 70E671EC0249; Fri, 23 Apr 2021 21:57:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1619207876; 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:in-reply-to:in-reply-to: references:references; bh=wvsKEi1eJGHeLPZJEa6xjsiy+KUSZ+p+/AowYRFXmJo=; b=NAgX5GALzUPNTfLUFHa98J47MGRV4yTiiQNhL10loUF9WoVcrYAhVEv2tu2YyjJD2faiRP qctjdpxPjB3TTCnPyHb2w1QOpGC2jzJtrjaOhODIQhwDpS66zkFmVTWAxPsngtLDSL41zB u4Ja05+8K/mhHO7JeUHNF7vAiDozpw0= Date: Fri, 23 Apr 2021 21:57:54 +0200 From: Borislav Petkov To: Len Brown Cc: Willy Tarreau , Andy Lutomirski , Florian Weimer , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , linux-abi@vger.kernel.org, "libc-alpha@sourceware.org" , Rich Felker , Kyle Huey , Keno Fischer Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 03:35:30PM -0400, Len Brown wrote: > Yes. If a library decides to execute AMX instructions on behalf > of a task, the kernel will allocate an 8KB context switch buffer > on behalf of that task. Again, the library should ask the kernel first whether it supports AMX. And the process should decide whether to use AMX - not the library on its own, on behalf of the process. > Granted, if you find a reason to dislike AMX, the mechanisms to disable > it today are on a system-wide basis, not on a process or task basis. Again, I don't dislike the feature. I don't want libraries jumping on new features without asking the process or the kernel first especially when those features have performance implications and need kernel support. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette