From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 424B4ECAAD3 for ; Fri, 9 Sep 2022 20:26:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232240AbiIIU0h (ORCPT ); Fri, 9 Sep 2022 16:26:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbiIIU0Q (ORCPT ); Fri, 9 Sep 2022 16:26:16 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF8A5128956; Fri, 9 Sep 2022 13:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662755141; x=1694291141; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=v8yPnByOxolH3y3Ja7dBlrus/vQe6rAVnEPjft+iu64=; b=JFCjI94oNcjSDjOoXH3afRhFP/QZ4oSYxbzZ3PHJfAAobRXWdDtPwOsK KOJ3vHeUVenqQsX+q1p05GrX/GlpALoaN5YYoUiiRiP29P03BlELkAKwr bevDNTP8BQmVNfGOsPE4AzVibo+/8gHCznMAQ++BFHRhb201VAR/bOJsT R+O+jBuHp2c8dwxn9uyrXg2OAeH9e9YmDcSp/VLzED0GOdaJvR3uxmyZs qw7psI9uK+wKZqnTmv0S1+RqYshJv4uWasNQVDkfvexXUqS3pvkNjQfg/ fhbBdsF1RQSHkmhzFf92pvV44FT1i2STUhMXZJXlzmVEcb+sLppUyXuZ6 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10465"; a="280584700" X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="280584700" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2022 13:25:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="611162996" Received: from chang-linux-3.sc.intel.com ([172.25.66.173]) by orsmga007.jf.intel.com with ESMTP; 09 Sep 2022 13:25:35 -0700 From: "Chang S. Bae" To: x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: hpa@zytor.com, corbet@lwn.net, bagasdotme@gmail.com, tony.luck@intel.com, yang.zhong@intel.com, linux-doc@vger.kernel.org, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, chang.seok.bae@intel.com Subject: [PATCH v4 2/4] x86/arch_prctl: Add AMX feature numbers as ABI constants Date: Fri, 9 Sep 2022 13:15:38 -0700 Message-Id: <20220909201540.17705-3-chang.seok.bae@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220909201540.17705-1-chang.seok.bae@intel.com> References: <20220909201540.17705-1-chang.seok.bae@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org AMX state is dynamically enabled by the architecture-specific prctl(). Expose the state components as ABI constants. They become handy not to be looked up from the architecture specification. Signed-off-by: Chang S. Bae Reviewed-by: Tony Luck Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org --- Changes from v2: * Add as a new patch (Tony Luck). --- arch/x86/include/uapi/asm/prctl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/uapi/asm/prctl.h b/arch/x86/include/uapi/asm/prctl.h index 500b96e71f18..f298c778f856 100644 --- a/arch/x86/include/uapi/asm/prctl.h +++ b/arch/x86/include/uapi/asm/prctl.h @@ -16,6 +16,9 @@ #define ARCH_GET_XCOMP_GUEST_PERM 0x1024 #define ARCH_REQ_XCOMP_GUEST_PERM 0x1025 +#define ARCH_XCOMP_TILECFG 17 +#define ARCH_XCOMP_TILEDATA 18 + #define ARCH_MAP_VDSO_X32 0x2001 #define ARCH_MAP_VDSO_32 0x2002 #define ARCH_MAP_VDSO_64 0x2003 -- 2.17.1