Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2420846pxy; Sun, 2 May 2021 22:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcwEuz3ztuNdZFWs4lCaDLDx1eSUfFPIDu4q3KMGU2Z7rmBHV4zvM7+9bpmWEdfOIW3caN X-Received: by 2002:a50:fc0b:: with SMTP id i11mr18755860edr.259.1620019749358; Sun, 02 May 2021 22:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620019749; cv=none; d=google.com; s=arc-20160816; b=NzLqEEwy1OK/+86Pi0c7nitXYjY7U8DKig1WmYHjj9MYXh2B7t+1mKOBL5LwbMYYEm YW+coi+tUezg1nFGZqpMf/tGs0dAGobbuqHYPWZsz7WyDN759EbDL9euVuYYR4jO6TRS ymoW9aO2EG5T503BhGOTJj2zYHvPXgKxEfbuw8hdzxKBuh/01+fbp3abbGwqIJmeIr4c 0ss/jzPP9Fa6RB4E7J947XGgFei0ImP4LXzFafac7rKd7684EE4Liz1/q/1EljY2gMBO qKhETysmbYI9vcgh0huACDJMTAypeSyFvMqPj93Pfv82/gMBMeRdl1jNOuDtBR8VRm6M 3BbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=AuEiYD42Zz5WBftkQsHhyYFKqxjbzt+m6olruO+nNkM=; b=EBG6S2UtTEMIqm7ZJrm72Baf9NRHKWA2v9DYnj65v1Ez8zF6HzXdok6KKN3q3ugDmW auoUb2ctwjvXwx2NYKsCh/poAirlU9Gv/3CgnPJvQ7ezwh+8nnN8jbZ3t77whoeEjr8H +Tr5sdNlpXT72ll2pI5TlY8amrVc+JbIrSnDPJJFsCVxZKR7LG5jyqx+fJhnJ7UJoXxI VNMC8uUUzD05cDX3F+g9Zl6gjcsS2cl0CB6kks7YeCKIave95ytMJMsXCBNJqSqDqUWR OlkSrvHJT0cA1R4DcMNWFf2IyB69fr1cAquJlYoik1KLzcogHTswGLPGWrGx877OjnBK 5WEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZigBA+x8; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si3420301ejc.200.2021.05.02.22.28.33; Sun, 02 May 2021 22:29:09 -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=@redhat.com header.s=mimecast20190719 header.b=ZigBA+x8; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbhECFTH (ORCPT + 99 others); Mon, 3 May 2021 01:19:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29905 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhECFTH (ORCPT ); Mon, 3 May 2021 01:19:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620019093; 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: in-reply-to:in-reply-to:references:references; bh=AuEiYD42Zz5WBftkQsHhyYFKqxjbzt+m6olruO+nNkM=; b=ZigBA+x8GBqXIOWx3UCjUHmKq+pBBkgmHWnDtzBPwzh46gcrBrdzjPdK7Mub47jTjEKciZ eXj1Ni1/p2kxA+phdERV730RAEdXPHQLJlVLfA8S4iZabZrWGO2yQr3ZvKtqi5Zz4sAF5V IZmPLYjEpfMmABMeALFH0Nok97qmZWI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-285-Ti7evn4XNcGDopxRMF8L-g-1; Mon, 03 May 2021 01:18:11 -0400 X-MC-Unique: Ti7evn4XNcGDopxRMF8L-g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1A2A350203; Mon, 3 May 2021 05:18:09 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-137.ams2.redhat.com [10.36.112.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CAA3B781E0; Mon, 3 May 2021 05:18:04 +0000 (UTC) From: Florian Weimer To: Len Brown Cc: Borislav Petkov , Willy Tarreau , Andy Lutomirski , "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 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> Date: Mon, 03 May 2021 07:18:16 +0200 In-Reply-To: (Len Brown's message of "Sun, 2 May 2021 11:27:26 -0400") Message-ID: <87bl9s8kfb.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Len Brown: > 5. If the feature is enabled in XCR0, the user happily uses it. > > For AMX, Linux implements "transparent first use" > so that it doesn't have to allocate 8KB context switch > buffers for tasks that don't actually use AMX. > It does this by arming XFD for all tasks, and taking a #NM > to allocate a context switch buffer only for those tasks > that actually execute AMX instructions. What happens if the kernel cannot allocate that additional context switch buffer? Thanks, Florian