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.10 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796359903; b=x0KF4xxi8UgIvSzk8rxuw0MKQEjBNUbGxeRJuArxPm7xFhXaJB5snjZEsxI4oG9ERV3V My+xrXL6OUpIcyuOLpQ1Ux1pjM1qMSd4OZst/qPvYHp3ynarkPjEhJrvhgSqiipfqJHCi ZyrcM21telXbN8VtZtkTCxkZuegYgqRszqOSkX1vFHV6rovVqr4U38XhWSRzerKu8k9c4 /j+vpyvuPloPM/uu0JIR3rrL8jJeH8MTGRuMfwGyHsbPUEBJHKleA0vc9oAJLe5a2EDNa UyDYaw3CDnP6wqR0PrtEqJWkxAnQYfaTsBx4fqRyXIT6JdgKsE8J23liUl/7mOCmB5g== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796359903; 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=2DEQb9N/ha8LWLsYxcDVZjMVKpKvQVRuRYhq9P8/T2Q=; b=LJIBqJBbX32i9LRfQSExc4u4mXeI035i/NWxiAk0nWF+lGcw14EE1KCht3k10zT8OJgd p/mjVEqfn60ob2LHPBUQm7z/nAcKdoJ73qxoiEHaw9yn5WuzJoDdKLdeEBOv7jLxbGYMT 45lrf+uwGpfT3unkZ8CaEoG+6hShh+pL8hZK7f6EBHjTBdt6nrRV2h+kmUzN2bFws7vo7 RDi2MwoUOJ5sK3u92bnVoiGZf+T8fFW+8qPVnlb4q2J1aNWaaGJpOFkS2mnbZvJ9DYL7O HquxrNYjMfdkogynN4evVN2tSjbew0BMEFq0FHKX4JgwOX5jAo2ddAwl+A9si25rRNA== 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=ngsCoUqQ; arc=pass header.oldest-pass=0 smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 C8B34606A322 for ; Fri, 4 Dec 2026 04:51:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8B34606A322 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, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ngsCoUqQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796359902; x=1827895902; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=2DEQb9N/ha8LWLsYxcDVZjMVKpKvQVRuRYhq9P8/T2Q=; b=ngsCoUqQXxAgx0blZkYIjzfywaturlfzwYF+ZfRsR/j+cg0tooNw2tRN D2qws0MXmExwztL+0eZ4msUElYxn+Xc649PB5wMN1zw0D4EkruFp1Bwww /VPcvp9gDpsTPfeiW5M7hp62BhbO2r0h4QV9Dx8b4wEEtp5K3gHhD9A2T Yc3auXhUk15nijw+RniNOnl1f3DkUsrX0fFSZxiN0pA4JLo5iXZ2Y2I5C ebaMTRfWJv0uA1ZG9TmG/Jc3JDPp3h+l/fyzxDIPnLyk6GPIFbZzVKUEB 5IKi3UFzaebdc78LfuC0bfLI0MsO+V16UkzFyIRRecxwgn9XSRWkHrd7B A==; X-CSE-ConnectionGUID: ZhcQP6c9RWmyWO4gl51TSQ== X-CSE-MsgGUID: i8rp0OxIQC6t35IffQ/XDQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5221768" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5221768" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 20:51:41 -0800 X-CSE-ConnectionGUID: Z7k3bvZsS9u1i+VGatg9tA== X-CSE-MsgGUID: aJuh+abISDKSKpcrUUD8/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13897121" Received: from orsmsx901.amr.corp.intel.com ([10.22.229.23]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 20:51:41 -0800 Received: from ORSMSX902.amr.corp.intel.com (10.22.229.24) by ORSMSX901.amr.corp.intel.com (10.22.229.23) 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 20:51:40 -0800 Received: from ORSEDG901.ED.cps.intel.com (10.7.248.11) by ORSMSX902.amr.corp.intel.com (10.22.229.24) 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 20:51:40 -0800 Received: from MW6PR02CU001.outbound.protection.outlook.com (52.101.48.40) by edgegateway.intel.com (134.134.137.111) 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 20:51:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xfyFNFh6YFfWuEXu5UWQ5ft1qqEJAl/U5r8ka0Q3EX4p5MPLD2Uwy1f5e1JN1BTeKcc+d7vwVYegQYA/+BVNWHsLChSQuDggsdlO8lQ+09HCMjk88JSs6l7Am2eFHqP0dYBxmIE2Ll7etNIv/OzuFx54J6hjtC0eyzkZW5pQR51F7DriD3SN4v4cTATDLhQyHy1eeCjyGOsChpKprZD4qw/r4qy56bffcM7ARirKdSS8wRukAhoRPJNvb4qK+8FsemJ/T0uEOLnBZ10EM0pLnjZEMUP74yWrY6GqsXPeY1mF0PxJJWfLqjzxna9rti9kODM3SLOL3kuYkl6vW3weig== 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=2DEQb9N/ha8LWLsYxcDVZjMVKpKvQVRuRYhq9P8/T2Q=; b=cN0fOe6GLpkV4lEJ48xWhNgStTAExi//O7QXWSDoNlnuU49T+j+OZt/FwTvOh6uMm/fWaQz0/eb1VC3WiLss/sCv91y7qxmrph2vUQDYacmzR8ntodb4MUfGNClxeNpj6XVphwizoPKmDyf/1QtnfO9shHnJKDMcCLYRqI5a7v0qZjuTYLW7y/5WmVsVv5MRx9/wxvygWUtDKfr+yKVcVPE+7Omp9/wM9sG6Fwl+O6IxJBYiI7x07eTbpPZKiCyhO+CJLntXWKdubRuYDwffv+VbKMzWCvYCxE8UCzJRMPP16cz+A1iJZjIRXrTp9LzfSrKFptZNhL1KOx8JcWs+7w== 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 FT1PR11MB376285.namprd11.prod.outlook.com (2603:10b6:170:3d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Fri, 4 Dec 2026 04:51:33 +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; Fri, 4 Dec 2026 04:51:32 +0000 Message-ID: <24cde53e-34fb-499b-965a-1cbaa2ac273a@intel.com> Date: Thu, 3 Dec 2026 20:51:30 -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: PH8P223CA0013.NAMP223.PROD.OUTLOOK.COM (2603:10b6:510:2db::30) 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_|FT1PR11MB376285:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b8af1d3-6a10-4f6e-9425-08df51c2447e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|1800799024|376014|7416014|11063799006|4143699003|5023799004|6133799003|18002099003|261009223027099003|22082099003|3023799007|10067099003|56012099006|261021121427099003|261102123227099003|261022105027099003|261026140227099003|261022075727099003|261021123027099003|261026121527099003|261028144727099003; X-Microsoft-Antispam-Message-Info: l/XYP6zN15jT7JgTK6IlDR2FDYmHDq2ZFuMKbRnmqFX94Yv+nkI5Kc7AhmOL3harD9LjyRFpyOdJc8UHxlho8Pj2HNYLI7DeYnR85x96btjj4a1oi4woqPAVU3CrySqQB7DnxavOV+FHvsj3KimuCsKjcCykgxvpnfncVSqNsJb0hJtGUvgkm1z/iVnzweEiVWDt1yfue1R5xDU7uf4XPWHRhAmPJ93N85Unxuqa+pF1ViltZ3SJ2uQgp8JeWT1iCBr89u5GwgvMXNLUVbkvbeVb59zRWVmvKis4vIPFePU8cKkpHpM5DaObaMhgyGJsUtOPc+7hfovZliL8RTiNU79RNoOOuFXoEhkzUFF6bDORNhCwYz4KupVtRqRVTzC76ETbyOGQJ4XgZo5RokOqL2eda40MXU5fFTIpG2B4MMRTsxlZIG4ppaSQf014bC3bQIFQNi/6BYLics2tzjODRuk4iKQ7KZbfLm1F5VEV2VDp4B84E+U3pPyprKnW4wHm8vNPMPCO6dzRwbbTOSXyedVunoSh/1svzEcAF2gLnpmeX9nZWVAufJmkQkFhPN7kVGjUrb2sAo+gRc39SQUcTlBjzZM+uzG1715kEY3LNLFpabVJDj2SSVuyhDg2Xvd0foyBqd6CadzO54nT20jx2Fsb8X7ZSddJi44Qt/i6oD4= 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)(23010399003)(366016)(1800799024)(376014)(7416014)(11063799006)(4143699003)(5023799004)(6133799003)(18002099003)(261009223027099003)(22082099003)(3023799007)(10067099003)(56012099006)(261021121427099003)(261102123227099003)(261022105027099003)(261026140227099003)(261022075727099003)(261021123027099003)(261026121527099003)(261028144727099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZU9oTUVFcisyWjAxcW5RVE9VR3hrbVgvcFEzb05ZczRPNnBwV0pjRFZ1SFFI?= =?utf-8?B?YzVXYWs5K1YybXc4eThxWE9wSzlPLzZFTnczOGI3UXVuTHp6RFN1ZVZQSFhr?= =?utf-8?B?eDM5cXoyTk5DbG40MEdia0RRTk1QdEE3VjgwMEF1clYxeUFLMlNrTi9qT0hC?= =?utf-8?B?cGpvS3RTYmdkZ0luOGYrZFVqMjBINkFvSWVHQkJQWjZIWWE4bEpKYzk5WkRB?= =?utf-8?B?dElmd3I0Y3ByMHBQQU9ENjNqeExmRmdmYlpLa1VTVkk5VHdEUGh1NVNvU0Vu?= =?utf-8?B?WDlhWlEwSEduTW5GSWFOcGpXQ2VzeTVFZGt4NUE4ZUE5V3ZrVnVPWHhxZk5V?= =?utf-8?B?Nzh0S290OCtidkNHTTBiNDZncW91Zng2bVpsdWQxNFI3WjBqNjJCem4xRWNR?= =?utf-8?B?blRXYTRmSDlIVjJIeWhT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-8?B?WCtkZ1RaMVVDQ3FJM3dRcFJEcU1UVVczUnNyUW9RSkdXVUh2VGtid3pDSEFn?= =?utf-8?B?bFpNUTlQdksrRDV1RFRGUFF2QVBuTHhtNXBMTFM0amlVYzVpeTlQb1VuOUFh?= =?utf-8?Q?TaqlpNMWw1MGV0+4=3D?= X-Exchange-RoutingPolicyChecked: QH3gG/HCtf7dcshoVrnV/LaPP9tWyO/MISYt91fJt315+R5TfXN6w/F64WVardDTNNAw14JFOj6mSi0uifVId2Ggr2tWSWkgQ4uPfwL4gdgMkHLhF0gBx7HCzvQDIuNaM8dRgg0iPkwJ+eKx3whBRqtwmeiYpzlGsG6CmQy+VB839fq8952gbTGTrz6Psr2fZoPpWMAph6+m9dnvb/wAuXqsU2VKIIszXbc2ydOap9NwjQBkOaGRlVQnHFhAoLmRCZgBROK4EeHgEu+bwdaEo65MZz2SMu6bmE1Jdlg0mOsLl/ghMIgfDG5X5NGHkrMh0sMhmxiR1ZoPrto38nrhQg== X-MS-Exchange-CrossTenant-Network-Message-Id: 0b8af1d3-6a10-4f6e-9425-08df51c2447e X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 04:51:32.8343 (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: ee7xOJAdzwaF52lCNt7cK/vVgNQzJrkLPcu63hQ2XatI3FXG1KMEEDCRGt+iw+DklVrW0Sojhnpjg2tf39XikdR9/xVXA9Ipz5c5kpx2QUY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: FT1PR11MB376285 X-OriginatorOrg: intel.com Hi Chenyu, On 12/3/26 7:16 PM, Chen Yu wrote: > On Thu, Dec 03, 2026 at 01:43:45PM -0800, Reinette Chatre wrote: >> 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. >> > > OK. I plan not to add erdt_may_be_used() to the current commit: ERDT parsing will > be unconditional, and the CMRC patch will directly use rdt_cpu_has() to filter CMT, > so no synchronization between erdt_may_be_used() and erdt_in_use() is needed. The > tradeoff is that this intermediate commit can parse ERDT even when CMT is disabled > and may produce misleading ERDT log information, so users should use ERDT only after > applying the final patch set, where the CMRC rdt_cpu_has() gate prevents such processing. > I'd like to highlight again that I think this scenario is unlikely since it would depend on a firmware error combined with user booting with rdt=!. As I understand this direction also does not avoid ERDT parsing entirely if a feature does not need it, it only avoids the ERDT tables related to the feature. The misleading ERDT log information would thus remain. For simplicity, I think the checks contained in erdt_init() would suffice. Reinette