Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2827334pxb; Mon, 19 Apr 2021 15:17:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpUMUQfkXhOr740ZnSs2aO1mCnI/dfGM9H36t2TsZtVuHy+a+yQOAk9W86jCg25yt66FR3 X-Received: by 2002:a17:902:c410:b029:eb:279:f53b with SMTP id k16-20020a170902c410b02900eb0279f53bmr25857087plk.33.1618870661225; Mon, 19 Apr 2021 15:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618870661; cv=none; d=google.com; s=arc-20160816; b=lE781H0y6JwEatxSXCYEoYiuT86Sq0wtGydWe5BPqOjwFIAbK4m6ouojqNPL0w87MF lWQtGNAGqlm3KrHAbiRiRPsTLCplKDBu4sA4pHGNSdsGgLVcOckaNAzA1j+DqNIxKEBL HVR5bgK2iA8C5uxDhhtjgYQu2zkvN4kajlZ0cGqkzOwvpO3shreblPfbY3xZpSfvfNOv SDemaSlgqstpFPccZFgMKb94oSRCh9IoHWd/W+paHSm/Fh3P2sBg3o6QjzEuOVFq/4Mb tXEASktXjopMM3OdIob2kSM4RuVJbVBoSLx6V4SLz22sOEeGgs5Atxm6mKKtA2NI94xY 8Nxw== 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=jEY6C/L0jIoOv0HatPgpX4fpZUlU9Zq+96RNJO/TRvA=; b=VYX9ZCWWX1Bu9PgftI0GVO8ZP+H6jXyuVcRO4t8/UiLWes5mh6elKTnnf1f19BV+UC 2yRqaCcZzPBgW8wqZaeZ6MKUvCYZfjxhHdiqPVlGe+3w+7Y1pgu+WyEqtj3P/oKx9UvO aW2VQiGBSfvDuZlXlQ/Rjm0pv1Rthpm0mlQDKR6vL7+Bk8s20NiS2ncAH7JtwGj/l8/p JJ1TPsMkdJybcEPVbhH4sanesE1OmiWmzfvxbYAUpL2GEIIvjiXPY8iMEP8I9cIlhnGD LUawv0ivnEWdgRmhZPV6mHvPvqXezTMa+vr0klHbUCXzo8QOwgrXQlf/2mfAvcsVVpNf Dd7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZZtM2m0I; 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 pg9si932545pjb.41.2021.04.19.15.17.29; Mon, 19 Apr 2021 15:17:41 -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=ZZtM2m0I; 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 S241374AbhDSTQP (ORCPT + 99 others); Mon, 19 Apr 2021 15:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237147AbhDSTQP (ORCPT ); Mon, 19 Apr 2021 15:16:15 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60D8C06174A; Mon, 19 Apr 2021 12:15:44 -0700 (PDT) Received: from zn.tnic (p200300ec2f07810057dd6a0ceac1c230.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:8100:57dd:6a0c:eac1:c230]) (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 DAFDC1EC0493; Mon, 19 Apr 2021 21:15:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1618859743; 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=jEY6C/L0jIoOv0HatPgpX4fpZUlU9Zq+96RNJO/TRvA=; b=ZZtM2m0ICRlrP5bWXiF8Q2jyCHDJTCxMFGsEZPHgYYWGmQiV/PdQS2IFGzQkZbyPnexx9f 9SUMQPOMTTQP5zaa4bmDK7vRyArQOidfkF1ovUibYvVaG8HNXMTQQym5+OedpCtIKZD1/S VDmUzP9mM6S8jl/psr1kY2lGfMgXnds= Date: Mon, 19 Apr 2021 21:15:39 +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: <20210419191539.GH9093@zn.tnic> References: <20210413034346.GA22861@1wt.eu> <20210414095804.GB10709@zn.tnic> <20210415044258.GA6318@zn.tnic> <20210415052938.GA2325@1wt.eu> <20210415054713.GB6318@zn.tnic> <20210419141454.GE9093@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 Mon, Apr 19, 2021 at 02:18:51PM -0400, Len Brown wrote: > Yes, we could invent a new system call and mandate that it be called > between #2 and #3. However, we'd still do #4 in response, so I don't > see any value to that system call. Lemme refresh your memory: there was a time when the kernel did lazy FPU switching because tasks which really wanted to do that, would use FPU insns and from the first use onwards, the kernel would shuffle an FPU state buffer back'n'forth for the task, for the length of its lifetime. Then glibc decided to use FPU in memcpy or whatever, leading up to *every* task using the FPU which practically made us remove all that lazy FPU switching logic and do eager FPU. Back then that state was what, dunno, 1-2 KB tops. Now imagine the same lazy => eager switch but with AVX or AMX or . All of a sudden you have *every* thread sporting a fat 8K buffer because the library decided to use a fat buffer feature for it. Nope, I don't want that to happen. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette