From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 1B05541754 for ; Wed, 3 Jun 2026 03:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.16 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780458366; cv=fail; b=hBr8yktmZnzwAT+GbO6RrH5UmTbOnKkms1LJHIUI2thBD2Tw4HXdMmoZUvnjIXr9uHa9uegG+1VsQxDGoggt4pVFM84WfwDIhva9BmHTdTPnFkkFY2LWBpI4fswCF/Bryo18qoaPAUQNs2WGG1MjVZUZHTJNcsNZmpF4eGZcA40= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780458366; c=relaxed/simple; bh=EWcTCxBiAL83sAhAXS3EfJg6wmhmx2yrC4gMiqND2nI=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=e6Ez7/ggcOo+PMU1YGDScd9krzlqeinpNLgA6zDw/E+UNkzJAvlHV9YMhX/bVJdSdg8cTZ8S1u8rTqPUyv1fOmjTjaeVoYR1xIkJ8Nj3VtI4YZD50F+ZVzi0nkTW9BHLruQoaasdKAuCb2H0U62Hh9dV7MobFzn1KUhpcWaw0iw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B3BdAPy2; arc=fail smtp.client-ip=192.198.163.16 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.b="B3BdAPy2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780458365; x=1811994365; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=EWcTCxBiAL83sAhAXS3EfJg6wmhmx2yrC4gMiqND2nI=; b=B3BdAPy2hdaCxL6Qns3XeVzTN+aWq7M3Jzm1ZSvMR9z6jbAQwpkcTVsc r0L/8DDko6GtGnBw0SZAmcENQZ3eyT477S+uTUkz+lDL59Lp3PvGEGtO5 X5aXfmDhpEAowmRpVKekxj+1sLMp5/TJ9frZjuoE597wU/6lPpzpMQnja beWVJeUom5SSG5zPc7/+VIujixH27TORGExdeAkUZ6hXinRtzOpLoI7Fa opz/Ad0SNWSEtGrfaskE20IqYNuCVrRRS1iXmxRKQmn+Unp8Mx6ADcx38 UDeWn/1VdAdgzNypbFHwWHyRB61xo/E0QHe/TLRUIUtZwDQ+QtGpb93+y w==; X-CSE-ConnectionGUID: emH1mxpPQH65lEDAUU3jxw== X-CSE-MsgGUID: hAYTCHZCTIq40vfRP/hqvA== X-IronPort-AV: E=McAfee;i="6800,10657,11805"; a="68797967" X-IronPort-AV: E=Sophos;i="6.24,184,1774335600"; d="scan'208";a="68797967" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2026 20:46:04 -0700 X-CSE-ConnectionGUID: VQK2/Tc2QuubWtXEIrakgA== X-CSE-MsgGUID: So3zYFr2QXKeTRtRe1W0uw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,184,1774335600"; d="scan'208";a="245911864" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2026 20:46:04 -0700 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) 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.37; Tue, 2 Jun 2026 20:46:03 -0700 Received: from fmsedg902.ED.cps.intel.com (10.1.192.144) by FMSMSX903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37 via Frontend Transport; Tue, 2 Jun 2026 20:46:03 -0700 Received: from SN4PR2101CU001.outbound.protection.outlook.com (40.93.195.54) 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.37; Tue, 2 Jun 2026 20:46:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WVjUFGYNAPr3BKvOdpiNMHp3MS6W0BeOAb+/cWIw9Tx4J41uwL+jcm71ZhqaC0JgqlFFlUk5sukkEtJauPZbiN2ZekYUoVOWfY8aWkjScjPjmzkjrvph9iAcwQjCkemjCWDtMZd4zOV7wCNfRuRA/3mEHOqWrbcIK4eSiwBxejuMVJDBGoNlO7F6yt59fLWvTpriSZA8NCEfXL/23CzsVkwFznXZxp9duYTb7tQJu1m35VjugbIrl4IIGpKTe+5yJiSqtAEDM6v6msyQuhv0QXKyScgmRy/JLL1gl7qJW3gf3JcUGMiAo2On7Ici1HtFq7EyRP+cL6iU1apb64qWmQ== 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=TeVq8ats9pz8JpyNT4kbkHAiT5ZBMzqgUkPWWVQjeXE=; b=Fpn6kzf985bShDDXrw4jVLaEzFciTQnpiE63TqB/hKEW93caSpgvuvXTxG8FjE7MLd33DECQ+6CIdp+RWa1r9c5zqyPDJaIIkBRGMoOIQRGOlRLMafXEPEQA3mo1ILJDL7CMzPVpe+Nn7l8cfenRMEy+wMSI7FX7RDePdHqQUrPFlTBoapiDU0CTrEkIZLF3WNaRc8Xnkg7IPbw1yRJxQdT+D92IGa0cFp9+Akc/pXXdoNnvHotr02V9xiecLeSm/hXx4TmmAidFpQaIlOVfQGfuSZCd9PKsSa1TiEx8cchvbW5e5IpfCPCg10CPWqWohnNe+zYkQlItoMmUwwHd8A== 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: 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 CO1PR11MB4995.namprd11.prod.outlook.com (2603:10b6:303:9f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.92.7; Wed, 3 Jun 2026 03:45:55 +0000 Received: from SJ2PR11MB8370.namprd11.prod.outlook.com ([fe80::b6cf:ce77:3cdf:7cc]) by SJ2PR11MB8370.namprd11.prod.outlook.com ([fe80::b6cf:ce77:3cdf:7cc%4]) with mapi id 15.21.0092.006; Wed, 3 Jun 2026 03:45:55 +0000 Message-ID: <773353e8-b2a7-4c20-b6fa-195b0b301107@intel.com> Date: Tue, 2 Jun 2026 20:45:53 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] mpam,x86,fs/resctrl: Generic schema description Proof of Concept To: "Chen, Yu C" CC: Borislav Petkov , Thomas Gleixner , "Dave Hansen" , Peter Newman , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Tony Luck , Dave Martin , James Morse , Ben Horgan , Babu Moger , Drew Fustini , Fenghua Yu References: <90d82bac-440a-41dc-916d-01b564d5c64e@intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <90d82bac-440a-41dc-916d-01b564d5c64e@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0347.namprd03.prod.outlook.com (2603:10b6:303:dc::22) To SJ2PR11MB8370.namprd11.prod.outlook.com (2603:10b6:a03:540::20) 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: SJ2PR11MB8370:EE_|CO1PR11MB4995:EE_ X-MS-Office365-Filtering-Correlation-Id: 9fadb6dd-a98a-4cf2-9001-08dec1229dc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|366016|376014|22082099003|18002099003|3023799007|11063799006|4143699003|56012099006; X-Microsoft-Antispam-Message-Info: Hn1+6hVRG0Swu6/sSNPd3j5eV5FHt5hF+yUXrSn7S1NbNnpwQb547lZfu7Ky3CBCLOaP5LKabcLLjzTX3xhGvEQwY6B6sSRN+HMqS53Cbhi8/c8qWMRSlE0FvlrUQo576hp5eNUloJW2Q0rV7ATRPQ0kLZuguHkDOXKIzMaCvdjj0Elx52iucF1RMJLTM7IbcT1T9yipJH7/7uMPT1oLRJq646F23glTrh9VX1GztKWzmlLYTWV/EyJNsXzveQdrTRZFug5tJh/gBi+vOQxsIZgl2Ye4CLPoBlOV4fBhtmOT1tRCOSO9LavkQu3jytDro9lcB2YjQvuo9NL0NDV8Uqfa6iODDQ77+O9JDPrhS4/NDbCakL+j/QjzQV2SzamORRWjSwcb2Mp/B5BPLuLz1omqNrcqnNJwqgW4PjHnLzLfsZFdo1Zo9PJPhG8LlpWVflqgOANcw7OuiCtTDaMniIiSIO3peM8yWpO7gnYhrMrg+V9fbtil+E/CwVtw6IgOgOg1lEkYMTS6A+C5tw2GRiebyL7w06WDI9MTKfLnoFx0SC+jjtW4j3LghVgMbSa77dVdidsQidsQ90eStrr5yE84bo67hq5GqvQMkXe9Fp5hVRLOn+bo/OWDGmjOu3pXbCN9xsFnF8MbQoW+hGdULg== 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)(1800799024)(7416014)(366016)(376014)(22082099003)(18002099003)(3023799007)(11063799006)(4143699003)(56012099006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cFJWVkx0NmtHZHRWSDVlVkpLVUZrUGlQa1BJdk02eXpqQXI0bFh4dUUxcHJH?= =?utf-8?B?YUdzeHdnUnVvVXJ6LzB6a1g3V3phQWVhUkx1VmZvOVlhMlQ2dHpHTVNzZHk0?= =?utf-8?B?NTdtTmJ2cFNtQ3cvMUhvRmxmNWl3MmlWdC9hMGMxU2Fkc2QvdHVkTVBBWTll?= =?utf-8?B?MllKcTFSb3FmQjVVaHN3UG1STGR6YXFKbk5XYy9aWjZyN3VOcFB1VXhERC95?= =?utf-8?B?UDJ4TDcyRVJvUmsvTXNhcnBWUWZlODJhWUlRRTlnYkVTd05kQi9QekVmU1d6?= =?utf-8?B?MmdheTErRFI1Z0dzRGJJL1FIN3kzc2J2V1FwL3ZmNzBXeHQrd3o2QlFnYTJL?= =?utf-8?B?REtUNHFya2dTSVJJQXJReDNmN29rbGJLZXNNQVZRcUhnWHVBRTEreWFvY0Vp?= =?utf-8?B?cUlXb0c4SEpCd0c2bkd6U0NuRDlraE1SVDJHUWJsMXhNWXQ3cnIwZGdmcWs0?= =?utf-8?B?dGM2RThrWHVYOEU2YWExWGNRWWtOWVpqblMreXVEbHVWV2V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MxRnpncGcxSVg2c1lyTWtY?= =?utf-8?Q?wWiy/nUG0NE1CaTs=3D?= X-Exchange-RoutingPolicyChecked: EvfcKuy/Glzyxs5Ll3YyNkzpJNlfnY/rzjJDGJYy8d2qyeudbGCi2S/6A5pZswr18x3WUZR79pYuXk964rMj0ZmGv6ExlfzqSVdRFt4wcfBCB4G/Hu0VDgHRsy92dTJTxFTXNKMKLm0xdV3UZ6Q20ayYtpWx9zw7og7OyO9oKbFRFgBqdbu2WPmkhVj4HKqgtn91lclJC4R4YFtL/Y1i/TnV8KNoCsq/rIlb+C/b8kYj/cwneANEKbX3ajyanMqva7l9/j+/K6hjIrtiMtJSCa0vb/msaj871kBBjI+OuExwGA1Y99eFYFe0X1UsXty8teKPDigrjMm4zIqQFtCc6A== X-MS-Exchange-CrossTenant-Network-Message-Id: 9fadb6dd-a98a-4cf2-9001-08dec1229dc5 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2026 03:45:55.5060 (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: AGHjjmbvElTn5ydDm0eBlhTQbyDSi+FqnxjemXcMNux/VYxvmDrUToNkgtlKWVW+8MI41LsxB8KFIQ1ww8WSdrDq8rXMEVx2OkkoQJb2zmo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4995 X-OriginatorOrg: intel.com Hi Chenyu, On 6/2/26 4:32 PM, Chen, Yu C wrote: > Hi Reinette, > On 5/30/2026 2:06 AM, Reinette Chatre wrote: > > [ ... ] > >> /** >>   * struct resctrl_ctrl - A resource control >>   * @entry:    List entry of rdt_resource::controls >>   * @scope:    Scope of the resource that this control allocates >>   * @domains:    RCU list of all control domains >>   * @type:    The control type that determines the properties of the control, >>   *        format string for displaying control values to user space, and >>   *        parser of control values provided by user space. >>   * @name:    Name of the control. Appended to final resource name >>   *        (rdt_resource_final::name) to create final schema entry. >>   *        Specifically, "rdt_resource_final::name"_"resctrl_ctrl::name". >>   *        For example, with resource name "MB" and control name "MAX" the >>   *        schema entry will be "MB_MAX". >>   * @cache:    Cache allocation control properties. >>   * @membw:    Bandwidth control properties. >>   */ >> struct resctrl_ctrl { >>     struct list_head    entry; >>     enum resctrl_scope    scope; >>     struct list_head    domains; >>     enum resctrl_ctrl_type    type; >>     enum resctrl_ctrl_name    name; >>     union { >>         struct resctrl_cache    cache; >>         struct resctrl_membw    membw; >>     }; >> }; >> > > Thanks for re-spinning this patch set. > Looking at commit (fs/resctrl: Introduce additional schema properties), > the newly added properties appear to be implemented for the > MBA resctrl_membw controller. Please do note that the "struct resctrl_membw" naming is temporary. I only kept current naming to help folks find where existing known structures land in this new design but the "struct resctrl_membw" name is not appropriate moving forward. When user space interacts with the new controls the intention is that each control has a "type" that the user can find in the new "type" file and depending on that value the user will know what other files/properties can be expected. In this PoC there are two types: "scalar" and "bitmap" and each is associated with a struct that contains the properties associated with that type. Considering this, these structures could, for example, be renamed as (very long): struct resctrl_membw -> struct resctrl_ctrl_scalar struct resctrl_cache -> struct resctrl_ctrl_bitmap > Would it make sense for these properties to be generic across all resctrl > controllers, CAT included? Should they consequently be relocated into > struct resctrl_ctrl if that approach is appropriate? If there are properties that are common across all controls of all types then they should be moved to struct resctrl_ctrl. Current examples are "type" and "scope" that user space can expect from every control. It is not obvious to me at this time what other properties we can designate as common in this way. For bitmaps there is already the properties that are available in the top-level directory. These can just be replicated as properties into the resource_schemata, but perhaps using new names as suggested by Dave in https://lore.kernel.org/lkml/aQOUAeVP9oc7RIn%2F@e133380.arm.com/ Reinette