From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from SJ2PR03CU001.outbound.protection.outlook.com (mail-westusazon11012030.outbound.protection.outlook.com [52.101.43.30]) (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 672003368A2 for ; Tue, 4 Aug 2026 19:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.43.30 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785873087; cv=fail; b=p5FHZxaS5tnf+O7oyY2goEeDyc4dKCS7r+8C9NFGByOaeJZqtwMiES9OAOtIAI9ysOC/Tm3yyzkXQuSkvwuZRZ07/DDRi6IrClSZrtKQnKuNMg+/wQ+OhHlze+DR6p3eaX09BgJcMm4mKEVXtvCKkchJaR24GPO2fHZEvYM1tT4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785873087; c=relaxed/simple; bh=kf2++RLx7UeY4M9U1HQvdiVKkET2cx+ggk3N0iAI+5E=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=ejN6RSJL2AhPLGbig+GhYHg76OUj4o/95qEsyXeEsNMLTh0PsP69FUvskhEBZ6gZa0+JG06ZlRHW9MwhSw6lqJ1bkmtYcGjSe7AXSlQr3pIzscG2ydEbR1iqRULBmmSDAh7fWqc7qOJqnbuma1ly328tQbuogiHSfIAlcMrJwPU= 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=yRBT/Lz9; arc=fail smtp.client-ip=52.101.43.30 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="yRBT/Lz9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yVDHAAULmsTGnOx9u/uS7r8x/M+ODVypJxRImhwG6FZMo5g7XOLMpugETdmdEfDzZXsuWg/FSZq3/Jr545gLYehi8jqmjdnrC2csS4z6a171zLNPYDE4JMbbNrLcakH/Mb3R4fIuR6W3Rjww8AQa8ZW6QI+ui+GPAS6wfZEuy+uZifpmrwTXtnYWHR//CFVDDFORvacGo+Zk7YsieV4bZfgWeWD6aIZhJ+ujdp1sDSpC4x5xOTCf+60m2gF4BZlXaXNReh/FNBXIHITBhpeK7gGo31nUJ1RgH5E/gA2PLM+/JQCVSurrn7BC+HHdc79y+ant5Xqt28UlXkMM/wctFg== 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=jewf25cYaM5PGvIk75k+U21T7DWGy6te+10vt7+gNjc=; b=Tkwh/QofO7VUiEHBAosalIt8smaZMERkMymDgozcmmxQFp3gZ4O0qjXJac/HFynM9BmWgG2wjhAx18SoQqzknKNyILJ1lU0yLeVTapvi/drWtOqUlt3GAteTM21Z5RYghSpoIakRImEsn40QBI37kneWVvhjKAQQ2tmyqzD9YM9R+sLOtTiQm8qXN/R9AM7TQz1e2m64J7GKEEOS7pXT9zCgb0lskIkDCWt5m7+0sEhrGvruhDW+CwGMPmi/FRlExcThaizMT1GjSxkddrMmPkyCawVKu9JFQZdHMBXkc3FKJzXG9eJn0E65R/FOYMtICmFk8hxjogml12obX6rxyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none 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=jewf25cYaM5PGvIk75k+U21T7DWGy6te+10vt7+gNjc=; b=yRBT/Lz9XsizXZvZnAP14m94YA0xxlqJXf7JlquSCPBzGejLvtzUU4ywcZL+dSqu4hTgwbil1COlt8ZMnjRupbADf1BLCd0IxZOz283aGZetdfy9AGQUwn98jJ3TGLhAJAbpiUggi2sbxBpRDAk5CsnCOK3XOx3OQunMJ4QKCWE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5320.namprd12.prod.outlook.com (2603:10b6:208:314::17) by BL4PR12MB9723.namprd12.prod.outlook.com (2603:10b6:208:4ed::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.18; Tue, 4 Aug 2026 19:51:22 +0000 Received: from BL1PR12MB5320.namprd12.prod.outlook.com ([fe80::1876:4a6d:2cf5:b8d1]) by BL1PR12MB5320.namprd12.prod.outlook.com ([fe80::1876:4a6d:2cf5:b8d1%5]) with mapi id 15.21.0270.017; Tue, 4 Aug 2026 19:51:22 +0000 Message-ID: <09f95e5e-3cc5-4553-929f-bce26b898fb5@amd.com> Date: Tue, 4 Aug 2026 14:51:20 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] mpam,x86,fs/resctrl: Generic schema description Proof of Concept To: Ben Horgan , Reinette Chatre , Fenghua Yu , Tony Luck , James Morse , Dave Martin , Drew Fustini , Chen Yu Cc: Borislav Petkov , Thomas Gleixner , Dave Hansen , Peter Newman , "x86@kernel.org" , "linux-kernel@vger.kernel.org" References: <36163a81-9737-49e3-93ef-6c392f7272f0@intel.com> <0fc6df54-26c7-43fa-948a-528cd94937f1@arm.com> <9049378c-699a-4155-b1e4-737a1d7265d5@intel.com> <57740b97-80ee-4632-bca3-dc43cd7776c2@arm.com> <44f26cd4-be79-476e-b002-7ccfb7705179@intel.com> <749bd904-523d-4e9d-8493-0e8cfd79949e@arm.com> <9db33feb-cf04-420c-a99a-e31e4b8e4954@arm.com> <8fd6caed-820f-457a-a1ef-a0a006fa52aa@intel.com> <4ef15dde-2fbb-4763-93b6-4333b02d6859@arm.com> <7b751c28-2f04-42b7-b957-af6447e7f824@intel.com> <34b95afb-8b60-4680-9ad1-90c5b24e8fb7@arm.com> <08f016bc-2ba6-439e-bb3e-20061166402c@intel.com> <21e614b8-50fa-49e4-87c3-e6bdb4e83ab1@amd.com> <653c9a0c-c665-4016-90b2-3f55e06050b3@amd.com> <618ba724-d734-43d3-b90e-11ba7f31c2b6@arm.com> Content-Language: en-US From: Babu Moger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH3P220CA0001.NAMP220.PROD.OUTLOOK.COM (2603:10b6:610:1e8::23) To BL1PR12MB5320.namprd12.prod.outlook.com (2603:10b6:208:314::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5320:EE_|BL4PR12MB9723:EE_ X-MS-Office365-Filtering-Correlation-Id: fb9a98db-4ac4-42d7-176b-08def261c29f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|23010399003|376014|7416014|1800799024|56012099006|10067099003|4143699003|5023799004|11063799006|6133799003|3023799007|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: mVx6X7fJmJYwd4sSzH3yv1Nn7dvcM1ipgsZQHn7Q18v1RsjUjUm124ck4mi1W7ee9DunnKuPK1o2fDUoXhF5EeRK2LcULLwYF+OCkdC4GevFYwcO8RyMpwJjlfVRjkSztT+lIpBZFKkwDPfCbgzYwEvsoX/eFGbGU9l8gVJ3WP7wuFqjjraRTiLzvbDOoh44iVQyaDcgEecZnmpSSCCrLbeSNjmoEkUddfKhpBNo57fN/I2bQLEYDS53ixFrCoBYftZ7nx3FmCRm9YfUogX9Was47473l8ufatiRsFhUaQzVgCN5BP3ysO84sV1MiPBa4PxexEjR/+WkdT2GnWGi2v+5nJltHWrpyiBfDFFdPXxevQ8hjsTcP0JVZD73BsBOIGMNMplxMlkn0I/1M6+jramXhmE+TpUoiGHZGu2QePZkFKHan5RZ/S9FzNM+RLgttcm2Us60y/sb8gvjNa1NzsYDKNUsBfeuBj11XssLwhkAhrnPL7tmdjONgApWLRLN60GIMtuykN+g/YZoIYV6oB0XgN9IKOYfWPit3/Fj5iii9pH7NPW4qit7pdr0F+pTu/U4ej1OABxiyLFh6FATONKcYbjqeTpLA7MGkcaP6L0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5320.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(23010399003)(376014)(7416014)(1800799024)(56012099006)(10067099003)(4143699003)(5023799004)(11063799006)(6133799003)(3023799007)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a3ZCYmJxcHFHNmNETHpnWWtVVm9semxlTzE1eVlSaUZ5QWV5SHU5d3Nmamhi?= =?utf-8?B?Ym45ZXRaRUc5akhhNCsyaW9BNjFKVll3a25aTXRKVThzcm9wMXUwbzZkeFE2?= =?utf-8?B?MFJWQ2lIb25DdkkrSHc2a3FPRTZtbDVDMHdpa2tZelpUakdwL1I5VG9oMnNx?= =?utf-8?B?OUQxU1BydFlRU1kyemh0b1VaT2JlSDZTMkZESlp1NFJ5TlQwT0J2Rkl2S0RS?= =?utf-8?B?UUNyWXJac0sv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ZFFCcmFoazIyMmZF?= =?utf-8?B?YzlVTVhpaGpnbGl2M0RCL2twRzZNVUYwTXVhTTM1RzRaUUZXM0N1NXl4MXFU?= =?utf-8?B?SkVudWtBcnhOcDUwNWtud293ejhDNUJOYWVSbHFkSERJbWJVNFh0S1Q4cGVJ?= =?utf-8?B?cm1Nbis2ZVl3cWVXRzNrSldOandyZ0tYamRhV2ppQ1NiOVhKVytqNEpTNEtW?= =?utf-8?B?dTh1NFhoZkltTWNJaUFGQ1c4dWZYZE9XUFp2Z3V5bUpOR1Y5RUhNYnE5NCt1?= =?utf-8?Q?EJc3TO/zSajgQBtQal?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb9a98db-4ac4-42d7-176b-08def261c29f X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5320.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2026 19:51:22.6027 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: h3Co7JHvXgfW+n85qryvnFT93UO0c3ItXP6hEdT0B7UhosFbM0LkwhS12RdIiHu3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL4PR12MB9723 Hi Ben, On 8/4/26 10:11, Ben Horgan wrote: > Hi Babu, > > On 8/4/26 15:09, Babu Moger wrote: >> Hi Ben, >> >> On 8/4/26 04:11, Ben Horgan wrote: >>> Hi Babu, >>> >>> On 7/22/26 18:02, Babu Moger wrote: >>>> Hi Ben, >>>> >>>> On 7/22/26 05:47, Ben Horgan wrote: >>>>> Hi Babu, >>>>> >>>>> On 7/21/26 21:02, Babu Moger wrote: >>>>>> Hi Ben/Reinette, >>>>>> >>>>>> On 7/21/26 12:30, Reinette Chatre wrote: >>>>>>> Hi Ben, >>>>>>> >>>>>>> On 7/21/26 6:23 AM, Ben Horgan wrote: >>>>>>>> On 7/20/26 23:54, Reinette Chatre wrote: >>>>>>>>> On 7/20/26 6:30 AM, Ben Horgan wrote: >>>>>>> ...> >>>>>>>> The former, info/ contains a directory for each allocation scope of each resource. >>>> >>>>>>>>> >>>>>>>>> The other x86 feature to consider is AMD's upcoming "Global" MBA/SMBA that exposes memory >>>>>>>>> bandwidth allocation >>>>>>>>> in "groups of L3" that I understand could usually be mapped to NODE scope (but it remains >>>>>>>>> controlled at L3 scope), >>>>>>>>> except for one configuration where it is "SYSTEM"(?) scope. >>>>>>>>> Ref.: https://lore.kernel.org/ >>>>>>>>> lkml/8f77f498b1c77fa8fd8f5d5687f03ae598068544.1776980182.git.babu.moger@amd.com/ >>>>>>>> >>>>>>>> Hmmm, I'm not sure that the scope can be considered to be NODE scope for GMBA. To me it seems >>>>>>>> to be >>>>>>>> accidental that it maps to the NUMA node but really the scope is just a grouping of L3 >>>>>>>> instances. >>>>>>>> For a control to NUMA scope I would expect the resctrl domains to go offline and online in sync >>>>>>>> with >>>>>>>> the NUMA nodes. For GMBA it looks like it would just going offline/online based on whether >>>>>>>> any of >>>>>>>> the CPUs and so L3 instances in the group are online. Am I correct here? >>>>>>>> >>>>>>>> Assuming the domains are on L3 groups rather than NUMA also changes which end of the link the >>>>>>>> traffic is regulated and so how cross-NUMA traffic behaves differently. If the domain is an L3 >>>>>>>> group >>>>>>>> then a task running on a CPU affine to that L3 group won't be throttled unless that particular >>>>>>>> domain is throttled but with NUMA node domains it may be throttled if it has traffic going to >>>>>>>> that >>>>>>>> domain. >>>>>>> >>>>>>> I'll defer to Babu for accurate answers about this hardware capability. >>>>>>> >>>>>> >>>>>> To me, Global MBA should be considered a NODE-scoped resource. In some configurations it may >>>>>> appear >>>>>> as SYSTEM-scoped, but that is effectively equivalent to a single-node encompassing the entire >>>>>> system. In such cases, there is only one schemata entry controlling the whole system. >>>>>> >>>>>> Yes, multiple L3 instances are grouped together to form a NODE. Internally, programming is still >>>>>> performed at the L3 level, but that implementation detail can be hidden from users and does not >>>>>> need >>>>>> to be exposed through the interface. >>>>> >>>>> We seem to have two things that can both, somewhat reasonably, be called NODE scope in the resctrl >>>>> user interface but the behaviour required for an MPAM system and an AMD system appears different >>>>> from the point of view of lifecycle of the resctrl domain. >>>>> >>>>> For MPAM NUMA scope the MSC instance (MPAM hardware interface) is at the memory controller and so >>>>> goes on and offline based on whether the NUMA node is offline or online. For AMD NUMA scope it >>>>> looks >>>>> to me that the lifecycle of the resctrl domains would be tied to the CPUs associated with the NUMA >>>>> node. To me it does seem odd that a control with a domain associated with an offline NUMA node can >>>>> continue to throttle (cross-NUMA) traffic. >>>>> >>>>> Is there any GLBE Control Domain ID or similar that is exposed to the user, e.g. is sysfs, or is >>>>> this just implicitly the NUMA id? >>>>> >>>> Yes, the GLBE Control Domain ID is exposed to the user. It is essentially equivalent to the NUMA ID. >>> >>> What's the on/off lifecycle of these nodes? Does it follow the NUMA lifecycle as managed by the NUMA >>> node notifiers documented in Documentation/core-api/memory-hotplug.rst or is it just linked to the >>> cpu hotplug as is done currently for the resctrl cache based domains. >>> >> It will follow the CPU hotplug lifecycle, similar to how it is currently handled for the resctrl >> cache-based domains. > > Ok. MPAM MSC are associated with the memory controllers and so MPAM controls that have NUMA scope > will follow the NUMA memory hotplug lifecycle. This points to them being different resources. Do you > have any thoughts on how we would handle this difference? > Currently, during CPU hotplug events, we call domain_add_cpu_ctrl(), which sets up the domain, CPU mask, and initial configuration values. The same approach will be used for Global MBA. I'm not yet sure what needs to be done for MPAM memory hotplug. It appears there will be something different. One possibility is to introduce a flag to distinguish between different types of hotplug events(memory or CPU). Thanks Babu