Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp519816lqo; Wed, 8 May 2024 07:04:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxpuV8/FecwX2/M9YlN7z935feQz6aTo5G4PSaB6Kp2yocgDj7lWmCQrXO1r+vIUkRXdItRozc5Hs9a7Eb7PNoM6lNh35ylrcAwSFTrg== X-Google-Smtp-Source: AGHT+IGPYbHaFQ6B9LoPutCARLlDJ96r5zU5i5IUD+YGtAgiJ8Z0eUhYpTNCoy4i+AmjjJCw0Nr1 X-Received: by 2002:a05:6870:d608:b0:238:c6c2:2f1f with SMTP id 586e51a60fabf-24096d01267mr3080700fac.0.1715177064188; Wed, 08 May 2024 07:04:24 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cm17-20020a056870b61100b0023bb140f6b2si5131066oab.108.2024.05.08.07.04.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:04:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=selector1 header.b=ptiBfmJO; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-173373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7132828982A for ; Wed, 8 May 2024 13:57:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7904F84D2A; Wed, 8 May 2024 13:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b="ptiBfmJO" Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (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 A058647A5C for ; Wed, 8 May 2024 13:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=67.231.148.174 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715176617; cv=fail; b=m0/Gg+p6qE0lxR9qc8g1BFglLE/Wd48yi775eurnrbaDMsvGifmeScl+eOc8LPVdtLFHSzeorijVGkLC/+MGby9hf9Yz/2bnaFWdp6shH+P75A51ru5zXfxOrfkLDPfkgbWzLaYfubzjARrpSOsVyfrFy+PpKpUGo9gu6yWpkBs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715176617; c=relaxed/simple; bh=iWtY/Q9wvbdgL5kn7w637I3Bzcc51g81GSww8muCj5w=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=fQU6w/UfXSIc4FhmLGQY8h5aDgcYE7zlx7SpJV2dh3PBSn+QU5lAdmRRusqy45NL53sIgJvg0FiJWRV7pRlC6SsjIokeBbKh/b3HvuhFFVjgzqWyB66MVVWawE9r1YNH2Z3pJagE0bt9wIdhroanhG3qIEYi8YlQHkCELHal5zE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b=ptiBfmJO; arc=fail smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4485JhhX003184; Wed, 8 May 2024 06:55:47 -0700 Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2040.outbound.protection.outlook.com [104.47.56.40]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3xysfmkhes-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MzoW55eHyeJwWYrYx/q9k3PWh0437QCUz2CRbcss0Yh+wxqJuyl5KywDcV/6t2QCCMKtfd85H/JoQVEi826BbzqoQYILs2Lohy5djjlBFlLXNTENdWXn1S8dA4tP4y1E6ByvtD6LpdxooQjjuw3hhlWLYw3yWZjXjTaPFIS2hkkzYZi6PqvrJaBzUSimHrw2AH0Hxh+t5iFk3ZFUET23EMqeEPN9EXOVcdOlSyhQlIWtSwPvCnwrkoZ92WTUj+JQ/SdLoosuTO3jwj6XDFuGm36KWr82sTh/EGtnqZLdn+8+l/eJ3iZQdPQLIaQHaL7KR4D3WuZa2Ig4L3KR9DSm0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=9dAtI9w9R00myZXV2DbGEGV5npMcfI6FFGBoD2KP2FU=; b=kVHAqoy/JzzFnTiXru6rqElmOkhOEqzNkER3RBi5Lj+fM0DQ6Vk8f35blmZzWjuWu0ZasWwnbdtr2j5rXc1srbZPKj/XxoRdiHwCQJ0hDcbPoATtvyKwHLift7ZDwBA0+hFnjBEZ64/Dzfu1sNHv+MolJmzhzsrMWDHo9nryoqR1rWOb79C7A384ihBVSXbRpoICdddujBSrHTMnKCmbliV+vNqi44Z3hEFAC6Jd9oWSC/Lpu4OKIZ5n97iPBSnRIm5YntVSuOmtA+SzyM73h4boScwz3bXHs+8Zlo7YyahrEAnmDN7gC7VhfGMDhaq5qnNIGQpJ19EZIm01RlHLiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9dAtI9w9R00myZXV2DbGEGV5npMcfI6FFGBoD2KP2FU=; b=ptiBfmJOwm6Pc81TKEqbujiI0YBKmgHCjHudZUQI0yf2hu32FzDvP3stoPb68zMcKL1H3XD5I4vOgVL55EUFTzaR+m+qkTJGbEb9sO+jWdtQQqT+w4jGxX0/Pvx7a55JzFcu4+HJKt4s39ASteXD5mviW9KGAJ63/2EEgsjT5sA= Received: from MW4PR18MB5084.namprd18.prod.outlook.com (2603:10b6:303:1a7::8) by MW4PR18MB5208.namprd18.prod.outlook.com (2603:10b6:303:1bf::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Wed, 8 May 2024 13:55:43 +0000 Received: from MW4PR18MB5084.namprd18.prod.outlook.com ([fe80::1fe2:3c84:eebf:a905]) by MW4PR18MB5084.namprd18.prod.outlook.com ([fe80::1fe2:3c84:eebf:a905%5]) with mapi id 15.20.7544.041; Wed, 8 May 2024 13:55:42 +0000 Message-ID: Date: Wed, 8 May 2024 19:25:33 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 13/14] arm_mpam: Handle resource instances mapped to different controls To: Peter Newman Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "fenghua.yu@intel.com" , "reinette.chatre@intel.com" , "james.morse@arm.com" , George Cherian , "robh@kernel.org" , "dfustini@baylibre.com" , "jonathan.cameron@huawei.com" , Tony Luck , Dave Martin References: <20240117141405.3063506-1-amitsinght@marvell.com> <20240117141405.3063506-14-amitsinght@marvell.com> Content-Language: en-US From: Amit Singh Tomar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0140.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:6::25) To MW4PR18MB5084.namprd18.prod.outlook.com (2603:10b6:303:1a7::8) 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: MW4PR18MB5084:EE_|MW4PR18MB5208:EE_ X-MS-Office365-Filtering-Correlation-Id: 3de417cc-e647-4a8a-5c39-08dc6f668d1b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|7416005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RFJwWEhPNitBVThpWlgvSlI5bGgyRmxYKzVxaHAyZEZyOXBpMXA3dFJtYVNi?= =?utf-8?B?MHFXNkw1Qkpva3VvcWRMQUdTb3Q2SzVHVXpIcndoUGJ1Yzk3MHBpT3g4eUlr?= =?utf-8?B?UnJhblRiWlFTWFljWDJOSUo3bHAyL0ZZSkVEdDRMK2ZjeXBxUlFId09iMmxi?= =?utf-8?B?REhwbTJRZTcyd2x5YklKcjJGYWpiT0wrZ2ZzUitNaEw3eGhNWlVObFAyMXNp?= =?utf-8?B?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=?utf-8?B?aUxiOXVpM3d2aWN0b09MdzBraCtaMUM1V2lHcHRWTmVTcXo2V1M0aG1vOUFN?= =?utf-8?B?alBjem5PM2R0c3J6aWRDY2xDYWJJYzhLaGJuTGs1UjZwakhzdlY2bktyOHR5?= =?utf-8?B?dTlYRzlEMHVKa1JQOGVaNzJzMkw5NmNXRVgxYmdkaXU4YVQ1emRpRUU4Y1N5?= =?utf-8?B?MittVGFTZGprOThJdXZtTm15WnRMUE45STUvbW5ZNXpTd0sxVEFwalZlQzUz?= =?utf-8?B?dk4xZkgzc0hlNlMvSFRVWUwzRkNTUnZwMkw5NjBiOEtvc0liMml0aTYxTEdR?= =?utf-8?B?dVg3ZERFRFBPOEovTHMzT015NDZ6ODhuTFlOTmNpbDBGNzdCbTdZZnpmNDZx?= =?utf-8?B?MU1MZzlJcTZNZHNSNkdicUFDTW9XWlJRRklObEhWVVRRclBXL3hIb2NiQ0FK?= =?utf-8?B?cHVRbWIrYi9xK1VtR0R3dEFFV2FxM2Q2d0w2UitTRkNXZzMvRE5WNzBkOWRG?= =?utf-8?B?b3ZQRldFMllSYkNCRkJQWDYxYjhBY2gxWkZ1eVd6eFI3c3gxVVV6b2NkbUUr?= =?utf-8?B?SFcyVXhmR0lyT1krSThud3JycmxtMXMvb1ZVMnJpTjFNWFRWcDRCL1dnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR18MB5084.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V3NFRnoza2p3aW9WS2tvZHhvYXRaeFZuNFpmd0owMjg0NkxKcjR3VU0xQWxH?= =?utf-8?B?NHBIdFhCbzdzbTlWVHUrdlRnTXdTenN3bTZPY0Mra1I5Nk1vczI4T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DVTeCs3M1ZNR2tnUDRJcVJMT1F6T3hIL0xRUTF6c3lZOXN0TGJnd0oy?= =?utf-8?B?T2RCTzQ0eGxqSHQ5cXRwV0Y0b1A1UmJMenhZWW5aU0w0TWdoVlh1dkp4OC9j?= =?utf-8?B?Vy9QcGlXNUxrYWRsVzFBaXRsN0VQUnVZNndkUzc3cFU3QSs5Qm9HNHZqMDRp?= =?utf-8?B?eDg3NytkNGNLa1ZVelplVWh1akFKQ1BNMUZDUk1ZTlc3RlB5UzlyUlFMamtx?= =?utf-8?Q?rlySNXVivAPnTnB5VTC8Ztqff?= X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3de417cc-e647-4a8a-5c39-08dc6f668d1b X-MS-Exchange-CrossTenant-AuthSource: MW4PR18MB5084.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 13:55:42.8236 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2WgcqsZ43ZQD8O79nNmMscHiXgai6eTHw4DL0zqSxO75HGzHtGCyfkVlHplYCaq1+I5c4UPb3ip5qrgXO/TfeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR18MB5208 X-Proofpoint-GUID: XRJ849u9Xpkd_-pKGo87d9XIay1BniWn X-Proofpoint-ORIG-GUID: XRJ849u9Xpkd_-pKGo87d9XIay1BniWn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_09,2024-05-08_01,2023-05-22_02 Hi Peter, >> >> It looks like "club" is used as a synonym to "class" here to evade the bigger issue that mpam_classes are not defined correctly as DSPRI resources should not be in the same mpam_class as the L3 CPOR and CSU features. >> >> This hardware makes it clear that the definition of mpam_class as all resources in a (level x {memory,cache}) needs to be revised. >> >> On Marvell platform, DSPRI control register (MPAMCFG_PRI_NS), and Identification Register (MPAMF_PRI_IDR_NS) are implemented within the LLC MPAM block (the address range contains control and identification registers for CPOR, and DSPRI), and therefore we treat DSPRI as one of the L3 resource. However, suppose we approach it as totally different standalone resource type (PRI) other than Cache storage resource type (CPOR, and CCAP), and define a new MPAM class type for it, there is no standard way to discover this new resource type (PRI) from ACPI tables. >> >> I'm concerned about accessing DSPRI related registers, if we are going to tide it to new MPAM class (as we discover whole L3 MPAM block using firmware tables, and tide it's resources to L3 MPAM class). > > This is becoming more of a discussion of MPAM (and resctrl) in > general, so I hope James can participate. Also I should point out that > when discussing MPAM, "resource" refers to a non-RIS MSC or a single > RIS-index on a RIS-enabled MSC, while the "mpam_class" structure in > the code is the counterpart to what RDT (and resctrl) call a resource. > > From my reading of the code, the consequence of (RIS) resources being > in the same mpam_class is that they can be programmed uniformly > through a single schema line in the schemata file, so > __resource_props_mismatch() goes to work on eliminating any resources > (and extra control granularity) which are not programmed exactly the > same way. This function seems more geared toward big.LITTLE systems > where the cache controls on one cluster are dissimilar from those on > the peer cluster and would need to be normalized (James, can you > confirm?). But in this situation, it seems like a better idea to > present a separate schema for one cluster's controls from the others. > For example, "L2P" and "L2E", with non-overlapping domains. > > In the case of an MSC implementing RIS, the controls are independent > by definition, This greatly relies on the implementation. For an MSC, identical control may be situated at two separate indexes, each with different attributes. For instance, let's take an example of MARVELL implementation, There are three different resources at index 0,1,2. These are enumerated in TAD_CMN_MPAM_RIS_E: 0: MSC 1: LTG 2: DTG LLC MSC, resource at index 1, and 2 possesses cache portion partitioning feature, i.e., If MPAMCFG_PART_SEL_NS[RIS] is set to 1 (LTG) or to 2 (DTG), then MPAMF_IDR_NS[HAS_CPOR_PART] is set to 1. LTG resource has 16 portion bitmap, and DTG has 18 portion bitmap (mapped to same CPOR control), and only one can be configured. so I can't see why the work done in > __resource_props_mismatch() would be applicable. > IMHO, __resource_props_mismatch would be needed for such cases. Thanks -Amit