From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 875F529C325 for ; Fri, 5 Jun 2026 16:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780676446; cv=fail; b=uDegif49JyBsXjkOEvTzDJIjPJJe03qhhERbgu9YFiB0nhzTvwpvfRaykr4RfxaJTKGqxBt+SjxhXK7YdKKG8RKlnvrFfQtgMR+OIBevGYrBATSHxyYTpvigV/3cGbaFJIrdVCGl+CdcXjIWqO6V4Y3sW8p7zNSMouubclgbCRs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780676446; c=relaxed/simple; bh=D6pkOXcySSSkkFxSWceqL4H2tpgSR+NGSj7314+KxHQ=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=RaST1sBnPS9LQFucLjGuPwOOs2JZcgJGYBR1P0SnYtXl3P9EZKDiP5eB25uOC7NdoI7Wq0ghpQgy/XzEZe28O5xI0wMHwurocyfRYauSZ3IjCj/hAEAYyO8WyErieIov7sJc71QS9JOzRnqCiK+Y7lwkSXqv8oqOrrei0M02P6w= 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=e8MEZetb; arc=fail smtp.client-ip=192.198.163.11 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="e8MEZetb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780676445; x=1812212445; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=D6pkOXcySSSkkFxSWceqL4H2tpgSR+NGSj7314+KxHQ=; b=e8MEZetb556rXIBmT7yTUHwOFCxvTKO6Z94Swo0F1eTuCrMRoABWZf87 ggDMezHB2EbCGxsPi0EgZONSP8hFGOU+VSyJqP3Uf8gc4QsLRu9MXZPz9 Q+Y8lGnj9fopp9byWVBFvC+Tj+FhSln8gpSVPeMORrJw5j67iFHgR/yj8 gi0Ol+nAgdv18VBoBFGNtmMs5CXmrLpQNu+9mOQm/jG5eXdXZINKA4G1Y 5dJuSJIXl+AiB7O6AQsrWifO6RVIid1nkwCtX7ruTaxmRLsIPA/7E7WeA oTyA4zRFVxjPbDpnXHqJy9rR4L5YOsEgaIQ8PF5JDIoj9MPRS2Dn1lZua A==; X-CSE-ConnectionGUID: 9jyctQz4Q/mlgRmr3mKA7A== X-CSE-MsgGUID: UljLbZ+GRXO34uLXpT684Q== X-IronPort-AV: E=McAfee;i="6800,10657,11808"; a="92080621" X-IronPort-AV: E=Sophos;i="6.24,189,1774335600"; d="scan'208";a="92080621" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2026 09:20:44 -0700 X-CSE-ConnectionGUID: EcuT6e2ORE2aWGpFPxTpEQ== X-CSE-MsgGUID: q3ZgwhjrQQOG/Fz2yImTlw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,189,1774335600"; d="scan'208";a="238531196" Received: from orsmsx901.amr.corp.intel.com ([10.22.229.23]) by fmviesa009.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2026 09:20:44 -0700 Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) 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.37; Fri, 5 Jun 2026 09:20:43 -0700 Received: from ORSEDG902.ED.cps.intel.com (10.7.248.12) 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.37 via Frontend Transport; Fri, 5 Jun 2026 09:20:43 -0700 Received: from CH5PR02CU005.outbound.protection.outlook.com (40.107.200.4) by edgegateway.intel.com (134.134.137.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Fri, 5 Jun 2026 09:20:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kyOLTd+Pe07L7EHlyPuVCbbkuWjB3G7mQxJWJiLjtI4gpZKYpVwMAVxegA/guvzpS+LBnxLO7tAI0qKaP2M+a2XpeKsfX8SXYgCXerqsAJs08yAD7rdFpVD33a73anTD+UUskhS6coHBE60oWEM5s6m0UubUnSbbtCuHVd2JRPEB/TPkuM7E28COw0L+45lNWSze7zmKm6wWB8p1TNjie60sa9WcHlOjK0R/c4tv9FlJT8oe6eyuwooYk7ehPclubdyA31zW5T8+kaJN3HAb5ZNPHx73ElA/CKCtXBniJZU+kfZEqSl3hzEUQ1JmAHkF4YLd7BDqPt+ShYr9UqSBEg== 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=vf8qO0uzLTur3YugdnIdmNYW4GooALJris2nQK8ZSRM=; b=GH040eABAN8Z3U9Gwo+Jo6caut4nWbtqXtIytFHPwCUgZA8zxpakv41fJ+mdaLL2Mept5dNpIp6Zz6/e7iHnb1WiTc/nJKrTC7lw6WRXI6IeUOXrL4XEgCIzLZI2eUYlZzaZ1NA9s2jErTO4T/5QeuMnRFpm8OAaX/nExUd6Aif7bLNAm/TNGkJRFucwlSVJ4f/ZNO9+iE2B4XCpN9CtM/G4j7p4wahRKge/9Vqen2Nxmx7Q0Dx6tXtUtZpxj4jzuDBKnFWjGaoLktfgtVwMzPM/2u8hcPh49RhiI97QOE0zP2JLtsINwacRHYSsl8vxEQ6I2fL2Su0O0gqUGELRSA== 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 DS4PPF6F32BC4DA.namprd11.prod.outlook.com (2603:10b6:f:fc02::2e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.92.9; Fri, 5 Jun 2026 16:20:37 +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; Fri, 5 Jun 2026 16:20:37 +0000 Message-ID: <93203398-89cd-454c-bd6c-72c97d4c8564@intel.com> Date: Fri, 5 Jun 2026 09:20:35 -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> <773353e8-b2a7-4c20-b6fa-195b0b301107@intel.com> <90ae82da-02b2-4058-8c1e-f16df3226d8a@intel.com> <96499899-5586-4a98-b8aa-80c8e47ed125@intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR02CA0013.namprd02.prod.outlook.com (2603:10b6:303:16d::13) 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_|DS4PPF6F32BC4DA:EE_ X-MS-Office365-Filtering-Correlation-Id: 8dd719cd-5dea-46fc-cfec-08dec31e607f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|3023799007|6133799003|4143699003|56012099006|11063799006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: gR1afKvl48pFybE++In3ISblDz/rO0Om5GOjW5gYP7YYqbovrVes92dibvaE+p6hEyK/L+UR2L9kSFHq+BlIaky5bgbv8rcqlY0XcAckmMagI5RRjFfJRnJ/yA6O9KfFews5DsBnGQhV6W02xKft4qrw9Yve3v7nIJMvgF6a5Ft3agH2GU9rN/ruzJKHQZrGn5ZhuegPwUfo4Aj2rJ8w5RySPbg8grNlGKnhT+BfKISLhXSwx0ME0AANAxf50cy/9FrffjsC3T/ChvmU6ZL3nHUUqIdJuGyZFh84CcsQ5MoLCE5m23OtkO17u9HEipkIrJWgbfi+cEbG5TTFiR1jWpQ3CetwJwB45eJbfMP+a7KBY2qvcOAomIEMHZOR0/aGyqKFeBpPHzLKbc7d1Uz5enuzowdpfpV4bdyhVXNuhupyuqLYkYv49Oa1LV34z4SU8+1qLt0Zj/ZdIaURZ2QURbFvuTQKkfAhjImXtlssnoAxni8mQrg9fjPq+xJ/vgmBnp1UCq5QEjPg7Pua7RTzuozZwoG/X7aAbldh+tGPdDy7xmS4svhohH+FKfr+uOOxEqwpsWdU6aNmgF+/ZG12aKQB2tsiFmJR0Y/dxpadhHKYYqYgx8/apfq1rTpBHHYAhgoTtV+ULo76Ngp7xo70bQq3CDm7NX73dBTFCCHdMR9CegqF9a8NOUsNH1X8FAAj 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)(376014)(7416014)(366016)(1800799024)(3023799007)(6133799003)(4143699003)(56012099006)(11063799006)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SDE4NmkvQnZ5WktqVndQQTFaZXZ1eW9ESmFLMVFtVWZiMXBXcmxHOUpnZnhF?= =?utf-8?B?RXBTUStab2NORHJCa0hqZnNhOEM5MWFiMG9Cbk1LQVVqSFp0blE1ZHdYMnVQ?= =?utf-8?B?UVpIcFJ2NnpmS1c1S05RWlNsaExvMStzQWRsSlRHYXV1ZXM2c3ZLNllmUnJv?= =?utf-8?B?akQ5Y0daMXVqYkMxbEVlOG9MYTgyUm8wTlY2cEpXRzBFVHh2NVVSTXNrTHha?= =?utf-8?B?ZlMzYkQ3c21EZW5YRGl4ZTFRQ2JQeFRtaXJMOWt6bTVVaG1sc09LeHNxc0w2?= =?utf-8?B?VzhzTjRhb1U2dHN3bjh2TmJMNVRPRW02cm5jb2piK1dmUGc1eWRwL2pJRHAy?= =?utf-8?B?YTlGdDJKbUZhQ211eHZGdERBSXBrMmdXSnp2M2xYazJ5VUVlV3Juc25DcEJs?= =?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0tvNjBOUDJxNnp1U3czZ2NRczEwakln?= =?utf-8?B?a2lzWk1aZ3pKVkhBOGZ3cExmakdiTGk5TjdrSTJpbFg0WXBOcmlhb0JnU1BD?= =?utf-8?B?SFpIRmdaZWFLUFdKZGw0ZHBEWHhyQ2pjNTk2cjcvdzBYMkllaWFXVlpiNlg0?= =?utf-8?Q?6NT84OyehHVuRJa0=3D?= X-Exchange-RoutingPolicyChecked: FX8aKEebkUT2YnKx3SdPy8fG3XgCuykQ85kEB75n9P/5OxYqEv3CauWDUNQ5V2UdzJax3r6RE3JXkTRYm+g0D/tr4qP4YQ6K4fQCD8LUTNVxxHzTMf8PmXKWeg6zpzkYo5g4NPehjce0DNW6WGoxJdPoDGoFStnjdH2IGncb5DnrVRatGRDMiksaxXzAKZAmc4xYau1pnjosNBOxqE82Lxu/hocgqf+A3Lnev8WG5yt9hsTg8KUprUf6cqp+0oR2988urjTivLQFfm8/7CA51JZSitgAabp/BwV+0xUT26jw+V6Xv7IHCwCf+CG1P15kjvxjaE03z8+EWdGNlUTbOw== X-MS-Exchange-CrossTenant-Network-Message-Id: 8dd719cd-5dea-46fc-cfec-08dec31e607f X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB8370.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2026 16:20:37.1116 (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: euy9Vv08jyVyvaiRsLZ5JnjvHNfoAQ9u4xqv5LiFUICk7K8rEfVjBfMCmEuvjdad8zlz2Oy06oTOgVVVjSYei0Mtb7tde5sFexKHhjTvjjw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS4PPF6F32BC4DA X-OriginatorOrg: intel.com Hi Chenyu, On 6/5/26 8:43 AM, Chen, Yu C wrote: > Hi Reinette, > > On 6/5/2026 12:37 AM, Reinette Chatre wrote: > > [ ... ] > >>> >>> OK, the type field serves as the primary key for querying other properties. >>> Alongside the "type" entry, there also exists a "flag" property. I haven't >>> spotted this field within resctrl_membw, though it appears in resctrl_cache >>> via arch_has_sparse_bitmasks. Would it make sense to introduce a dedicated >>> enum for this flag, or alternatively reuse the existing bw_delay_linear for MBA? >> >> I realize now my previous answer to you was incomplete. You are right that there >> is a plan to let the resctrl "type" file contain the schema type as well as >> optional flags. This plan is unchanged but at this time it is not obvious to me >> what flags this implementation should start with. >> >> In the original proposal [1] "linear" was provided as example of a flag for the MB >> resource but as I worked through this PoC whether a control is linear or not seemed >> to fit better as a resource property. This is how I ended up with commit >> bdcd8ac6e946 ("mpam,x86,fs/resctrl: Make memory bandwidth delay a resource property") >> >> For this specific property I expect that all controls would have the same value. This >> worked out well since resctrl already has the per-resource top level "delay_linear". >> >> We can surely move this back to be a control property and have it be the first >> "flag" but at this time it seems to me that all MB controls would just have the same >> flag value? >> >> Perhaps the safest alternative would be to keep it a resource property and just duplicate >> this as a flag value among all the controls? I think this is what you are suggesting to >> reuse the bw_delay_linear for MBA. This would not result in dedicated flags associated >> with controls but it may set the user interface up for most flexibility. >> > > Yes I think we can simply reuse the value of bw_delay_linear when displaying the > "flag" field for each controller under the info directory. > BTW, would the L3 controller have similar case that, all L3 controllers of the same > resource share the same value of "flag"? If yes, should we also move arch_has_sparse_bitmasks > to rdt_resource? If yes, I'm not sure why we need "flag" in the controller. Whether a control of type bitmap allows sparse values or not does seem to be a valid property of the bitmap control to me. It is difficult to predict how this will land since I am not familiar with a resource that has multiple bitmap controllers. I do think having a controller type support different flags in the interface exposed to the user does give resctrl most flexibility for the future. With the user interface having that capability the internal implementation can always adapt. Reinette