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.12 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796328966; b=K0+Lb0mdpVWrAbxszzA6n/M6l0sLZWverQPRp5AjxdDnjY+6/YDiKZHSqsK1DONMiM1C 6UtRTphCJqoI5r+9cmynvlRAVKy4GvC+YpXkOkFEtMXy5IOt0DxjtF+C1dd165MQARiJD iEyWoB4IR+nHjkApsqUSNnwOosS2YVAlYcP8YHbQUnH/29Dgxq+WQOjEfNfy2FEQXWMtY dgDOkASxdevK2OEd6eZ4MPpbEi1B+XWDQG32jpAGp42D4R86EKdfl38+bLoyn3vfIr8+k 9JdUXcpNCKbPU2Al+kfxwCeczikyws8x9VBZhKJ1bqDGb1U4GYLazsXifBYL4lyacRA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328966; 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: 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=079qgdfwuAhwlaKe3PFkCPCNKJJMpK1gPW9H2UxqTbk=; b=bTLGooNuFn9KoFXiD+cb2vfeYPvKZ4COYbrW6JAJr4thyK+vW0HO9DvLuAt4xHoGnIme r3ptESomPvuDLQQPIUr18ExSpxIx0dHZ5XkntebXTEZhP1hiCVxs5if6e+pp2kBMU8eYC WYi92LSx6D4HBmVtxGVU7c1MaE5nD6KgDEtmgFQlMZpI8sWQVHCQycaiVi6YrI7R7tSvB tB82aFZkZ/fcn+pHI+EF1h4Lur8sazD+hw1Ww/Ymk/sY1JBfv/9Itpp2+Ogmwhfi486Q9 kRmHCFzqIZ7qybWJ4DANmTpH0sDV8lnuie9QjWtELJEOyHw6dmMykpaNmsc5Yl0S4qw== 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=JSF1Cfyc; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 7B099606A322; Thu, 3 Dec 2026 20:16:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7B099606A322 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=JSF1Cfyc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796328965; x=1827864965; h=message-id:date:subject:to:references:from:in-reply-to: content-transfer-encoding:mime-version; bh=079qgdfwuAhwlaKe3PFkCPCNKJJMpK1gPW9H2UxqTbk=; b=JSF1Cfyc3ommIyl5Hlx9Q2HzjgLTgY9vky511xMO7Tsf6CNuGH904pPG TBtvjA1tdByd3JkRrWMQDloo61skfOdKfg31yZNxxK9M8RL5YL1aOWaK+ P6t3MoXzZPqjtsar+AdWyMc3UjCjpMLRrYhflX1tds6U4aEPoktxEi7da icTgmVCWFhCWbEQiICFS8TCQuECms5KYT8rZlqFfbrk99T60UYmlFigrx LHOiSXg56mRXjltEd0ysjDintbrfL8P/+D4a0D/Bp+C449A0ZcRxST+K8 xTtBFUTgJ/ntl5YvKztcn8nJ3fRw4BLZEt8707CqzFI9r97vet5T1MpNn A==; X-CSE-ConnectionGUID: 27dM8O9oTDSmWMcYQ/forg== X-CSE-MsgGUID: o2MrhT03QJSdzT2tj4o7dg== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5224160" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5224160" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 12:16:04 -0800 X-CSE-ConnectionGUID: BLTmzH4QTzKu5MxlCxIkAQ== X-CSE-MsgGUID: yuXmm944RyG+Dfls48k/rA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13905086" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 12:16:03 -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; Thu, 3 Dec 2026 12:16:03 -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; Thu, 3 Dec 2026 12:16:03 -0800 Received: from BL0PR03CU003.outbound.protection.outlook.com (52.101.53.17) 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 12:16:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pke5BZsRgBqm0NctAN4gJL5nhEfq3F43rnQMOMLIPPqt2uy67CPZEHka1gC1Dh4H15CwIdobIfpOIFWebD6nL1wdFh6LrXTg1+WySqo2iXb3E52lhTawGCGPJhies67VZWoq5FjUOmOTVsH9FuL7QckQD6nFalBiDf/mckpJ/UTkhuY9oN/2csJ/89lHUg8Uoun9Al837EX1pQz1qB9KXYLIm5Ij/b/WrarQBXGB14STDxrJN1XiOmot5zdvEnCe4XVX3cjt1LCpG8k0S/gC1UoY9CH1FwOXdTvz2v6g/S2qGLfwTAXhy9A/qFZSdYUP0Zbd/A9zeTh4Dd6/SWSO+w== 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=079qgdfwuAhwlaKe3PFkCPCNKJJMpK1gPW9H2UxqTbk=; b=CQhyTRfN66fmzEsFo8xiTkgUGeoe9lsq9zPGq1T2MaOjMLtJ39N7x1ZF/ZX3b1CO4sZ1gW/Vi1WyR1WNwH19I77MZeMKI1qEW/RgZAcaW9gTv2IHZicw3z+B7jXEmtCbtBJnkDYW2Fyo6eD83a/emECBRi8b3IKzzpUtdwH9WbL6zMp9wCmj0XMmwJ5rvAxMjwtR62nz+DwxuzsS2nUbDKCdnvgHI6ctncqY1CyzL7hbK77M27Vlog+tbyCTG+jq0k8D34XsnqfFYNgNMv9CSSM3BxlTV8NHNhFxtxTp5RIC/A6dOggkYK0JdDtM/IWARmqKCovIOlBoZKljQMeeHA== 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 PH9PR11MB006246.namprd11.prod.outlook.com (2603:10b6:510:414::23) 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 20:15:59 +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 20:15:59 +0000 Message-ID: <99edd56e-f8cc-46be-8a34-589c427c5fc2@intel.com> Date: Thu, 3 Dec 2026 12:15:55 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 5/6] fs/resctrl: Recreate the dirty RMIDs when the CDP state changes To: Jinjie Ruan , , , , , , , , , , , , , , , , , , References: <20261126095038.2276975-1-ruanjinjie@huawei.com> <20261126095038.2276975-6-ruanjinjie@huawei.com> From: Reinette Chatre Content-Language: en-US In-Reply-To: <20261126095038.2276975-6-ruanjinjie@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0196.namprd05.prod.outlook.com (2603:10b6:a03:330::21) To SJ2PR11MB8370.namprd11.prod.outlook.com (2603:10b6:a03:540::20) X-Mailing-List: linux-doc@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_|PH9PR11MB006246:EE_ X-MS-Office365-Filtering-Correlation-Id: ff24bff5-a918-494d-d30e-08df517a3deb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|23010399003|1800799024|376014|7416014|22082099003|18002099003|921020|56012099006|261028144727099003|261022105027099003|261022113327099003|261022075727099003|261102123227099003|261021123027099003|261026140227099003|261021121427099003|261026121527099003|10067099003|261009223027099003|5023799004|11063799006|4143699003; X-Microsoft-Antispam-Message-Info: jKo57OsONdMkeoSTuQL87BvukGO2SKv7f1DTA5MfHjwmVAYe8YDReSZHm0C59M5oXjDNjPHyEUs186v9KH84grMJugvZ3HWAZl2hMmo0wosPUvn4OjH0BxFdN6iFIO4Dnma3G/vGn6U8zYjLFTLRcLMjJLp8B2gtdW+RXLglpqw4DuhuFUSbjuxQnxsIG9DIv6VzOmQWxRReatbecj+8Q9b15cI+TLVMZRyPZEUlpzy9LGqcBlL1xkYlysfZDsusrGKT7bpVhaG48kKRL41Vk3Ke3soMfT67xuaC8ZLISLpx9yuS3miZ7TOE9KJGpOI79rfn4kghmblLEJn1EuOS636YaYtFyGGvxuKf8qsz2Mm5iDhvxOb4dBJNpEh1nk0bVGvn3rMkRGpLS8DLRcYNie5WrGvBrce9N+dhDEGFP9GscmiWKoFSzvvK+epwEfui6e1001vN/TG8SYseiOZc5he89V42ypy76eUGnAVbTI6AVHgRg83MpMLcW48eSM4fpEtv1pCudkK3MSq/b235ZbQzDYD3IgJL5ukwTo5dqLKB0NOg/jLey95iJMRzP366/Z2kLJB0sQr//4t8xPkekJNFpyZYh8iFrnhM3midC244izhEUd6dGLH/kMGpQXeVfZvg3iKpogtmJvKi64qlwIyN6CD4U+xHSdSHX3F5VBLUJWUQMXVbNPsVQ2mnT3f6VnnshLP35xyvT2dXa5jz+w== 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)(23010399003)(1800799024)(376014)(7416014)(22082099003)(18002099003)(921020)(56012099006)(261028144727099003)(261022105027099003)(261022113327099003)(261022075727099003)(261102123227099003)(261021123027099003)(261026140227099003)(261021121427099003)(261026121527099003)(10067099003)(261009223027099003)(5023799004)(11063799006)(4143699003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a2t5N3VhOXNPQ012V3g0eHJtdHdldm5lZzQ0cnAxSk1pMDJPMjlIWGRxM0ls?= =?utf-8?B?TkVQRDhpeUZZcDB0cUtuUEg4MmpwQUQ5VDBHNzRUenpWeTFpblRPQ2p1SVpq?= =?utf-8?B?MHVMWFloNDY4ekdnREYvZmU2RjBPZnNndHFFWGFjWk5OY0d3UWJmUE9USUo4?= =?utf-8?B?YUluS1ZIa2xNL2ZNMGx3clZzQm5xMnBSd2dIZld1cnVlNGhjMTlOa1ViQnh2?= =?utf-8?B?K2JtMDlid3dMd3F0d1ZYSC9NYnQ2eWtsY01FMUhYTWNRcmpwdkhUTDBZWVRp?= =?utf-8?B?YXVmNmZnaU1yL1lqTG15RHQ1YmlveVpKNDZMUEZIcXkvMmkyTWNJL0wvL09u?= =?utf-8?B?VE5kUmg1eFR2U1VqSSt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U1L?= =?utf-8?B?SlByRHFBWVJCOVZuTnp5cXRPV01UcHdYZzJjemx2TU5UYjcyK2g3VGtVaWlP?= =?utf-8?B?NndYNFN3SjJBQlhEYUYyWjR2eVo5cGdmT295WW80dmNlOTFxZVdOWWZnREI3?= =?utf-8?B?Vk1EQ0l6QXBQK3JuQjVBR1RJUm90UURoM2hzYXpqL3NiU1A0SUdKNFpveFZE?= =?utf-8?Q?2tXR8YL2ZFJeI2jg=3D?= X-Exchange-RoutingPolicyChecked: SXf/ykgn24M1+GSzKHlmBhB9TdmMJDY11KS8W5BZgIq8yWlOkh7LAn+9hgIyKgP2GGeoHocAtI6w+zWwbilWLKBCOlPgDx77cvdDZF78ABX08Pdo7CbUm9TpxS7TNNl8dXuR4iGuWyThYUPnk5ghWhuEqYixLdd53B8YVwdgPEfbcab2FBZPnsXIW97TWr8AvbTDorTtcYDmh1zIi4EnBTb07GVwZJMwerA6gqzmSxnsz8zIuTTiJPXs0VyI6SfXIHIxwZQHJdbnNH38OBJpxnVxSrzDCJ4ztMOSiSeoEDEz4VYh/a7zHPURgsSAF3dkd6CJ0Ubc6w76VnEXFi5RHg== X-MS-Exchange-CrossTenant-Network-Message-Id: ff24bff5-a918-494d-d30e-08df517a3deb X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 20:15:57.8471 (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: GM9DmysKHQmWg1dlottSKvi/J30Jc4zVd7X1MnldiIkZN2iNbrF45vmZTw+kcakARlnuNCG5C//rEEypo0MjsDF5MqjHYvkPuml83csnB4A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH9PR11MB006246 X-OriginatorOrg: intel.com Hi Jinjie, Thank you for this redesign. I find rebuilding the dirty RMIDs to be the right approach. On 11/26/26 1:50 AM, Jinjie Ruan wrote: > On MPAM an RMID is read through the PARTIDs of its CLOSID: CLOSID c is > PARTID c without CDP, and PARTIDs 2c and 2c+1 with CDP. A mount that > changes the CDP state changes how every RMID is read, but the RMIDs keep > the dirty state they had under the previous CDP state. > > With 5 PARTIDs: > > mount CDP off, CLOSID c -> PARTID c > mkdir g1..g4 CLOSIDs 1..4 > umount RMIDs enter limbo with CLOSIDs 1..4 > mount -o cdp CDP on, CLOSID c -> PARTIDs 2c, 2c+1 > limbo handler reads CLOSID 2 as PARTID 5 > PARTID_MAX 4 > > mpam:__mpam_irq_handler: error irq from msc:1 'MSMONCFG_ID_RANGE', partid:5, pmg: 0, ris: 0 > mpam:mpam_disable: MPAM disabled due to hardware error interrupt > > The other direction fails silently, and the free RMIDs are affected too. > With CDP the default group's code accesses tag cache lines with PARTID 1. > Mounted again without CDP, a new group given CLOSID 1 and RMID 0 starts > out counting those lines, although that RMID was never in limbo. > > When a mount changes the CDP state, put every RMID that can be allocated > back in limbo, so that each one is checked as it is now read before it "back in limbo" is not quite accurate since the RMIDs may be on free list. This could perhaps just be "put every RMID that can be allocated in limbo"? > is reused. Until then, creating a group may fail with -EBUSY. The RMIDs > of a CLOSID that is out of range under the new CDP state can neither be > read nor allocated, and stay free. CDP on any resource changes how every > CLOSID is monitored, so the CDP state of every resource is compared. > Where the RMID does not depend on the CLOSID, as on x86, nothing changes. Please write with imperative tone. For example, Compare the CDP state of every resource, since CDP on any resource changes how every CLOSID is monitored. Leave the limbo handling unchanged where the RMID does not depend on the CLOSID, as on x86. ... > --- > fs/resctrl/monitor.c | 57 +++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 56 insertions(+), 1 deletion(-) > > diff --git a/fs/resctrl/monitor.c b/fs/resctrl/monitor.c > index 5f3d39f0d3ed..8d78360efda8 100644 > --- a/fs/resctrl/monitor.c > +++ b/fs/resctrl/monitor.c > @@ -70,6 +70,13 @@ static u32 *closid_num_dirty_rmid; > */ > static unsigned int rmid_limbo_count; > > +/* > + * @limbo_cdp_state - 1 if the RMIDs were last checked with CDP enabled, 0 if > + * not, -1 before the first mount, when only the default RMID has been > + * used. Only used when CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID is defined. > + */ > +static int limbo_cdp_state = -1; This is a big change. Previously this was a simple boolean named "limbo_cdp_enabled" that tracked just the CDP state but now this becomes an int that tracks two different things, the CDP state as well as the mount state. Having a single variable overloaded like this is not ideal. The types are also inconsistent with it later being assigned a boolean. Not rebuilding the list on first mount is right, but I think this can be accomplished without adding a third value here. setup_rmid_lru_list() already knows which mount is the first, since that is the one that allocates rmid_ptrs[]. If its call in rdt_get_tree() moved after closid_init(), both things the rebuild needs would be known when it runs: the CDP state from rdt_enable_ctx() and the number of CLOSIDs from closid_init(). Nothing between the two calls uses rmid_ptrs[] or the free list. The first mount could then record the CDP state, later mounts compare against it and rebuild if it changed, and this could go back to a bool just like it was in v6. > + > /* > * @rmid_entry - The entry in the limbo and free lists. > */ > @@ -1040,11 +1047,42 @@ int setup_rmid_lru_list(void) > return 0; > } > > +/* > + * A change of the CDP state changes how every RMID is read, so any RMID, free > + * or in limbo, may now count cache lines left by another. Put every RMID that > + * can be allocated back in limbo. The others can neither be read nor > + * allocated until the CDP state changes back. > + */ > +static void recreate_dirty_rmids(struct rdt_resource *r) Could this be named more specific, for example "limbo_redirty_all()"? > +{ > + u32 idx_limit = resctrl_arch_system_num_rmid_idx(); > + struct rdt_l3_mon_domain *d; > + > + lockdep_assert_cpus_held(); > + lockdep_assert_held(&rdtgroup_mutex); > + > + /* Only the default group exists, so this frees every other RMID. */ > + list_for_each_entry_rcu(d, &r->mon_domains, hdr.list, lockdep_is_cpus_held()) > + release_limbo_rmids(d); > + After this every RMID other than the default one is on the free list, and the loop below depends on that. Could it be enforced, for example with WARN_ON_ONCE(rmid_limbo_count) here? Something left in limbo would otherwise be skipped by the rebuild without any sign. > + /* Skip the default RMID, which stays allocated. */ > + for (u32 idx = 1; idx < idx_limit; idx++) { Having the loop managed by the index and then removing the list entry for each creates an implicit dependency here on how the limbo entries were freed. I think walking the free list that release_limbo_rmids() just created will be more robust: list_for_each_entry_safe(entry, tmp, &rmid_free_lru, list) { if (entry->closid >= num_closid) continue; list_del(&entry->list); ... } > + struct rmid_entry *entry = __rmid_entry(idx); > + > + if (entry->closid >= closids_supported()) closids_supported() may be zero on a monitor-only system. This will mean that no RMIDs are placed back? How about: /* Without allocation, only the default CLOSID is in use. */ num_closid = resctrl_arch_alloc_capable() ? closids_supported() : 1; > + continue; > + > + list_del(&entry->list); > + add_rmid_to_limbo(entry); add_rmid_to_limbo() also arms the limbo handler with the default CQM_LIMBOCHECK_INTERVAL, just for cqm_resume_limbo_handler() to cancel and re-queue it. This is very difficult to follow. Could the rebuild only mark the RMIDs dirty, and leave starting the handler to cqm_resume_limbo_handler()? A new "limbo_add_entry()" that splits out all but arming the limbo handler would complements existing "limbo_release_entry()" and keep entry->busy, rmid_limbo_count and closid_num_dirty_rmid[] updated in one place: /* Mark an RMID dirty in every domain, without arming the limbo handler. */ static void limbo_add_entry(struct rmid_entry *entry) { struct rdt_resource *r = resctrl_arch_get_resource(RDT_RESOURCE_L3); struct rdt_l3_mon_domain *d; u32 idx; lockdep_assert_held(&rdtgroup_mutex); lockdep_assert_cpus_held(); idx = resctrl_arch_rmid_idx_encode(entry->closid, entry->rmid); entry->busy = 0; list_for_each_entry_rcu(d, &r->mon_domains, hdr.list, lockdep_is_cpus_held()) { set_bit(idx, d->rmid_busy_llc); entry->busy++; } rmid_limbo_count++; if (IS_ENABLED(CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID)) closid_num_dirty_rmid[entry->closid]++; } add_rmid_to_limbo() would then call limbo_add_entry() and only add arming of the limbo handler. Above changes should ideally be split into a few preparatory patches, which is now easier to manage with the CDP fixes not headed to stable. I see at least two preparatory patches: - moving setup_rmid_lru_list() to later in rdt_get_tree() - new limbo_add_entry() helper. > + } > +} > + > /** > * cqm_resume_limbo_handler() - Restart the limbo handler after a mount. > * > * The limbo handler stops while resctrl is unmounted. Restart it on every > - * domain that still has RMIDs in limbo. > + * domain that still has RMIDs in limbo, after checking every RMID again if > + * the mount changed how they are read. > */ > void cqm_resume_limbo_handler(void) > { > @@ -1057,6 +1095,23 @@ void cqm_resume_limbo_handler(void) > if (!r->mon_capable || !resctrl_is_mon_event_enabled(QOS_L3_OCCUP_EVENT_ID)) > return; > > + /* > + * Where the RMID depends on the CLOSID, the CDP state decides how an > + * RMID is read. CDP on any resource changes how every CLOSID is > + * monitored, including by the L3. This reads as if resctrl in general linked the CDP state of one resource to the monitoring of another. It does not; checking every resource is there for how MPAM emulates CDP, which is fine here because only MPAM selects CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID. Could the comment say so, wherever the check ends up? For example: /* * Only MPAM selects CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID. Its CDP * emulation gives every CLOSID two PARTIDs in every MSC as soon as CDP * is enabled on any resource, so CDP enabled on the L2 alone also * changes how the L3 monitors read an RMID. Check the CDP state of * every resource to accommodate that. */ > + */ > + if (IS_ENABLED(CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID)) { > + struct rdt_resource *res; > + bool cdp_enabled = false; > + > + for_each_rdt_resource(res) > + cdp_enabled |= resctrl_arch_get_cdp_enabled(res->rid); > + > + if (limbo_cdp_state >= 0 && cdp_enabled != limbo_cdp_state) > + recreate_dirty_rmids(r); > + limbo_cdp_state = cdp_enabled; > + } > + > list_for_each_entry_rcu(d, &r->mon_domains, hdr.list, lockdep_is_cpus_held()) { > if (!has_busy_rmid(d)) > continue; Based on the examples it seems there may be scenarios where only limited PARTID are available. If there is thus a system with only two PARTID and one PMG that is mounted with CDP then only CLOSID 0 is left. A rebuild may then not put any RMID back while a limbo worker is still queued. Considering this, should above perhaps be: list_for_each_entry_rcu(d, &r->mon_domains, hdr.list, lockdep_is_cpus_held()) { /* Drop any worker the unmount left queued. */ cancel_delayed_work(&d->cqm_limbo); if (has_busy_rmid(d)) cqm_setup_limbo_handler(d, 0, RESCTRL_PICK_ANY_CPU); } This may be Reinette