Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1401759pxj; Fri, 21 May 2021 13:21:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFc55OI7eN54rwRjTzOOIvM2fLvGleKLdW4DTvf8FA93RR2pz+x2rjchNDOokdmb/atQHE X-Received: by 2002:a02:866a:: with SMTP id e97mr7076419jai.136.1621628515779; Fri, 21 May 2021 13:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628515; cv=none; d=google.com; s=arc-20160816; b=xTep+aqUwNr830WLxzwtZ/tebKdXItW/HWic8oWyFkF+aXHWO8wIQBFjrYz/fX7Y6y zpwnhGOb32l7fI4lhx833vcAJV5I9s16fUeaidYslAgYvDEHX38pwFkTHI11VU3bB6Ib BrCQGvA0TJAMzLDpECv7YlqiKRv063TeogFF5rafYrhh8KGfTef6rEr82KAOHRcdDGT5 BkmqntkZbSmt16Z7V/TwaWfMCjz6Xv2XYqfYLuZW3FuYREaG8Sg0s8jLDy3P07tuNygu WkgWCd0MsEne+uXXkSj7S1BAvfS+yTUfIzBP8gMnpWHhk/mepbVbnhu6bABMqzA/jJSq 6NbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1baM0zqRLo4eZvgxJKx9Stnzz6oHz6lIg0FwM2ooeyw=; b=S2Llfc9XZyBrg0pjHM9HfjHeap7ruwCPDrgvCPNVdwhcIMAgJ/9HUx0hmLlVDJ8HVz lRBZfgH5Z26e6oH0upJZCiR3b80Gz3ftrnUz1KcyAV1ZznenBCPR4B4ugCwiRa9jijPw G6B6i0G1O/Wzlu91XVMMZe5rpB2pJRldGedpA6rYf6afkbRuW10BSzTtnuTQrvIPnEq+ 6kLH7+9R4DvKTxsb2KqStL0udZI3Ll1ST4KpQFQmkLdtwVi7BWlDK7Mn4at5Et7YqoXD gP7RJM2aLNT3o3azhMAqnW4v9MdAZH1ZZJkoztm59PyVG8MtopgFs0HWBV+tHCzWwWe4 iJwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si7280192jat.68.2021.05.21.13.21.43; Fri, 21 May 2021 13:21:55 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235313AbhEUQbR (ORCPT + 99 others); Fri, 21 May 2021 12:31:17 -0400 Received: from mail-ed1-f53.google.com ([209.85.208.53]:40491 "EHLO mail-ed1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231621AbhEUQbP (ORCPT ); Fri, 21 May 2021 12:31:15 -0400 Received: by mail-ed1-f53.google.com with SMTP id t3so23954274edc.7; Fri, 21 May 2021 09:29:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1baM0zqRLo4eZvgxJKx9Stnzz6oHz6lIg0FwM2ooeyw=; b=mMHzuGE0+np2peBsDZrfkVvODpWES2Br6wx4+md58GIguh8aw8/JoGY63rJD7qAqkP C3+MNbuq8nI7OJPaRNDIDzFYcyltQ34ycEVx7Zb7f2eV0aUts1QCYma7cDHzwYif2Qw+ rpsCYL9d/dnCHiox+QJ1BIVGdSla4fA4Caz9H4BVjLkyDb/3lq419+w0otap6nbFg+Fm CtuSZW1+i9pfC53OjcL8mf2HqR78WrO7CHbKHOk1wmiLOSwkGMjgZlVSOqmCabJ9dYvl bxfMSuMpudZAparEqYmYVYkEHHQmB+DL9iC2WU16RZS7QA/JtQxcmBbO0RNzDTPneIlS mbzA== X-Gm-Message-State: AOAM533likE2f+DYmkTIigPdjjU6nd5z2u2u+YFFZrgQhmw4CwHzzVDi iRZP0zvHssCjpHMIIRTZfc73f5/s4HIDK34hLM8= X-Received: by 2002:aa7:c818:: with SMTP id a24mr12147002edt.310.1621614590763; Fri, 21 May 2021 09:29:50 -0700 (PDT) MIME-Version: 1.0 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> <874kf11yoz.ffs@nanos.tec.linutronix.de> <87pmxpk7jo.fsf@oldenburg.str.redhat.com> In-Reply-To: <87pmxpk7jo.fsf@oldenburg.str.redhat.com> From: Len Brown Date: Fri, 21 May 2021 12:29:39 -0400 Message-ID: Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features To: Florian Weimer Cc: Thomas Gleixner , Borislav Petkov , Willy Tarreau , Andy Lutomirski , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , Linux API , "libc-alpha@sourceware.org" , Rich Felker , Kyle Huey , Keno Fischer , Arjan van de Ven Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 5:56 AM Florian Weimer wrote: > How expensive is checking XCR0 via XGETBV instead, on the AMX path? XGETBV takes about the same number of cycles as RDTSC (ie. it is relatively fast) Len Brown, Intel Open Source Technology Center