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=52.101.52.69 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796231688; b=ZrJASfDzdhS1JzDI7cIc/yCmqzv2deueSVOWRIqHmM2jc8sE3IvwuMaeMU9yltqff20W NAc2pIAlDOjvE6BzSx+OeDq1CqkubsPa5ryPYSwcJJnxp/ROkzva6wurIYZFzVudLsi4w HayjwCT+9Us0db3AzPsaAmL/QJT4n3vD7o6t6FI6SC1LYUp4O4hRQQsCacRJ1OqIVVJ7R hw7pgEs6c//SFv9G1VVjPixXSxOSu9ZGc3as41ae9KRDmSfHdKm7SpHJapquJM//i/5Y5 dqb7qL2GifoXhtXsJCTLZM5uePzf06h1XQ3u8YZjywPY0gvHrXwrvB0cLvuO/GA0Qhg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796231688; h=DMARC-Filter:DKIM-Signature:Received:Received:Message-ID:Date: User-Agent:Subject:From:To:Cc:References: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-OriginatorOrg: 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; bh=4VUlXpgGMh7aVjP88keXWmETHPpESHC6wmVaCUiNd0s=; b=GoRw4Ef7ass9Q2TMzteNjfHAvHQbZjzV2Wrs99XrhaxJP9B30g33Xda5//2Z8g+JW4d4 Hk7v4vuZg4JTKjDv77YQCnQqKcXWfzzmePIdCekMPobE9eyu+nmYzijn4MvfdOU1ha0jw YXZPzrrfpxl+YU0JzjJLGbYdYaq2cVnwBZK+RtZXqyjrwyY8pREZksWSGNOsLtBI32tEO 5d3wbSJDKLhCoJ5wqJz89nQOXIiOBH/6GaLo3mcORN4lxqpCsi/yC8tcHsLQTIkwAox8x u3UfVhYM5HLlqTa497h39dLY9Lx2r4Lbe/Fxzv90N21L/3k1pGTn/Rr+CUD7bKb66Gw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=4mqdJi0N; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.52.69 Received: from BL2PR02CU003.outbound.protection.outlook.com (mail-eastusazon11011069.outbound.protection.outlook.com [52.101.52.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85A83606A31A for ; Wed, 2 Dec 2026 17:14:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85A83606A31A 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, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=4mqdJi0N ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ftsqCgnuf+tpdo2sWVC7MpR1vvzjgvSyrYjZfYHn4ZkodzUbUW8XMC9o0M24PJrpliW/kq6neoekcDzOy0Ds11jl+gzT4azrogYT7W0Mu3k7Y3URxDEbuPiEEqFZ87VQR2gk0NRDMlEdZlyD3UUnFajda38XzkE0NGRDr7uD6BK0FtWAXMBp/J+Veegd0XA5el0h8EdIheUWMbmDuJjW4/w7NSvA8f98Ddziun0C7f3ikgEs2iWhjX2uwNdoe6LFsYjIVIJvvV43krTJzew5u6LoQgVtTzcUS2nqLpPP+/g62ohmG/Jb+JpikCW0NhpFhZDTKoVA6Zp5/iBWL64nyQ== 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=4VUlXpgGMh7aVjP88keXWmETHPpESHC6wmVaCUiNd0s=; b=VSLN7EQ9OUcd+qBQD4YhmPS4kbYmJkDfBDvke6ineGrsejDemrA5FEBH17VuSrGgzTT8VemFdmJSi2LI3qS7Ea1GS+sCPXu/3CdeQfmUitN1P3FD8gaxL7JoVpPAaCou8WD7AyJTr5q8uZdfE9rCyHi7DITjPsbr8GVXJoWb786ia8JIp39MOegVHanam+Qg44XpwyY2uoizxM3zq1oVTNsovQnZT1OFwMRNxIIFe9BgwfJdqwlE/HTQzLqiHA+M6RF9LlvV+cRvEjEVhak95VB2aLXotFoIvejpxvh0SNLVIoxFR8H/2AlkQ/4xPYeLuEIRJk5xyXj49vaefgsMhg== 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=4VUlXpgGMh7aVjP88keXWmETHPpESHC6wmVaCUiNd0s=; b=4mqdJi0Nt+qwBCCMOSNbOvlHX+qneW8rRIuX1bawXy5sp5+sTfcJSmxTzenl+Ei4sTk9H4Wg4a3O+u4n1ThtCgZeaAoEOB70dSwncw1NPxlgw6fLhQs7apI8k2m+XlFtA3BCvYQd0GqEcjGDZFxwbaUZl1K/unZKSth5v5PnooI= Authentication-Results: mx.microsoft.com 1; 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 MN0PR12MB5762.namprd12.prod.outlook.com (2603:10b6:208:375::12) 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 17:14:43 +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.0688.010; Wed, 2 Dec 2026 17:14:43 +0000 Message-ID: Date: Wed, 2 Dec 2026 11:14:40 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v3] arm,x86,fs/resctrl: Generic schema description Proof of Concept From: Babu Moger To: Reinette Chatre , Tony Luck , Ben Horgan , James Morse , Dave Martin , Drew Fustini , Fenghua Yu , Chen Yu , Jinjie Ruan Cc: Borislav Petkov , Thomas Gleixner , Dave Hansen , Peter Newman , "x86@kernel.org" , "linux-kernel@vger.kernel.org" References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: CH5P222CA0004.NAMP222.PROD.OUTLOOK.COM (2603:10b6:610:1ee::8) To BL1PR12MB5320.namprd12.prod.outlook.com (2603:10b6:208:314::17) 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: BL1PR12MB5320:EE_|MN0PR12MB5762:EE_ X-MS-Office365-Filtering-Correlation-Id: 50ecb864-1344-4f1b-3bb5-08df5097c17f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|23010399003|10067099003|260925022911599003|260925021911599003|260925021311599003|56012099006|261022105027099003|261022075727099003|261021123027099003|261021121427099003|261026121527099003|261026140227099003|261028144727099003|261102123227099003|261009223027099003|18002099003|22082099003|11063799006|4143699003|6133799003|13003099007|3023799007; X-Microsoft-Antispam-Message-Info: L+MpFMYt5uYcp4Q5DOwnR2WHjfcS8Sx7EiOfr6zRIw6uMBSTwcaVioMuC9wqAR8ZcpRtFJQu4K+x71sMF2rNbxsJXPeCeiN2qs0bWRF4y5txAXAv1geilORjcMp4ZYfngPrDgQz+XXO0Y54za9/RS/kDp/4+skzt+3ukGulxySoH2QmQ6w7KUaa/AOGqcRkBb7br3Rmqa/6wQu1UUCveHkXq3CCLjY47v0bMq97UaqQ69W6ZMnKnjQJELUB6OVdgr2xNF89BkFrZipgbfDreWmGpbafo5cvPIaj37tJrNdvpCQSz2aACAW3fEJ7BHtupPTPhJPz5SEa+eT9l7cYQrL77vZOZY9DROGUFt6u8PMSnWmeV00kxaxfIpCzso1DrgIJhhRDmWLABraKA72yA4ZEbyCDDEVM+FmlMq+PiL2h0B8ByL9ThqyTqsu2QZz84gjaVD5NM+b8gZ8upg9QxlUKZK9EKagslvYFqw941O0cUABW5xvx+ohdZno/MmkPlW7wQWaOAI6Ss4/ThJAagRTSb5vsXCWR3BGZ7gp/blfo5ciVZMJ4dDjJILZtLV3CHcdgTIOmctdYPNIVa0qY3dkxy7O1hRdIt8xaqhSWSKHk= 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)(1800799024)(376014)(7416014)(23010399003)(10067099003)(260925022911599003)(260925021911599003)(260925021311599003)(56012099006)(261022105027099003)(261022075727099003)(261021123027099003)(261021121427099003)(261026121527099003)(261026140227099003)(261028144727099003)(261102123227099003)(261009223027099003)(18002099003)(22082099003)(11063799006)(4143699003)(6133799003)(13003099007)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkR0RUI0K0o1c2VuNk04R1hnOHpLcFNJTVlWZFVIbStUNWpCajE1QTVOSjRV?= =?utf-8?B?Y1o4UWVORXEybWtGclFwcjlNRGN4bllvd0lES296aE1TYjNOZ1dCUkVZRkNk?= =?utf-8?B?WXRHQnNSUjRiOWZEQmRlNlV2N1VsV0VjYzdidzBBZlUvc1Q3S2pKbHg0TVBE?= =?utf-8?B?ZTVGSk1ORHd5Y2IvSVY1TzRKdGhYeW9ZUWFoK3JTK2F1MDZRL0V2UmpPaGU4?= =?utf-8?B?Q0lUbXhnZDBWa2cyL0YzYXZDRktOMFM5bUFidWhsUHpXMmFiY2JXbmVuQzRC?= =?utf-8?B?ZGJOYXp2M2N0bXlQMkp3akpJeFRsVmltZDRxZmlIT1Q1RzdDaXdPMTJZVWhj?= =?utf-8?B?NzFsckp4VXJGZGxlVXllMVRwMjV6QXNhWURWK3NIQ2VJUDBOekpLaHo0dE4w?= =?utf-8?B?MEhGT2VBZHptTTNYTUo2Qlp2amZTKzBLQi9hS1ovSklnWk5JRTBQZlBYV0Ns?= =?utf-8?B?YUFQMkJWckszQTh2dW1qSXMwNk85bWVFc0sybUF1aHBYWnllRlBKcmErcG90?= =?utf-8?B?bnBUUk5iYnJzW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1344-4f1b-3bb5-08df5097c17f X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5320.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 17:14:42.8485 (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: 5Mwo+L1+Plju2k2q0xgj+VbgYhex9PkXF345KOOXThS6J9zVinxwKA7jodxg5ocJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5762 Hi Reinette, On 12/2/26 09:31, Babu Moger wrote: > Hi Reinette, > > Thanks for the patches. Few comments below. > > On 11/19/26 23:04, Reinette Chatre wrote: >> Hi Everybody, >> >> I believe that discussions around resctrl's upcoming support for multiple >> controls are starting to settle. This RFC aims to capture all the >> remaining >> items in implementation as well as documentation. Please point out to >> me if >> there is anything I missed. >> >> RFC v3 of this PoC can be found at: >> git://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git >> branch resctrl/controls_rfc_v3 >> >> Please refer to the documentation patch for an overview of the planned >> interface >> changes as well as user space contracts/expectations: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git/ >> commit/?h=resctrl/ >> controls_rfc_v3&id=95ff9ff7430095cb7264946c944c750315db73d9 >> >> Remaining opens: >> --------------- >> - Ben: I do have a question about the formula used to determine the >> size of >>    a scalar cache control. Please see patch changelog of: >>    https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git/ >> commit/?h=resctrl/ >> controls_rfc_v3&id=8695aab0997d5aa60e104374fae9701f51156c18 >> - MPAM only compile tested. >> - The same x86 "SAMPLE" code as RFC v2 to demonstrate emulated controls. >> - Add relationships between controls. For example, cannot set "MIN" >> control >>    value to be larger than "MAX. Unclear how to do this in resctrl fs >> when >>    considering that the relationship may span between emulated and >> backing >>    controls. This is potentially something that needs to be managed by >> architecture >>    and thus potentially without a consistent failure to user space. >> >> Changes since RFC v2: >> -------------------- >> RFC v2: https://lore.kernel.org/lkml/d258a32f-12d5-464d- >> abe9-4720fb3e44b3@intel.com/ >>          git://git.kernel.org/pub/scm/linux/kernel/git/reinette/ >> linux.git branch resctrl/controls_rfc_v2 >> >> User visible changes: >> - Make scope a property of the control again, now in addition to a >> separate >>    allocation scope of the resource. Expose the control scope via a new >>    per-control "scope" file (L2, L3, or NODE) that tells user space >> what a >>    domain ID in the schemata file represents. Needed to support AMD's >> GLBE >>    and CPU-less memory bandwidth allocation. (Ben and Babu) >> - Name controls according to the scheme agreed during RFC v2 discussions: >>    __, with the control >>    scope dropped when it matches the resource scope. MB and SMBA carry >> their >>    L3 scope only implicitly, so their new controls show it explicitly, >> for >>    example MB_L3_MAX, or MB_L3NODE for a default control at NODE scope. >>    https://lore.kernel.org/all/bccb1249- >> e722-451a-9c75-8aa846713045@intel.com/ >> - Report "max" per domain in preparation for systems with resource >>    instances of different capacity. A bitmap's "max" no longer has a "0x" >>    prefix. (Drew and Tony) >> - Drop the "min_bits" file. The "min" file of a bitmap control now >> reports >>    the minimum number of consecutive bits. >> - Only offer, and only allow switching to, "native" control mode when the >>    resource has emulated controls. (Ben) >> - Only allow cache pseudo-locking via the default cache control. >> - Display the "size" of scalar cache controls. (Ben) >> - Stop reporting scalar control parsing errors as being about "MB". (Ben) >> - Document the control naming, the "scope" file, that control values >> may be >>    reset on a control mode switch, that legacy info files return no >> content >>    in "native" mode, and that non-legacy resources need not have a >> default >>    control. >> >> Other changes: >> - Require a control and the controls it is emulated by to have the same >>    scope. >> - Require only legacy resources to start in legacy control mode. >> - Generate control schema suffix once during initialization. >> - Fix initialization of the list of emulating controls (Ben), clearing of >>    staged configurations of backing controls (Chenyu), and Haswell >> control >>    initialization (Chenyu). >> - Reword changelogs about CDP, allocation size and the bitmap control so >>    they no longer suggest resctrl will only ever support one cache >> control. >> - Fix checkpatch.pl issues, subject prefixes and changelog typos. >> >> Series structure: >> - Rebase on: >>    - x86/cache branch of tip that is based on v7.4-rc1 with the queued >>      resctrl cleanups >>    - MPAM domain separation that was extracted from RFC v2 and submitted >>      separately: >>      https://lore.kernel.org/lkml/ >> cover.1794283825.git.reinette.chatre@intel.com/ >> - Squash four patches into the patches they support: >>    - "fs/resctrl: Provide control to cache allocation" >>    - "x86,fs/rectrl: Provide control when requesting arch to update a >> single >>      domain", which also keeps MPAM building at every patch in the >> series. >>    - "fs/resctrl: Expose bitmap properties via new files in schemata >> folder" >>    - "fs/resctrl: Include emulated controls when determining control >> field >>      width" >> - New patch from Ben: "fs/resctrl: Display size for scalar cache >> controls". >> - Move IO allocation control selection, and the helpers that display the >>    new control properties, earlier in the series. >> >> Any feedback is appreciated. >> > > I compiled your code on my machine. The system booted successfully, and > I was able to see the new control parameters and their values. > > Here is the output. > . > ./L3 > ./L3/bit_usage: > 0=SSSSSSSSSSSSSSSS;1=SSSSSSSSSSSSSSSS;2=SSSSSSSSSSSSSSSS;3=SSSSSSSSSSSSSSSS > ./L3/cbm_mask: ffff > ./L3/control_mode: [legacy] > ./L3/io_alloc: disabled > cat: ./L3/io_alloc_cbm: Invalid argument > ./L3/io_alloc_cbm: > ./L3/min_cbm_bits: 0 > ./L3/num_closids: 16 > ./L3/schemata > ./L3/schemata/L3 > ./L3/schemata/L3/max: 0=ffff;1=ffff;2=ffff;3=ffff > ./L3/schemata/L3/min: 0 > ./L3/schemata/L3/scope: L3 > ./L3/schemata/L3/type: bitmap sparse > ./L3/shareable_bits: 0 > ./L3/sparse_masks: 1 > . > > ./last_cmd_status: ok > ./MB > ./MB/bandwidth_gran: 1 > ./MB/control_mode: [legacy] > ./MB/delay_linear: 0 > ./MB/min_bandwidth: 0 > ./MB/num_closids: 16 > ./MB/schemata > ./MB/schemata/MB > ./MB/schemata/MB/max: 0=8192;1=8192;2=8192;3=8192 > ./MB/schemata/MB/min: 0 > ./MB/schemata/MB/resolution: 8 > ./MB/schemata/MB/scale: 1 > ./MB/schemata/MB/scope: L3 > ./MB/schemata/MB/tolerance: 0 > ./MB/schemata/MB/type: scalar > ./MB/schemata/MB/unit: GBps > > ./SMBA > ./SMBA/bandwidth_gran: 1 > ./SMBA/control_mode: [legacy] > ./SMBA/delay_linear: 0 > ./SMBA/min_bandwidth: 0 > ./SMBA/num_closids: 16 > ./SMBA/schemata > ./SMBA/schemata/SMBA > ./SMBA/schemata/SMBA/max: 0=8192;1=8192;2=8192;3=8192 > ./SMBA/schemata/SMBA/min: 0 > ./SMBA/schemata/SMBA/resolution: 8 > ./SMBA/schemata/SMBA/scale: 1 > ./SMBA/schemata/SMBA/scope: L3 > ./SMBA/schemata/SMBA/tolerance: 0 > ./SMBA/schemata/SMBA/type: scalar > ./SMBA/schemata/SMBA/unit: GBps > > 14 directories, 49 files > > I noticed that only the max values are exposed on a per-domain basis: > but min is displayed only once. > > ./SMBA/schemata/SMBA > ./SMBA/schemata/SMBA/max: 0=8192;1=8192;2=8192;3=8192 > ./SMBA/schemata/SMBA/min: 0 > > Is that intentional? > > Also, I was expecting the x86 msr_update implementation to be converted > into a generic handler, as we discussed earlier: > > https://lore.kernel.org/lkml/6e440b7f-66db-4c4e-a6ac-2cb418739bad@amd.com/ > > Do you have any plans to address that in this series? > > I haven't ported my GLBE code on top of this series yet. I'll let you > know if I encounter any issues, but from what I've seen so far, the > porting effort looks fairly straightforward looking at the sample code. I ported the patches on to of your series. One question about the naming: User interacts with the supported controls via the schemata file. The schema name of a control is constructed as: __, is dropped when resource_scope == control_scope. For GLBE, the naming would be something like: MB_L3NODE_GLOBAL if the control scope is NODE MB_L3SYSTEM_GLOBAL if the control scope is SYSTEM Is that the expected naming convention? Thanks, Babu