From nobody Sun Feb 8 22:43:28 2026 Received: from PH7PR06CU001.outbound.protection.outlook.com (mail-westus3azon11010054.outbound.protection.outlook.com [52.101.201.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13F4D42981F; Wed, 21 Jan 2026 21:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.201.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769030072; cv=fail; b=ufdpk0DCbGNAl649+0/BfbDVo+b0cWLL4FdZ/+kuDlBlg2M381/C25Cg2I1DYn3ScxoeMtSTz/uGpJNyosPaBA1oJO2xgLOdHfruCPxQ1HNEksvQfML+pk8vqMmjWpNml3E8cleUVXXTlikRcmp6aWUPHIbPRgnHY8R0YgB9DGo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769030072; c=relaxed/simple; bh=PgHKmuMwt+Y+Mlj8hjAqMjZpHkoYPZpHwXeCvJqrTQo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UuT2asRp6Hb7ymqZb5Ep+ykaIs662BtzgVjCvIP1zgYc8KM/IxfJUoDaUTLdrvSxPDbDdiv6M6CMhQW0lIvgUQAsEJrBIDhfG6FTZriv9jzqnTxstIvHzEpGoR/dxhuC6kvbRpfsCf/1CwAMTDvFuUklU8+/Y34RtaNNDUh0LTU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=uLwtJDHw; arc=fail smtp.client-ip=52.101.201.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="uLwtJDHw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YY9PJoTC4A69Qnuv3nCt9dYD+0ZIl3Mp+B1um5csZ7aKQBrP+n0Fuwoq8JUkPc6S2ASWU60tIm4zRCD0y9prYspNAdauklLeJl46P/PweUU5Z3duE0E4KyL4y82rRjsaO+cRJFCGTqnjs2TdUu04Fp4xHlKdQd+mnhShAeV8cm45V6gn5lYQNFu4+p3ly74GjuVbHBsgAczIkGj0v7nv1Kd4LnhoQNp/NbcudIXYxcYmk7gsxjqSE99EW5Fa4rVEA0VvXqCbLkF1tehRdX+KuHT5nWMkltKNA+E+hyep/JcpIV96rkH9w+EW6s+aF+vE/AylkdP8ljrez4Fb1DRzwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=drOkolsyZ4dJEEQe+0KW7qcNf6Mf95gudj4fYUzDYLU=; b=NhE2dYQq+Qnsus1UiBf8t2W9hh1shqtIzGe7xmpwIUQyLys2AE7yqSIxtHGcF0+enX/ORMMkpQBwqQLdEJFTWNx9fyU+7iNP0h8PTRnKV065MLpfOTUQU8E5CnpHT4X3oSlY3WmiHOwrYcy9RZE+NTruigOhaDAd0PtmeIAgUyB0HlESE0Ni/CCWqdYxz7xR7yfqrfrzmS6b3gn1rUTHkZ4e7ccAgoGUR3kq2TSuIgen3csvKlKDLQGFIEYnVCpqiYvTKW9MOsbpRVV8pV3RcaUXlc/uUc8suWFrlnVARkdx2U+MRwJNhQPCsEM/UWdQOJiGtGmeif/eqZNqaW+cSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lwn.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=drOkolsyZ4dJEEQe+0KW7qcNf6Mf95gudj4fYUzDYLU=; b=uLwtJDHwKPyXIfzB0riu198NfT0s9tuQBx9uOeOecYZdTDBtlKZNSnwIVKhm7buawcf7GRqrfyQJVUquLH4JwfJyr6TkPjoJofvNTv2ljfYT4TnPrJkbjodrRFhUX6gDoRWuseo4jCf+EA3K8xCQWpT/96bqzMZzYKq+y/LXbeU= Received: from BYAPR05CA0072.namprd05.prod.outlook.com (2603:10b6:a03:74::49) by CH0PR12MB8506.namprd12.prod.outlook.com (2603:10b6:610:18a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.10; Wed, 21 Jan 2026 21:14:24 +0000 Received: from SJ1PEPF00001CEA.namprd03.prod.outlook.com (2603:10b6:a03:74:cafe::24) by BYAPR05CA0072.outlook.office365.com (2603:10b6:a03:74::49) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.9 via Frontend Transport; Wed, 21 Jan 2026 21:14:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SJ1PEPF00001CEA.mail.protection.outlook.com (10.167.242.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.4 via Frontend Transport; Wed, 21 Jan 2026 21:14:20 +0000 Received: from bmoger-ubuntu.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Wed, 21 Jan 2026 15:14:15 -0600 From: Babu Moger To: , , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC PATCH 09/19] x86/resctrl: Add plza_capable in rdt_resource data structure Date: Wed, 21 Jan 2026 15:12:47 -0600 Message-ID: <7b7507eac245988473e7b769a559bd193321e046.1769029977.git.babu.moger@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CEA:EE_|CH0PR12MB8506:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c80da5f-9d8f-4210-9a12-08de59320b5c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|82310400026|36860700013|1800799024|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8bHj3o1YgNWnQgdEPFebdqpmKzvk8TjQ8EQQ1XnJDGVA/n4/kqZtBYZyBw06?= =?us-ascii?Q?ESXmQJtHQrY3oiCPLNfbU8K9DRIoXjNww9rFRn4yG7I5Xb85sGE2jFcjeLaw?= =?us-ascii?Q?RVQnH8+eRORYFlJjaw3VLGwG9zb3x99fle5BZoZHKGQPRRMq1KKFo0LfouQz?= =?us-ascii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QBByunrhFtR89bOHXrO?= =?us-ascii?Q?+wP/mpMc4Ez6HKPF/IRvrYjKGUvx70NHRXQzXQxHFtQELgF+z6RJ9t8NAmT3?= =?us-ascii?Q?d140Vr/j2uxaR59cRq6Vtdv+gkBjamQCkjCNxzfQTP/J053h7FqkjNqInpaw?= =?us-ascii?Q?9bc/dL1rXYsYRtZzKA5N1g48Wu071bw9140qtJLwfGdNsPEwe1VLMcPgrehn?= =?us-ascii?Q?xW9fElhALe5F9Ugvl04sVccpV3cCG5ZBrpOo8eBpyx69CPz/9kKUDmZXl9rq?= =?us-ascii?Q?CavVhtfxcUgrySHc3+jnKH0OUCAkprBGjtBZHMvukDCI5SzGXXpzKfknnxWt?= =?us-ascii?Q?a8yctVtWQWh1fZ/7gB/EFjr5zBEAqts3eZ/yw1L5yCWA64uAFU8ZDgMcxg1J?= =?us-ascii?Q?wa6MWUprCE07aBYRbjDmLKFjPK5XPR70gbkCtXmBtmjOsnmikKPyt3NjpDXC?= =?us-ascii?Q?tXUkV6qpL8E6IK3Psx+SuyTdUZx1jBBZCoq169Shk19QFaZzQYe/pOgPtLhr?= =?us-ascii?Q?OmKmUUUeHTYo2zGrRZvk7UXVEgrTvtSRAueFS5rQvxKjuSH7/rqZEih9WjOl?= =?us-ascii?Q?W2vYiAecCQCNpBEhIrN8XgbMSSnfUl0vmNlwMh1nPpaNhoErKpO/izVqYXWR?= =?us-ascii?Q?g60Rsx/xhd6zWio6/+qGONLOnF4=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(82310400026)(36860700013)(1800799024)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2026 21:14:20.5961 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c80da5f-9d8f-4210-9a12-08de59320b5c X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00001CEA.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8506 Content-Type: text/plain; charset="utf-8" Add plza_capable field to the rdt_resource structure to indicate whether Privilege Level Zero Association (PLZA) is supported for that resource type. Signed-off-by: Babu Moger --- arch/x86/kernel/cpu/resctrl/core.c | 6 ++++++ arch/x86/kernel/cpu/resctrl/rdtgroup.c | 5 +++++ include/linux/resctrl.h | 3 +++ 3 files changed, 14 insertions(+) diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resct= rl/core.c index 2de3140dd6d1..e41fe5fa3f30 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -295,6 +295,9 @@ static __init bool __rdt_get_mem_config_amd(struct rdt_= resource *r) =20 r->alloc_capable =3D true; =20 + if (rdt_cpu_has(X86_FEATURE_PLZA)) + r->plza_capable =3D true; + return true; } =20 @@ -314,6 +317,9 @@ static void rdt_get_cache_alloc_cfg(int idx, struct rdt= _resource *r) if (boot_cpu_data.x86_vendor =3D=3D X86_VENDOR_INTEL) r->cache.arch_has_sparse_bitmasks =3D ecx.split.noncont; r->alloc_capable =3D true; + + if (rdt_cpu_has(X86_FEATURE_PLZA)) + r->plza_capable =3D true; } =20 static void rdt_get_cdp_config(int level) diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/r= esctrl/rdtgroup.c index 885026468440..540e1e719d7f 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -229,6 +229,11 @@ bool resctrl_arch_get_cdp_enabled(enum resctrl_res_lev= el l) return rdt_resources_all[l].cdp_enabled; } =20 +bool resctrl_arch_get_plza_capable(enum resctrl_res_level l) +{ + return rdt_resources_all[l].r_resctrl.plza_capable; +} + void resctrl_arch_reset_all_ctrls(struct rdt_resource *r) { struct rdt_hw_resource *hw_res =3D resctrl_to_arch_res(r); diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h index 63d74c0dbb8f..ae252a0e6d92 100644 --- a/include/linux/resctrl.h +++ b/include/linux/resctrl.h @@ -319,6 +319,7 @@ struct resctrl_mon { * @name: Name to use in "schemata" file. * @schema_fmt: Which format string and parser is used for this schema. * @cdp_capable: Is the CDP feature available on this resource + * @plza_capable: Is Privilege Level Zero Association capable? */ struct rdt_resource { int rid; @@ -334,6 +335,7 @@ struct rdt_resource { char *name; enum resctrl_schema_fmt schema_fmt; bool cdp_capable; + bool plza_capable; }; =20 /* @@ -481,6 +483,7 @@ static inline u32 resctrl_get_config_index(u32 closid, =20 bool resctrl_arch_get_cdp_enabled(enum resctrl_res_level l); int resctrl_arch_set_cdp_enabled(enum resctrl_res_level l, bool enable); +bool resctrl_arch_get_plza_capable(enum resctrl_res_level l); =20 /** * resctrl_arch_mbm_cntr_assign_enabled() - Check if MBM counter assignment --=20 2.34.1