From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=192.198.163.8 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796241056; b=E4ItyalREySfrCv+5sTVCFBsAgSoRIvYhaiwnkrB/dfHQAXOti5k43p+1KPAK+9hZ6bO RBeCYHOEqY/zAQVwDPYgW2CvOJa0Mf25cbyBHrm3XLX+Y0btntX4lb57ajNtaxBs0uCLC U1GnoVXkTs2CkGhOPpojZ9BapwkIIX++AXR8yPmz+uteOcXwZJ8e+Azl9/7i3vEfjPTUd 5BAtcvIEpwqk8RImnM3XfMc5Z32SwGkgrsj3k0iaZwyX/XgBKQJn89P0NCkAmUwUbJ1PO fX0ChVnDI+aJKrzl7P4A4XCsMO9jYPt27exkyUfnZ3cFaeCEUzYs1HEaqRsHOSLtxdQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796241056; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Received:Received:Received:Message-ID:Date:User-Agent:Subject:To:CC: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=y4cDyScEQYeavdTnM6bPLSjiXeQxveISDijEIxTWuY8=; b=mDbbNa6oDEb7RJoOajsz10dq4xe94v2WPFCG6UIhvtZF0+fATstU4Lz0qdMyACoKZxzZ Eqs0EaMqdXyHn/SSeNsOWqX02jM4CT3bb+k/l8bNfkL2IUW9SGABDR1/Fe0QoSj4ioQmw xwuGie6HTv+yDYwcybKauxmA16V3jtYChczH2XUa7BT9Q7QL14JPl9d+SPdruhV4aZBj8 vJJThCO3fx46mlkivqewSMZ9kUXx5emRO3G/esXUmaUZeNKalufd4HQ5fyvdzOPMgAJkS IKJLnLylcAGva78RD/Cu0Kp6fDic8VnivzE7zMLAjteK5wI/1paB6ZqYQcMZWp0SflQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=N822Rd9E; arc=pass header.oldest-pass=0 smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97A24606A322 for ; Wed, 2 Dec 2026 19:50:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 97A24606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=N822Rd9E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796241055; x=1827777055; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=y4cDyScEQYeavdTnM6bPLSjiXeQxveISDijEIxTWuY8=; b=N822Rd9EYvLWD6c94um+KkkOrtM+7UZ+OjMo4dc7WPPf/j+NcuKs5eJ9 ViMAFl1tqVKO6FdUwnrpryo45M8zm+5l/ex8I1YQqTe18azBgpi46DVDt l9aedThPQuww1NN9x510PEi1J3UMpkExkFQ66aiwGU2YtEJnKs26XzgJB ZSWzTwF3DbWgtHzhEb54Mn1ubiRd5HtNXJZgQOkHbQ6i6ptag8u5y/u0v ilNNeRk59VQJR7vEtoG9VxwUWDaMNkevDyAFr8ladtgGTlSH3enGiE+AK 0koEwkxygeIV7o05Vpp/nMvyPHfEK4xcOiWGHYyd+fFWNB3Ta4kOrTZBN Q==; X-CSE-ConnectionGUID: A+Dhr3x4RxCwb4HPVHTGFg== X-CSE-MsgGUID: CcoK+EvRQtWFt3tfxzzRAg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5058533" X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="5058533" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 11:12:34 -0800 X-CSE-ConnectionGUID: 09xc9QU2SM2pXS8irgRtgg== X-CSE-MsgGUID: Kf2EQHUxTnuFYjZwCbMOfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="13901829" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by fmviesa006.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 11:12:33 -0800 Received: from FMSMSX901.amr.corp.intel.com (10.18.126.90) by fmsmsx901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 11:12:33 -0800 Received: from fmsedg902.ED.cps.intel.com (10.1.192.144) by FMSMSX901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Wed, 2 Dec 2026 11:12:33 -0800 Received: from SN4PR2101CU001.outbound.protection.outlook.com (40.93.195.68) by edgegateway.intel.com (192.55.55.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 11:12:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Tx8Wkppw6D2+onrdb6ADvb0FRwHdTlzP7/SfYpPZ5/zegjKiHdMPt4os5ChXRSpN5D2IIugGzCu9zNIj45RncTEbAAll5xF8BtMALgZNqj1cC6goJ0ADGzL+EV9BYzi41z76Q7HvhAtVWUX35A0iGtAaOdCBPuJWKLqv+bY3b9UCGXvH6aWroauZE1LaQ8ViJLaEbxf3dY1HqP5PRsizeGyLRjeqTxcF9Pu8bWmAlS1/h0qjdPUvkW2p/1pyWzd/Tj6FiVsN39kR0IUTQSZhRRyDW0RCV0qWYfwC07sSKU7nElg0HLx9ZCGF1pJ9a7R/bdSu2yvbPeLWYuTGfY2o9A== 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=y4cDyScEQYeavdTnM6bPLSjiXeQxveISDijEIxTWuY8=; b=E0lz+1kkrwQgdPuYWula7YHtF/Ynln+ylrv+jbsz55fhZM69CIgA76UuRqLWjmkQUK6fP26naqzmocxKLRidQzphSxybjBUjdiFnkQzAoGzzMzqQeu6+5TTXNy1x0s4izn5bXvKiNyGsA4sFnDio+YI/1A6gfXZTgKLUYPncYOGePjO2dAKJgVLZoD1uvIoXty7TGT3R6QxrJDFGAXdTwNlclvurrit5xc6mQtFGmg0Uqyz9F+r3QCz1TqQzY+lF7ka0DtxFigxX/dYNjx2LdYT/B/eXX9rjtx8TE4LUpIV5xhqy3wUzHjkBKUjlcDe9cKnixAa0DhCBn0O/6Vlw1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB8370.namprd11.prod.outlook.com (2603:10b6:a03:540::20) by IA1PR11MB7869.namprd11.prod.outlook.com (2603:10b6:208:3f6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 19:12:30 +0000 Received: from SJ2PR11MB8370.namprd11.prod.outlook.com ([fe80::b6cf:ce77:3cdf:7cc]) by SJ2PR11MB8370.namprd11.prod.outlook.com ([fe80::b6cf:ce77:3cdf:7cc%7]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 19:12:29 +0000 Message-ID: Date: Wed, 2 Dec 2026 11:12:26 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 05/12] x86/resctrl: Parse ACPI ERDT table and save CACD cpumask per RMD To: Chen Yu CC: , , , , , , , , , , , References: Content-Language: en-US From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0225.namprd04.prod.outlook.com (2603:10b6:303:87::20) To SJ2PR11MB8370.namprd11.prod.outlook.com (2603:10b6:a03:540::20) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB8370:EE_|IA1PR11MB7869:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f715537-54db-49be-abce-08df50a8353d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|23010399003|22082099003|56012099006|10067099003|261028144727099003|261026121527099003|261022105027099003|261021121427099003|261102123227099003|261022075727099003|261026140227099003|261009223027099003|4143699003|11063799006|5023799004|18002099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: x1elhTeAJOIBbuGdlmKX31N2XjA+Z76wT/ZB8kUrSPKQWC9o/V0J/3bw+6mC5LZD8l69uzhKtkd8+Mf44nPqTL4siocMvUC0RqkILfknoANNYKhnCG5uH9YlOCwItSAH6hbBlzRfxkW01/0Grn7BsPDxI+66M/YHApcYGrRJUid4C9pKC7PUPZZ5EyCcrlDZytixjrfMa6cR4m6IF7uzN++CawVpoBxM9vxUrVb4j+xGjwJVArFtS6Z8/wKwEyF6hY0EueogADkRtKe+OYVxkW3zTZ8SygaXmjyAh2iUXHoswM2i88TKhe7C6zluYxJ2/PxqesxcoRPNSI2vFf610cczNBPU3LROWdTPLY9aJ3gFy1+gKSzH8vmyxA618C5v1tYNPi0feu6Bn8jjobQXI3o2jNg3uaEc2B5VQRl/USBWuA2cDycBzOZB0kM7fEgVAIDbaogftfL6bcl9q+Uk6QD8eA5NqJszTPnkgLnEm9K7W/1cPxTxkmW9oqYJrbzFrJh/6RX+kRtwWdiMjXw23fIQxOJgxT79Yg8ig+P8DS/NqZ1bteJTre5WNDI5uVsvD+l9+MZYsBrfeNrncZVu6JOpaWP1x0tTrXr50WQs1+EodclBMAZsIRWOUoT2lpKs7g7NOgc8yjq1plTgwGtZpFGoTb4IAtVZLS3Z5CfqNek= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB8370.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(23010399003)(22082099003)(56012099006)(10067099003)(261028144727099003)(261026121527099003)(261022105027099003)(261021121427099003)(261102123227099003)(261022075727099003)(261026140227099003)(261009223027099003)(4143699003)(11063799006)(5023799004)(18002099003)(6133799003)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TUJXRTNLRlBpS0NmdDU3V1c0N1VQK25JSSszZnpQN0JUaGt6bHg4K0ZMajBU?= =?utf-8?B?SlB5anE5OUtvd2IwR2hIc2Q1RzJWbmg2TG5GcGk0UlFOUjBYVEEwck1TdmtT?= =?utf-8?B?UUVMNlNVMlNOWkFwTFk3TTZzaEN5dS83aFNxa3REUnNkMWE3cTQxTUpXK2lI?= =?utf-8?B?bXN0eVRwaHdBWDZwVUxhWEVaOTRCaVhueExxZWhvTVpPQTFvTlhucE9VbnVx?= =?utf-8?B?dEljVkxrYngzWkZHamQ0YWF2UkpaRUpQaE5GZyt6d3NNZkJ6NnB4ZFlxZm5i?= =?utf-8?B?WmNBbVVWVllpVmMvZmpUM2twUHRlbHVaTUJlcm1jeCtHcXJFbXpnNWhwNTYy?= =?utf-8?B?b1VNSmJCTHFHc1BxTzBlVy9vS0JoYzhtNHBSeDJUQS9Fd3I0VjBhNFBWSzVD?= =?utf-8?B?a3hYM0xyRndlTE43MHd4ZlJVUTBJeDEwYmJzWkNSTHptbEZRNnRMSDIvemFn?= =?utf-8?B?MWZRWlp5eDViNDRyRy9RZHZOK3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f-8?B?c3FVd21zb0tBYVNCWVBSR1VPcnF6OEYvTzdob3lDc2FJYVIxRVpXY2tQVkJj?= =?utf-8?Q?gUBToGrWSq4DMCQE=3D?= X-Exchange-RoutingPolicyChecked: h6eIcVwspLcS9VapkDP8MPnobkCIc8KK81rZFh7kycScuOzD/7eNUztVzVB3h4xQSpzalIWwQy6xjJmK7wtmdn1TU4ISQvlaX01jGt5OD0tVBqwt7OPRmftqoFAbeeeDE2iWjfQTz20xqxsL9JkFnHui7PBFZEFFtqmq3qT2Duaql3KBQnMPLiEqvJ7OovxYGDMOdiqHfgOEi+wISlKjv15yJhJPwbJqY777scYTer4/MqDMBcGIfBPkltG/8uouZg/pEYVdQbGn1YF8ZoDABr35wv6r0oMkUNedJu4yq4K8TWI4YEgE9kVlL+p/+zf738SWKX7w+Q8Qm9/XuQ/rSQ== X-MS-Exchange-CrossTenant-Network-Message-Id: 2f715537-54db-49be-abce-08df50a8353d X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 19:12:29.0652 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GVZQEL61ib8+nkLdJcRHdtLDG2hMZ7eMacS7wrje4d1pRv7HDvbXoRKp1YQgJUio5WAQR+KJx7WIdf2XJNLtx3ffMxtxp1dLkuZDkk6agZ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7869 X-OriginatorOrg: intel.com Hi Chenyu, On 11/26/26 6:44 AM, Chen Yu wrote: > On Wed, Nov 25, 2026 at 11:04:38AM -0800, Reinette Chatre wrote: >> On 11/5/26 2:08 AM, Chen Yu wrote: >> ... >> >>> diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c >>> index b5a86e5aa4e3..2b9a13be5975 100644 >>> --- a/arch/x86/kernel/cpu/resctrl/core.c >>> +++ b/arch/x86/kernel/cpu/resctrl/core.c >>> @@ -1018,11 +1018,18 @@ static __init void check_quirks(void) >>> >>> static __init bool get_rdt_resources(void) >>> { >>> + bool ret; >>> + >>> snc_nodes_per_l3_cache = snc_get_config(); >>> + erdt_init(); >>> rdt_alloc_capable = get_rdt_alloc_resources(); >>> rdt_mon_capable = get_rdt_mon_resources(); >>> >>> - return (rdt_mon_capable || rdt_alloc_capable); >>> + ret = (rdt_mon_capable || rdt_alloc_capable); >>> + if (!ret) >>> + erdt_exit(); >>> + >>> + return ret; >>> } >> >> Looking at the solution as a whole I do not think that this enumeration is >> ideal. erdt_init() sets erdt_enabled irrespective of >> erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC) being true. Specifically, a user >> may boot with "rdt=!cmt", which is the only ERDT enabled feature, and that >> will result in erdt_enabled being true but that does not actually mean "ERDT >> is in use". >> >> I think there is a real problem because of this when looking at the CPU >> online code that gates the domain binding and configuration on erdt_enabled. >> If I understand correctly a CACD inconsistency drops the CPU out of _every_ >> L3 CAT, L2 CAT, MBA and MBM domain, even though no ERDT data is ever read. >> >> This looks to be a recurring problem and so far the solution has been to >> add additional gates based on erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC) at various places, >> but I wonder if this can be simplified by changing the contract. >> >> Instead of erdt_enabled meaning: >> /* True when the ERDT ACPI table describes at least one domain with at least one CPU. */ >> could it mean (something like) >> /* ERDT is in use */ ? >> > > OK, does "ERDT is in use " stand for: > > At least one ERDT feature in "MMIO-based CMT, region-aware MBM, region-aware MBA" > is enabled on this system? That is more accurate, yes. I do not know how you intend to use this list, if it is just to replace the existing comment it may be something that could easily become out of date as new features are added. > >> What do you think of changing the enumeration to something like: >> get_rdt_mon_resources() >> { >> ... >> if (rdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC)) { >> erdt_init(); >> if (!erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC)) >> erdt_exit(); >> resctrl_enable_mon_event(QOS_L3_OCCUP_EVENT_ID, >> erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC), >> 0, NULL); >> ret = true; >> } >> ... >> } >> >> Wouldn't this simplify the enumeration and subsequent domain management? For example, >> with ERDT established by the time monitoring enumeration starts the values for RMID and scale >> can be returned directly (since they have been reset, if needed, by erdt_exit()). >> >> I understand this ties erdt_init() to CMT lifetime while ERDT clealy has bigger plans. >> When the ERDT scope expands, so can its initialization. >> >> ... >> > > I agree that erdt_enabled seems to be independent of whether the system finally > decides to use ERDT - for example, rdt=!cmt will leave erdt_enabled = true, but > the system does not use MMIO-based CMT. The root cause is as you mentioned: > erdt_init() is unaware of whether the user wants to use it or not. Although moving > erdt_init() into get_rdt_mon_resources() and clearing erdt_enabled in erdt_exit() > if the user does not want to use it would be doable, the code would have to be > adjusted when introducing region-aware MBA/MBM. After all, erdt_init() was supposed > to initialize ERDT information for all features, and should be called once. Do you > think it doable to move the erdt_cpu_has() check into erdt_init(), rather than > moving erdt_init() into get_rdt_mon_resources(), and invoking erdt_exit() inside > erdt_init() if the user does not want to use the feature? After this change, we can > remove the erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC) check in erdt_get_cmt_max_rmid() > and erdt_get_cmt_scale() > > +static __init bool erdt_in_use(void) > +{ > + return erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC); > +} > + > __init void erdt_init(void) > { > acpi_table_parse(ACPI_SIG_ERDT, enumerate_erdt_table); > + > + if (!erdt_in_use()) > + erdt_exit(); > } This looks good to me. I agree that the erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC) check in erdt_get_cmt_max_rmid() can be removed. Even more I think erdt_get_cmt_max_rmid() can now be renamed to erdt_get_max_rmid() (with its function comment reworked). I do not think the erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC) should be removed from erdt_get_cmt_scale() since it supports that the function is CMT specific. Could you elaborate here? One difference between the two proposals is that above will parse ERDT tables even though it is already known at the time that ERDT will not be used. If user boots with rdt=!cmt then ERDT will be parsed and then immediately torn down. If there are any ERDT related messages printed during parsing then they will appear in the logs while ERDT is never used. One option to deal with this may be something like: /* * ERDT can only be used for a feature that the CPU enumerates and the user has * not disabled. Keep in sync with erdt_in_use(). */ static __init bool erdt_may_be_used(void) { return rdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC); } /* ERDT is in use when at least one feature is backed by ERDT. */ static __init bool erdt_in_use(void) { return erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC); } __init void erdt_init(void) { if (!erdt_may_be_used()) return; acpi_table_parse(ACPI_SIG_ERDT, enumerate_erdt_table); if (!erdt_in_use()) erdt_exit(); } The cost here is that the two functions always need to be kept in sync. This could be supported by a helper but with only one feature it is perhaps something for the next feature. One issue that remains seems unlikely? When more ERDT features are supported then an issue during parsing of a user-disabled feature would impact all ERDT features. One option here is to move the rdt_cpu_has() check into parse_rmdd_table() so that the feature specific table is only parsed when the CPU enumerates the feature. Reinette