Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3391147pxf; Mon, 29 Mar 2021 00:29:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydAn213wY1++ZHCT3ZuXoiI+ku+q5yD2nQ+6ZrMqtxg44MVPDqtlczx94VjzLjf2Q2kyhe X-Received: by 2002:a17:907:3e12:: with SMTP id hp18mr26933790ejc.366.1617002970582; Mon, 29 Mar 2021 00:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617002970; cv=none; d=google.com; s=arc-20160816; b=wFz6b5DIC9eDyeWaFJgrXhvG+/EEaNhLlc3QhuPXnUk29J8mwxEnYHUgNipfXUdz3i YVN0RqWdiKVI0HwSneNqG5yrI9ZjvETB0U64L8adPJxPCU8hhWSL1gmVsm4cJ42520iz TVktK5YiM8Xlyz6lpgrjeSqFOdaTrp7phNyruaLv94nr5TCPqYtqUsqD5zZna2EtfQux 2LOCo1YtWh6suKzomXtOzCECg0GmbWAPbeBk5e3ZL0/yIVtlL4jBovnLMP3BvqCweQ4M 0KgVKQXejuk4Bpsp2qgMhsZTZqeW/ydm9rYuYF+KuVHz33J4xFuN0d3OiGhu5go7IYKi LbCg== 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=vXzyS4ZdoAsGZHqx1Bd2aZc17spJkGLwajSiyRGf+lM=; b=0+kxMgatrSxFG0yXssU3LYPf+OvBQSTPmTmpcNXWpp1qkEy1gnmQkASNv03l3ROpzB wRFph8X/gKWq4QiqcweETaIeaWfhnK11uhOwBH7aTtaVT6nTPs30PADuD3HdaoCtxcqT 7zgCOsrof8JQycCf2eehclf0Yr/YNEycJUfm7Gg1SelMHrC773LrSKAIJVgWLFVtst8B r7fvLs7X6KV6GGuzVQCTRVd6+hajdh7J+PG8ejOsuC8QVMPGdHGtn9EytpHoF5Jx4OiQ z/th/ULIwxKaMzbm1AV7z+5Y2wFHBkh1OgqoZqIbQiukVrtpfOjHIKSH9YCi5gPFBXCO 9iWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uK3d9hLE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp18si12375211ejc.432.2021.03.29.00.29.08; Mon, 29 Mar 2021 00:29:30 -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=@infradead.org header.s=casper.20170209 header.b=uK3d9hLE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbhC2H2M (ORCPT + 99 others); Mon, 29 Mar 2021 03:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhC2H1l (ORCPT ); Mon, 29 Mar 2021 03:27:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47B02C061574; Mon, 29 Mar 2021 00:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vXzyS4ZdoAsGZHqx1Bd2aZc17spJkGLwajSiyRGf+lM=; b=uK3d9hLEsjECjYK//WF1aA+5NR 2JDiou5L6iAAGfp2awoVez0aYlStDU62gbicIIelRkUvBdAZQzCFSMK6UQUC8Fj3yxBoVYR2ayB/I TnZuOn2dY0MO4dGbGYKshe/L/AFz7WrM5FdVUU7oFkKCRiQOR9L2XLjWyY50KNtJ3Cw0TImroaqN2 acrp1waG/HroebOevKlOzuPHtWZNKjqpPPKK5YhJZXQ1TTzUkp9UV34VYOcSRc6QzZWIYzttzYE/a EnQGgNr8FvaziyYYF/S4G5d2hilj2dKOGvuJFF3gmyIM0XCmIMcKD7TrWsZAHJZuAOLro0vyRPX0w rUL3EChA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lQmIi-001B3I-Hv; Mon, 29 Mar 2021 07:27:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 19DDE3011FE; Mon, 29 Mar 2021 09:27:03 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E5A62207189A1; Mon, 29 Mar 2021 09:27:02 +0200 (CEST) Date: Mon, 29 Mar 2021 09:27:02 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Andy Lutomirski , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , libc-alpha , Florian Weimer , Rich Felker , Kyle Huey , Keno Fischer , Linux API Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features Message-ID: References: <87o8f4cd50.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o8f4cd50.ffs@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 28, 2021 at 01:53:15AM +0100, Thomas Gleixner wrote: > Though the little devil in my head tells me, that making AMX support > depend on the CPUID faulting capability might be not the worst thing. > > Then we actually enforce CPUID faulting (finally) on CPUs which support > it, which would be a first step into the right direction simply because > then random library X has to go to the kernel and ask for it explicitely > or just shrug and use whatever the kernel is willing to hand out in > CPUID. > > Now take that one step further. When the first part of some user space > application asks for it, then you can register that with the process and > make sane decisions for all other requesters which come after it, which > is an important step into the direction of having a common orchestration > for this. I wrote something like that at least one... https://lore.kernel.org/lkml/20190212164833.GK32494@hirez.programming.kicks-ass.net/ we just need to make sure AMD implements that before it ships a chip with AVX512 on.