Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1195262pxf; Fri, 26 Mar 2021 03:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr8RVkH2PJiDRm/dTipxCbOwj9N9a5GECa0p/PX7KUfzxriqitrQYA1Ao7LIsT3T+XuKmf X-Received: by 2002:a17:907:3d01:: with SMTP id gm1mr14536468ejc.214.1616753477425; Fri, 26 Mar 2021 03:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616753477; cv=none; d=google.com; s=arc-20160816; b=HYY2B5rH3ntwXlT1U86IC11bStxF3X7n7hAT7eM566mHShDrIIJJq/6Qj9UBnNX+xJ o49ohKhkjOFS/9dGF6YwaN+3mIXnJgLrgghFIN0CENtygjkJrCc5LmDz6ls7+P7V1Dbd zHl+Ay/u3wuUVx/rYOBQKBO5/VaB4gF9l6rt6iv9Q43ZZeGaTOMGVpVcq6wjo7ygP+BP u2FD6BnfEgncTAI7YVGJz+fq4IguCcOL+QKirdrhGG7DV8L+xUcrGQ1egWbTvtUv8Gd9 5zL/WL0YZ+I7t37+Rrvp2ZUUizIQpRKTj16+o863y89hh9BFW53BGrpYqUcHRvvdTnBw Vu2g== 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=ZLc7fshYKo37ikTzRgiXujejn/o09szUdcbZCih/Npo=; b=uPpbxhZed3btSC5cEJfFfWkFIzlKXgMl9PLIdHdz7NLaNi4GLeyzxJ+DhzkMHxu/TW mV6/MeSlu19WQo+iGjajuA3qnueVAFXJrGEf3FawQi8zWweCHWNJAdtBD//12pfRiPDt 3KiS2YU1ly1s5u4eGTgCgDQGCS+iVqyQfTO325FRdsrbHhoZf4W3NhVC8FA9T4CWdlhJ sZyZdp/wZZLyuV5IzuI6n5TZHuefSVtQjCA3810kpyCak475ChmbZgbczbn5JQxopLoe 2MQAE+7NTE0WToJLV0eo4zybdZEisyJeAwFKopdkHlTr3lo4McDUJGo5iiI++16AfWkR uX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LRVM0zVh; 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 l14si6291505eji.711.2021.03.26.03.10.53; Fri, 26 Mar 2021 03:11:17 -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=LRVM0zVh; 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 S229832AbhCZKIz (ORCPT + 99 others); Fri, 26 Mar 2021 06:08:55 -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