From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3676CC433C1 for ; Fri, 26 Mar 2021 10:09:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D454161A48 for ; Fri, 26 Mar 2021 10:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbhCZKI4 (ORCPT ); Fri, 26 Mar 2021 06:08:56 -0400 Received: from mail.skyhub.de ([5.9.137.197]:53126 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbhCZKIh (ORCPT ); Fri, 26 Mar 2021 06:08:37 -0400 Received: from zn.tnic (p4fed36c1.dip0.t-ipconnect.de [79.237.54.193]) (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 00A871EC0516; Fri, 26 Mar 2021 11:08:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1616753314; 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=ZLc7fshYKo37ikTzRgiXujejn/o09szUdcbZCih/Npo=; b=LRVM0zVhuNBSNy2gNLhdAi/rs4vGZ8GNWL+tF7ODlo2f9NTql6MJZZtHRj50+vdcnBYUtj rDHwE6+XK2QpKPAEysyX/Cs5eR4X7dm+CkRQ9niCBxdNnzGw1d8XtGm7Nj7qK7lT90b61t 9SxmhKmIcAz6vJ3Nb0PlOhBjcd5eM58= Date: Fri, 26 Mar 2021 11:06:20 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: libc-alpha , "H. J. Lu" , X86 ML , LKML , "Bae, Chang Seok" , Florian Weimer , Carlos O'Donell , Rich Felker Subject: Re: Why does glibc use AVX-512? Message-ID: <20210326100620.GA25229@zn.tnic> References: 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 Thu, Mar 25, 2021 at 09:38:24PM -0700, Andy Lutomirski wrote: > I think we should seriously consider solutions in which, for new > tasks, XCR0 has new giant features (e.g. AMX) and possibly even > AVX-512 cleared, and programs need to explicitly request enablement. I totally agree with making this depend on an explicit user request, but... > This would allow programs to opt into not saving/restoring across > signals or to save/restore in buffers supplied when the feature is > enabled. This has all kinds of pros and cons, and I'm not sure it's a > great idea. But, in the absence of some change to the ABI, the > default outcome is that, on AMX-enabled kernels on AMX-enabled > hardware, the signal frame will be more than 8kB, and this will affect > *every* signal regardless of whether AMX is in use. ... what's stopping the library from issuing that new ABI call before it starts the app and get automatically enabled for everything by default? And then we'll get the lazy FPU thing all over again. So the ABI should be explicit user interaction or a kernel cmdline param or so. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette