Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp501279pxb; Wed, 14 Apr 2021 22:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqm+UdPhftot6n/vz3gZO2+BltssRO8gSbaqroo8FHQXap/KFw+y/94h6MVEal8TzYCoMI X-Received: by 2002:a63:338e:: with SMTP id z136mr1947192pgz.115.1618465685617; Wed, 14 Apr 2021 22:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618465685; cv=none; d=google.com; s=arc-20160816; b=UlQ2DCyWDosB+yc3F0l5kwOLV9c4RzEs4t7DpjJkmdlnEzqLwjzCTbYubKJdB/Cj66 eIKPw2OItIKieOyFplA9bOnkp+1iL8C7eDP0wVYpW/bGXnE37OjuiVYd68SZd6OlieGj rf6dTVjLEjyEOEG0e4kamjDlqoirrT+/IQ2TdB4TILqjZ9DAK8cGPYODI8nmIKj/YT/O y5drWkFaZz9VYWtjHLyIOMS6d14bwCL5sAN2srERdupJbfODDKkh7o8y2zn4DnGjdCk2 yeLONBLI37W1mq0+CROe2jfSsfhMeLo5Q5fdhytvffh/U5GYQzOZYtT5W0sRd60o2MXG l8LA== 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=wdr7LJCygRJ/a6U3yaUWITRLN12K19Ev9wrVZWngGzM=; b=lLd+xwmj8GUwtQ4IZRXYMlcE13E5EthQv8qAWHjwC5HmeWQXPSz5Bk/KT0KO4UdF1I X1RtX0EgdKLrzsgZ10i24tvR4kQ+4YJJqpe/GIkoUGlbABckwnc4Drgw12acNf6eF4p/ PCVjFBiM0hkYJ8dVhiOq0HAVUmK4BXxSoqB4/SSXqcDmQXv9tZfdbF5AhONazyMXiR5e LPRsu5kTXgCAiPR05u/6aFF8e2Oe74FL2zMoTmSCAuyT7VL7DA4r+/6dyY76WCTjamq3 W/29kXTBAvSopbHXMwz123vhXnmHPUQstTqKZV6EyecjGjzWm/dm+lIwkMqK9IoesS1o v9Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=KItbQuAn; 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 q18si2168260pgg.445.2021.04.14.22.47.53; Wed, 14 Apr 2021 22:48:05 -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=KItbQuAn; 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 S230249AbhDOFrm (ORCPT + 99 others); Thu, 15 Apr 2021 01:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbhDOFrk (ORCPT ); Thu, 15 Apr 2021 01:47:40 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE2BC061574; Wed, 14 Apr 2021 22:47:17 -0700 (PDT) Received: from zn.tnic (p200300ec2f0ace003285750f1ad285f1.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:ce00:3285:750f:1ad2:85f1]) (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 62EF31EC0322; Thu, 15 Apr 2021 07:47:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1618465636; 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=wdr7LJCygRJ/a6U3yaUWITRLN12K19Ev9wrVZWngGzM=; b=KItbQuAnijFRSRQSQ67gsJp8hpYQd+gd35x1Ty3gJcunReRbsvItW0xOWrhbS6mUGVIl3U rv/MwCs/sJWOnqpcM1HPST8wNOsTvS2yg5BcVwfhRN7VeDnKqhCOwJU5ERG0r1StRKQuFO sSh/x4eNy740vgiiVWBhSFZUAsLskzc= Date: Thu, 15 Apr 2021 07:47:13 +0200 From: Borislav Petkov To: Willy Tarreau Cc: Len Brown , 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: <20210415054713.GB6318@zn.tnic> References: <87lf9nk2ku.fsf@oldenburg.str.redhat.com> <20210413034346.GA22861@1wt.eu> <20210414095804.GB10709@zn.tnic> <20210415044258.GA6318@zn.tnic> <20210415052938.GA2325@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210415052938.GA2325@1wt.eu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 07:29:38AM +0200, Willy Tarreau wrote: > What Len is saying is that not being interested in a feature is not an > argument for rejecting its adoption, Oh, I'm not rejecting its adoption - no, don't mean that. > which I'm perfectly fine with. But conversely not being interested in > a feature is also an argument for insisting that its adoption doesn't > harm other use cases (generally speaking, not this specific case > here). Pretty much. What I'd like to see is 0-overhead for current use cases and only overhead for those who want to use it. If that can't be done automagically, then users should request it explicitly. So basically you blow up the xsave buffer only for processes which want to do AMX. And this brings the question about libraries which, if they start using AMX by default - which doesn't sound like they will want to because AMX reportedly will have only a limited? set of users - if libraries start using it by default, then it better be worth the handling of the 8kb buffer per process. If not, this should also be requestable per process so that a simple pipe in Linux: | grep | awk | sed ... and so on is not penalized to allocate and handle by default 8kb for *each* process' buffer in that pipe just because each is linking against glibc which has detected AMX support in CPUID and is using it too for some weird reason like some microbenchmark saying so. All AFAIU, ofc. But my initial question was on the "establishing" part and was asking where we have established anything wrt AMX. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette