Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp517015pxv; Thu, 8 Jul 2021 07:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe3hzsrElJ7fdn3D69fMHlQd8Ps1RqzKNQ2lbxzHpiT4f4Du3dojDnxU5cEgO/+0Pqoyc0 X-Received: by 2002:a17:906:15c2:: with SMTP id l2mr31160528ejd.348.1625755491551; Thu, 08 Jul 2021 07:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625755491; cv=none; d=google.com; s=arc-20160816; b=d3u/6tXO4k+WsB8lW7s3dQYMy2rrM4zksJrF1d5hS4UN82XtLd9HK1GuTitOyf4VYH TQByefbif0X40xOSFWx8z8jl40K+iAYu3IblTrN8bvQxWZYLZH6p+685wxPudqAo/PAd ISuo/fT6o0dltntZbJgA4+aSv6lSvhU6CRXenVfcPdHL7fvZHyHguz1WVjRJXKS3rwbo Abanq0QZZO91IgRwkeMDQ9ubTpxzf4kN/dYqs4x708v2Auu6lvQAvNztCWrzfzhOtIby ODFVh0/aT4EJ/ofFvwPPSHXHH4v86+h8dYVWGopRY7HWOvywZQTgkEsXxv79EqX0q9Fq /NCg== 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=MVHdtokfwVvo9NLtbFn0ekZdo09a+Ervl/zkT6BQW3c=; b=S34U3oFR4KkWRqpomlxuo6L059njKM/aYi7Pua0C+mRlRxtteETj80/x4Eirlve6Fn FA5D1J9kFuEdeOclKLdugpyjlt/CRtESEJL4lXBf/0Ypd3AS19z2oXDr/Tu/sFXQ6+in 7k4ZCtPY8al4dhdfg1wvXrIIBJTQlQjdLZN5o5NDu8p9q0++7ADTqXibTGmnGdcmEwEE hGdXcPq3KwQSWX3lbEqOIU+Oa3PNywTk7LiXNBqQOMhsllft/IvSDuBtGKMc+SWDFL4E nWZg1M1NthWLlx9XvkNTmdET+FH/isnvLLw6DLx5sz8/q2av6dL2lGHOj4ZB2ZKUxsy7 mhSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SJdamD9Q; 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 y15si3555966eda.75.2021.07.08.07.44.28; Thu, 08 Jul 2021 07:44:51 -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=SJdamD9Q; 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 S232016AbhGHOoA (ORCPT + 99 others); Thu, 8 Jul 2021 10:44:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57943 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbhGHOn7 (ORCPT ); Thu, 8 Jul 2021 10:43:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625755277; 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=MVHdtokfwVvo9NLtbFn0ekZdo09a+Ervl/zkT6BQW3c=; b=SJdamD9QGYh4hg2HHRTZFfTp54YMKRYVi0PVnV+cl6oYxFnbDJcfUbsB28rOcD3VH/pxrt nqhoa8CwqQdWuyikhgdBsLZHAbgvEX+ETBtmg934QgnCJee7GQ9rkJSFxqYN89ox59AIx4 5dVTbUdccOvkP9eWTS/jf0EwMG162lE= 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-275-f2NipTGrOE2JkhbqiqCatA-1; Thu, 08 Jul 2021 10:41:16 -0400 X-MC-Unique: f2NipTGrOE2JkhbqiqCatA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76EBC18414A0; Thu, 8 Jul 2021 14:41:14 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-5.ams2.redhat.com [10.36.115.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4B3510023AB; Thu, 8 Jul 2021 14:41:11 +0000 (UTC) From: Florian Weimer To: Dave Hansen Cc: libc-alpha@sourceware.org, linux-api@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org, "H.J. Lu" , linux-kernel@vger.kernel.org Subject: Re: x86 CPU features detection for applications (and AMX) References: <87tulo39ms.fsf@oldenburg.str.redhat.com> <878s2hz6g3.fsf@oldenburg.str.redhat.com> <87sg0oswqn.fsf@oldenburg.str.redhat.com> Date: Thu, 08 Jul 2021 16:41:09 +0200 In-Reply-To: (Dave Hansen's message of "Thu, 8 Jul 2021 07:36:44 -0700") Message-ID: <87lf6gswai.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.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen: > That's kinda my whole point. > > These *MUST* be curated to be meaningful. Right now, someone just > dumped a set of CPUID bits into the documentation. > > The interface really needs *three* modes: > > 1. Yes, the CPU/OS supports this feature > 2. No, the CPU/OS doesn't support this feature > 3. Hell if I know, never heard of this feature > > The interface really conflates 2 and 3. To me, that makes it > fundamentally flawed. That's an interesing point. 3 looks potentially more useful than the feature/usable distinction to me. The recent RTM change suggests that there are more states, but we probably can't do much about such soft-disable changes. Thanks, Florian