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=198.175.65.17 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796334234; b=cDOADSndv6rv4GMiz1sN2HEGGSlfao9Tklx3E3jw/f9qG6Bf3kVm8ReTKRE6MzK29APC fVBJf94h6m+dZfHHGEILCsSn5Xzo49oeYCOF9fO3/ro43FdAECRe2E/V90kIgxHHZJTtU 1BMpR4jFowVBcVBQWB9u9e9kHA75nTzEdc/kZlcuLRNC/DXoAXyWC2QWT3fAzLxznxcuW GF1u9CMHvPMkb0dMNma1Ug44SDz+GMx6psEdeg90RNaAPwP61bN2PRksjaK9RyEwuvf8d 9rsD7AhBJ+EEjGGDl/PYBTgprtzstKLqCYVcBqLpsB0NX4Ib7h5ifFS7bSJI9rw05QA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796334234; 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:From:Content-Language: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=0iJeq187gT5hv+ES1f0DV2K4wnlhdNhDIfHKRCEuS1I=; b=30Wtv8ix4o6aifTtI+sz95nlAuIMdmEz31FpMpOLiU2mmjh9Cm40uqOK3/l90V23w0bK 3W+xDmSWqzlDlWnrsjDADa3UQ16Ok/LZfcYiN7wlA64Di3guMeJo57lcuAkJd4SsxtSQN 1HHBJ4LfjrEC54pjSihzgVOPE3VGYQJlXJnup1HLujo0VCOtaJ1I8QW06j8FcNnGlKHzx WxAGWG/VTXaVgiT4FxJUje2iE+Pi24LFW1jYcRCKbKmR1In0hE7JRx/VyfLtVoJzNZ/cE ATSeMnqSpi8cYj7Mzz81ogIldEOSTb0W9MDHxW2DzPpXu/67P/S93TBHox3xxC6kVBQ== 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=YpqJDG6P; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 A614F606A322 for ; Thu, 3 Dec 2026 21:43:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A614F606A322 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=YpqJDG6P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796334234; x=1827870234; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=0iJeq187gT5hv+ES1f0DV2K4wnlhdNhDIfHKRCEuS1I=; b=YpqJDG6PfNV8F4HDdy7N+qvkZkeb56/Cbw+/l8pYwY7/dhd9+VGH0ZVU bpTX14+taW/irROD2XOxZKfPqyxGRwxVkZ1zXykbuiHmLto56YcC5vVaZ IYmwAKdmDNpJUEc4r7L6V6ENLbFSKk2Ubn1ZJj0fSchxrKTl87WUOIs9T 6uHNFKOyzxmMhFYQNE3Jb64HUPZftxCfuhYzXgRN4Lpr9aMonFdKhe0Ur 1nW85xIvS5o0yDaUaJKcMijiK+F6J4r7Qf/jwU7ne9vP7a7HauEA3rA0t Tkq3lyeINGpJZM5ugLfDFHkoi13WAbgY5vhdJYMO9UJLW6DJyyjiQmiWI A==; X-CSE-ConnectionGUID: lgnsrkiaQZWNSEts9njzFg== X-CSE-MsgGUID: OTvDQWciQBaenYhR2N6YwQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5316380" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5316380" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 13:43:53 -0800 X-CSE-ConnectionGUID: /28sz3HGRFGnWJOcPW1wlg== X-CSE-MsgGUID: CxS4G5NuQyCLTmjsaDKLfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="14122910" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by orviesa001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 13:43:53 -0800 Received: from FMSMSX902.amr.corp.intel.com (10.18.126.91) 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; Thu, 3 Dec 2026 13:43:51 -0800 Received: from fmsedg902.ED.cps.intel.com (10.1.192.144) by FMSMSX902.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 13:43:51 -0800 Received: from SA9PR02CU001.outbound.protection.outlook.com (40.93.196.26) 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; Thu, 3 Dec 2026 13:43:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=T7EaMFJ5pXed4yqwCeQZq6RG/gCOh22Dwl4gebvSFKLipZvipjp51TwZydT2Dr67uyDr9HWH9AWe2DDAT1V3ThJKcfgd3EYVvJLXAjkrOAWlT61TtsfeXWGDme7DBrrxnyAN0jBG9XJd/djrCXO5MZA61PHnMARx5QhBsg3zMdzDEJdSSfMflMFIqUZz2kPQrHXqxFc5NeDeDaS5f+z0AFOrKcseGghSMo5VocXLyi+rTKeKXybeiUaZftV6XOeUbwDgKaI7WIlyCxcf/2DcYLRaS28b2ecM8scUJvKu1WbZOy23u1XDGGaEtw9jvWN86mYmySnz/aPqxcTzkvpk6Q== 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=0iJeq187gT5hv+ES1f0DV2K4wnlhdNhDIfHKRCEuS1I=; b=SO0FxpjyvCZKLmegztk6YFaLHDyUjZB5ndrc//w0Ek15VmU2pkrq9eZofwgR+AqeiZRZBYOArkDHG04N5Z8J8k7JeCw7Ao3Z7jmmcXie7Zk10ZVEfzZGfxl5f01H77wz7Jaxb9PMBeeb6Dz2j2CADdJXIMPywd6Z1Bd5ScqMIy7cZwqOW2rbv2usZGCfUGunMnL9QqyZXHgJ6+eUaKesO/dCYqEms629pCLGTUlo/kPKSpYge841aCJjd1D3MIXhhmkfAlK2jQEj4AslEXUYvySODGpe4wmEt1movEf4RSPTxENj447hh4uGeVrFyrAucvRe78qkQYCmm8aj/hrk9g== 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 DS0PR11MB7971.namprd11.prod.outlook.com (2603:10b6:8:122::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.12; Thu, 3 Dec 2026 21:43:48 +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; Thu, 3 Dec 2026 21:43:48 +0000 Message-ID: Date: Thu, 3 Dec 2026 13:43:45 -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: From: Reinette Chatre Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PH8PR02CA0054.namprd02.prod.outlook.com (2603:10b6:510:2da::14) 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_|DS0PR11MB7971:EE_ X-MS-Office365-Filtering-Correlation-Id: 47115d5e-ae0a-45a1-e96d-08df51868314 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|366016|1800799024|23010399003|11063799006|5023799004|4143699003|6133799003|261009223027099003|22082099003|18002099003|3023799007|10067099003|56012099006|261102123227099003|261026121527099003|261021121427099003|261022075727099003|261026140227099003|261022105027099003|261028144727099003|261021123027099003; X-Microsoft-Antispam-Message-Info: +DDL0Upm5V5SEezpxz+l9+3yBauhLvF+2Ddt/vD7G2KnYRB7i5vOxCLyyxaks8YukhpKf1C//A/O3pEZIIHQ8zQs/jQbQs+ozgfayxlYeweHEnd1RpNn3olw23RDxcIuynDhcrcgwFEd8bqZZdvSGH96AWdOLLK/Du68T/NAiV4d1BHGk1LqAoRu/BkGLWQhUPNaxnjUrdPp9kF/bJlHHRcKXzRH+6EBQGIKctHDRf2+mA8QKdJ4BVyudy3IoZeX1HJ6/Mt7n9NzvRt/BCSrgxpGQxGyip07eqLkw7VnQzy3mKW77TaJo0vSnoxLMR2qKohhz3yJ/UI6nafFB+/t1ovf/LhDtNjLyRy2e6udLo6T+mGHM4bpLEUeg052kCWOLkWQUO7H2LlPOtdOErph5Zi7KDTB2KXshJnn5EnYimKf/U1B10hk4mmmn4zNP0pXKehV38ptWAtNB5Xt9vYzE0HPbfbEarEqSzDjqeVOoVrHvjH3hdpHO0502OKv10oA7+9Fz2ZsLAsejJvYnnFP2oFKz8Ys/tw8Sqxhd/6MSPt8aozUhfOnf0EzLjXJX4D/WILy9ZKLlejMgnIKZupzsqwJM5WyVK+Ccw1SJVh+9Csnf0A7lRnoHhJzLtbX4xUjZaIQ1UQqYNoseDsIvb7cr4Ln8hn1NBpZgrgCNeXhv3c= 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)(7416014)(376014)(366016)(1800799024)(23010399003)(11063799006)(5023799004)(4143699003)(6133799003)(261009223027099003)(22082099003)(18002099003)(3023799007)(10067099003)(56012099006)(261102123227099003)(261026121527099003)(261021121427099003)(261022075727099003)(261026140227099003)(261022105027099003)(261028144727099003)(261021123027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OE45czd0N2ZUWlZzUitNQTZtQ0p1aHdtKzQ1VWlwbTFmY0swRWNPeFNSZE0z?= =?utf-8?B?MFpYbTdBcUtQRnV3SnQ4TVd5ZjU2ajBoUmFkMXI4aFNqb2doZExEODAzYVhR?= =?utf-8?B?alNTLy9Zd2h4UnlvYjArTzUwN2dId3QyWXMrNmJHaURRYUVJV3hkbml5ckNa?= =?utf-8?B?WnVzc3FkaUF3L2RIcDNKN09BR1cyZ0hsY29HSko2YVBFWEJLc3FYQ3NNcngw?= =?utf-8?B?L2l3cVlUV1pLcWFFVXczamZQTTJTMTBLejNzb1RwWk9jYjB2RllSWWM1bFRy?= =?utf-8?B?VlhsbHJsdzJkM0tOaVFieUN2TlF4QTR0eVptZGwzVVM5dGxCWjNnYnRBelVp?= =?utf-8?B?YXF3U2JxNitxcUhNM0RQekFxSE9uR2p2aS9DdjUwVVRsWDJZNER3WnpyTzBB?= =?utf-8?B?Z0FBSWZpMzh1QUFDSWZXdmtWRG1IMk5BdzRGNHlkbzg2U0VOTGwwbzdwZDNq?= =?utf-8?B?RT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ETUd1eTZxcXBDSElWM2JZTHdT?= =?utf-8?B?RnZOd0UxSHhlay9odTdNZGRLK3dGUDFPejZsZG15OFZjbllPUGM1T3BRcTN6?= =?utf-8?Q?juTCHl3TLvoo/Pfk=3D?= X-Exchange-RoutingPolicyChecked: DyPrri/3kvKHoz7o/ZzTpq3EW1GL2DlfrPwG+2r1jGNZogmWG2lg/NNCX9BD/n5SSw5qjrQ/TYiDqtWfHn963vjiCmnuBiVd265J78YioxtoQVuegHmdon+YJl74pnJHiQ/WjhIkFtG6/5+ULyBC2o55ECjW4ie3AVQ+eABlAgfbaXfRoJqIl3Jyy6xcpIYFW/ZG6SD43lvWIuirKe6K+Zv1YwBDceN5ov1BGxqIsNZgwcGuy0Qsix19tQZn0wOqeeCl/V0XU++NP2YxHGkvc0rS4YhKxZy/VQfkQKDd4niwTWzuu5WRQS9OaMp/CljiY2FRSlYt+YUOWNv2SqG3SA== X-MS-Exchange-CrossTenant-Network-Message-Id: 47115d5e-ae0a-45a1-e96d-08df51868314 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 21:43:47.9945 (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: 2tcqI3c+12UhjrdnfDHGsfJivbcFK8vGHrBz4fuPtqzvFnnpxxL0D6J3uDxuv04rU35sBXZ2xWTrRmHoS+g+DOLQhfIt2o7FLKQZgSKp1E8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7971 X-OriginatorOrg: intel.com Hi Chenyu, On 12/3/26 7:50 AM, Chen Yu wrote: > On Wed, Dec 02, 2026 at 11:12:26AM -0800, Reinette Chatre wrote: >> 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. >> > > OK, to keep it non-feature-dependent, let me rephrase it to > " True when ERDT is in use, i.e. at least one feature is backed by ERDT. " I think that states the same thing twice. Could it be simplified to: /* True when at least one feature is backed by ERDT. */ >> >> 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. */ Note how the two comments would tie erdt_enabled and erdt_in_use() together. >> static __init bool erdt_in_use(void) >> { >> return erdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC); >> } >> ... >> 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. >> > > If I understand correctly, what you mean is a case like below. > Say ERDT later also backs MBM (via MMRC table): > 1. The user boots with rdt=!mbmtotal,!mbmlocal. > 2. CMT is still wanted, so erdt_may_be_used() is true and the whole > ERDT table is parsed. > 3. The MMRC is broken, so mmrc_init() fails. > 4. parse_rmdd_table() fails and ERDT is torn down completely, so victim > CMT loses its MMIO support. Right. > > I'm thinking of adding this erdt_may_be_used() check in erdt_init() in > the current commit, but in a later commit, when CMRC parsing is introduced > in ("x86/resctrl: Parse ACPI CMRC table"), remove this erdt_may_be_used() > in erdt_init(), and delegate to parse_rmdd_table() to skip the CMRC if the > user asks to do so: Can this be avoided? Ideally the patches in the series should build on each other and later patches are not expected to undo changes made earlier in series. > > case ACPI_ERDT_TYPE_CMRC: > + if (!rdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC)) > + break; > + > if (subtbl_mask & BIT(ACPI_ERDT_TYPE_CMRC)) > break; > > if (!cmrc_init(subtbl, domain_info)) > goto cleanup; > > subtbl_mask |= BIT(ACPI_ERDT_TYPE_CMRC); > break; > > By the way, since current commit needs to use erdt_cpu_has(), I'm also > thinking of moving the commit "x86/resctrl: Introduce erdt_cpu_has() and > erdt_support()" before current commit. Sounds like this is needed, yes. Thank you. Reinette