Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp666107pxb; Fri, 16 Apr 2021 15:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOnsIyjlQYdG1FUBX+zN1XFNvJcNZoag8IAALQTipZFm0waYbmHOdNasO2Kg/Jfi9KGLCC X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr10805097ejc.54.1618611428013; Fri, 16 Apr 2021 15:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618611428; cv=none; d=google.com; s=arc-20160816; b=XLHDBfH8+fHl6lZ9NsDwcYNkUtsWE3sk6FxrjKGNpZrXvrdmBg4AsBqJhwIHYSfJFz L44NDcwNoBhDfIbEUjdraRIEce6QzS+6lXqOdHAJ+oQeZl+w7JWA6umGpp2+xMmKhQSl RkbjGb3x9ajQ3ADpfgKW/nj1BvaRPyNf1sQBloun0iSfx7sTyeQHukJ6oUSm+c/iTjR4 rbxbqVOcjn50UUb4imDDfw1DNmKcQuAqKdkslHC8Vpth2e8mPg+fCT1rv0S93xVs2i7B /vE3j8ER4MO8OGy7A8OAOAmlasOwlUUg7Cs/PS49LJwUKXWC9zOQsCsgy4njoTZOrPot LfAA== 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:dkim-signature; bh=NuKd+2kOiRlHni3W13jZoaNaK0yHiAfYF1/9SLp8gSo=; b=V/4QcVueXC7okVvrq7rrA6spjGY3gh3lq94lW02DD7Zf+OiI7AVipe4uTpSGzl08vL TuBFDXDcZcd1W8+gwvFYoL1xpb47LyoUAVmqDwwGd8iTjz1rgDvOO9/dsmZmtmCOKve1 hD1zf5c/axazLdCr/WRcIEqeOIDKVpu8OZhMzQJ8gCP2HbVZ5zJJPP7N04kmFHWnSLmE x3HVP/o/p+tJIhXJk5ENQJhpO0EvnMedSCDB7V3r4W+my3jJlFOGQ48xv9iqsse1oXcT fn4W18kw3Fjt/P0F3yMEvjABQ/8U9QghKAImERJaVH5HVfWOlWfoyFr1hFJuFgn9AThg 1K8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aJBN/Wk7"; 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 nb19si6645613ejc.427.2021.04.16.15.16.44; Fri, 16 Apr 2021 15:17:08 -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=@kernel.org header.s=k20201202 header.b="aJBN/Wk7"; 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 S235645AbhDPWPD (ORCPT + 99 others); Fri, 16 Apr 2021 18:15:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:45138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235192AbhDPWPD (ORCPT ); Fri, 16 Apr 2021 18:15:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB4AE613D2 for ; Fri, 16 Apr 2021 22:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618611277; bh=YAW6WRjJB1b/E7DTA4ByXcdOWn3VcOBIWw3+GxAvbQc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aJBN/Wk7BwKQoiVOxWKTh/K9RVR0H0dodvRB4YL8hknd2xTOYQ91NIvnra67OQVfg +j3BTm+WoDPjekRNVeYXwPwd0V7NhPYFuazThT8H1bE32Yppusm83My1H7i9bSpW/l O6XXqEmmqpxdDb4HZ+ohMHyntX8LDCu3seIRrGMBl+0HTgKNk7klSFhqyAUjfbaEG4 mlA/bjpoFpQ7DEDw3qvw+fssBrAab7ygjP12HdbJXTYn1+NiKLoqrrePlQD+wuekUb K6sHrzYFF1Xkb1P28CeNwyZ8RjIfnDFPpCd8v7zW8TGy74cvg7kQlOS/ge+/RpdEAG k4qorR0iC2eLw== Received: by mail-ed1-f46.google.com with SMTP id i3so8322851edt.1 for ; Fri, 16 Apr 2021 15:14:37 -0700 (PDT) X-Gm-Message-State: AOAM531nMOvXYCg0KwqRPOwSP6cu9bm9lve/2Q9n9FV/CzviWC/v9Fg2 Zjih7mSifFfsYob9ZwS2C75/OMdCEWyfqx0E/y8V/Q== X-Received: by 2002:aa7:d7d1:: with SMTP id e17mr12795520eds.84.1618611276328; Fri, 16 Apr 2021 15:14:36 -0700 (PDT) MIME-Version: 1.0 References: <87lf9nk2ku.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Andy Lutomirski Date: Fri, 16 Apr 2021 15:14:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features To: Len Brown Cc: Andy Lutomirski , Willy Tarreau , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 3:11 PM Len Brown wrote: > > > I get it. That does not explain why LDMXCSR and VLDMXCSR cause > > pipelines stalls. > > Sorry, I thought this thread was about AMX. > I don't know the answer to your LDMXCSR and VLDMXCSR question. My point is that every single major math extension since the original XMM extensions (SSE, etc) has come with performance gotchas. Given Intel's general unwillingness to document the gotchas in hardware that is actually shipping, I'm sceptical that AMX is as delightfully gotcha-free as you are making it out to be. Is there any authoritative guidance at all on what actually happens, performance-wise, when someone does AMX math?