From patchwork Thu Apr 27 16:10:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 88306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp387758vqo; Thu, 27 Apr 2023 09:24:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MNTu+s6meXuDMXjvx5XYhVd74936pI4AUSD/9YJQMxoyTFuqWfhT45a6B1oXpBWQNERz2 X-Received: by 2002:a05:6a00:2d16:b0:63d:2d99:2e92 with SMTP id fa22-20020a056a002d1600b0063d2d992e92mr3618784pfb.17.1682612654081; Thu, 27 Apr 2023 09:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682612654; cv=none; d=google.com; s=arc-20160816; b=yJDGdgzpnF/zMjUmOncvI8XbXMhQ3i10OQ0cW8XBmfJYbT8Jx5PU0eT232v7nP60CM IDJ7fr9Yqr+v42JQoIEK+4TGwXYsILCJKvXrjZ8EhliZDCUQdW/2d+wLTAgsBqyaA00I 7kV10Hk8/xkS0cVzmF9H7RjZeVOOG30QtazhDmbjg9UI3MgnCWKLVAPQe+ssQtPPqlUf nOUDlMPA51hNk03b9GDQSojWnAb5jaHSDcTXU0YSw0DDM8qdp8ASCq6Rj9qKJw7ZLW0I PFpNROUu3uqbEqIskWCwLQ3Ymdu+nhC0A4Qlw6uopPOt9Gw0j+w35+jl1lhZMQ+zqZBt yNUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=X/FHToahpnyX4A8uULHO6kiP/c4oz5xKmqWixxMRp4c=; b=lrtr7fTbvcvQz80qZ41PtnIAnGoqkZBph8t7xTO0LruYifTuMuoo/5S4kRWP5TBEbi 2dWj+UCldYW8DaSZeqc+h+QynR1GbcfsVb4UUcCbqBzQSYQ20OYF2BfpossI+TiCxf+q HO0LC+/Pgf3BqQ7iy/PYmBvES8wFfKzbW+VVY53ckN2X/T0EODtXlIBnqcO18Gmaa7OH 0cMGsooPuiJgBTObfKTVgsN+Ifz3ZWTzCaU3L5WTw18jL32PciXPFzS9vYITH3tO8NtZ shrZ0jXhcye8tvboZ5FwkONHM+l1rsk/GyNFzjLMMBfzxk1HdxwTCOWiTPBvFaPLw9uv e1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cCmOBlxN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020aa78bc8000000b0063c29725444si18914409pfd.347.2023.04.27.09.23.50; Thu, 27 Apr 2023 09:24:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cCmOBlxN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244032AbjD0QLW (ORCPT + 99 others); Thu, 27 Apr 2023 12:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243023AbjD0QLV (ORCPT ); Thu, 27 Apr 2023 12:11:21 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04B02709 for ; Thu, 27 Apr 2023 09:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682611878; x=1714147878; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WT17EN12I58ZSAp+uG1IXqZlMrM0WWAPtGlhqCyqwIY=; b=cCmOBlxNrMzthsY3kXzSkvU0LkFVVlA2ExGznML1mWuaZ5gBeGmRVHzV ldkvvq9+5VqBWDpWmuKcZT0R+zWtxFVJju5dAv8FgdTqCtzvMJeMuVQz9 RShCyFbT5iN9Zh8bnTrXG1SWTgPlUq1zTNbZHRibcr4JZlJX5WkuHZp2H WC+UOovakt1cbanlYy4mEODqEa30apUrPBkTkuQbOBFh2tF8BMQouVYdW YCxFP7Zy1HHbc3g25sLDu0raWBv/PHpXpuzxOwUN6mA4bNeG9kgE7g6u0 5FY4T70m2wuFyNWIY2M0q2a5Kh3EFLcyB/Na0AqnW9HXsFpbFeJZHu/1t w==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="412838581" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="412838581" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 09:10:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="838451121" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="838451121" Received: from viggo.jf.intel.com (HELO ray2.sr71.net) ([10.54.77.144]) by fmsmga001.fm.intel.com with ESMTP; 27 Apr 2023 09:10:23 -0700 From: Dave Hansen To: torvalds@linux-foundation.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen Subject: [GIT PULL] x86/fpu for 6.4 Date: Thu, 27 Apr 2023 09:10:10 -0700 Message-Id: <20230427161010.1053561-1-dave.hansen@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764347245939119841?= X-GMAIL-MSGID: =?utf-8?q?1764347245939119841?= Hi Linus, Please pull some x86/fpu changes for 6.4. There's no _actual_ kernel functionality here. This expands the documentation around AMX support including some code examples. The example code also exposed the fact that hardware architecture constants as part of the ABI, but there's no easy place that they get defined for apps. Adding them to a uabi header will eventually make life easier for consumers of the ABI. --- The following changes since commit e8d018dd0257f744ca50a729e3d042cf2ec9da65: Linux 6.3-rc3 (2023-03-19 13:27:55 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_fpu_for_6.4 for you to fetch changes up to 5fbff260755750559aa12a30f6fa7f8a863666f1: Documentation/x86: Explain the state component permission for guests (2023-03-22 13:08:02 -0700) ---------------------------------------------------------------- * Improve AMX documentation along with example code * Explicitly make some hardware constants part of the uabi ---------------------------------------------------------------- Chang S. Bae (4): Documentation/x86: Explain the purpose for dynamic features x86/arch_prctl: Add AMX feature numbers as ABI constants Documentation/x86: Add the AMX enabling example Documentation/x86: Explain the state component permission for guests Documentation/x86/xstate.rst | 100 ++++++++++++++++++++++++++++++++++++++ arch/x86/include/uapi/asm/prctl.h | 3 ++ 2 files changed, 103 insertions(+)