Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp199244lqb; Thu, 23 May 2024 15:32:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyRZ6CRBcEdu++1Jypd00+cVYHIgGM5YSy5rX8qQceAYHsD4iyf42b9sH1/JqA92dUAonyFm+tR8nOhnbK7W5ZgSdvEX1P+xuvM9cMWg== X-Google-Smtp-Source: AGHT+IGD+8AOxMD2Sce050hgAwqz1UmT9ncVD7W65cwcvlRJYap+HzkZd+6wD9dqfOXuznMnZd0n X-Received: by 2002:a17:902:f2d3:b0:1f2:fe82:21e9 with SMTP id d9443c01a7336-1f4494f1e05mr5740605ad.46.1716503526100; Thu, 23 May 2024 15:32:06 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c788042si1447075ad.47.2024.05.23.15.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 15:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jHVSQ3tu; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-188075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 AD48D2852DF for ; Thu, 23 May 2024 22:32:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F8D982897; Thu, 23 May 2024 22:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jHVSQ3tu" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 354EF101E2 for ; Thu, 23 May 2024 22:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.7 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716503518; cv=fail; b=fClI6eNmzgffxbRB3c+Bb6XoFW2TfTlgG1/s/Kk5YTSxVfgoXyMIeNqrSkUuzRScssirGnd2ywnou99oO/X07CjNspwvTmcKoBi6eOhHgf5i7qS3lQjJWylG/NB6QPt8iKPWGAAzEV4c0Ak7JalbV9CX8QRJhew6wC/ukxK8yd4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716503518; c=relaxed/simple; bh=khFMwyfOD/3cCPjdTWCOYSua2lCTrhe9Vm4CawPuI+c=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=CxnUy0V/7cnwr2NWnDrWqr9T9wV1j2Bdxtf156RkgcRDmfakyclMkACHC8Zkiw57PrytX7gVbhKNJuUZKZJs6bcNQYBUonGjSso+Pj7nQgBxpqxFX/DaKeTRwkbnZcLpSwtFiXlak9jytokZLOSy7q7SrwoIIHt4XElnRO3z5KI= 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=jHVSQ3tu; arc=fail smtp.client-ip=192.198.163.7 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716503517; x=1748039517; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=khFMwyfOD/3cCPjdTWCOYSua2lCTrhe9Vm4CawPuI+c=; b=jHVSQ3tuRkWyE/19WGI7mHOhYCW4irDfZbiuhoQtjq/DXyqa9akgL/NV KrnBXrP6JuUqPMh48NGLOY66c5Tw53UF0o/ss8tAoTpuWEvWlC3JS1cIL DXoOkNwEtODTuE6cM3LMILFkhH/jS/AyWlT4JNPou+uGXCbXivc7Dbv5e IFkILvGCAfGQ/WIHNkFnSQTa4aXwZrtjwDk4+9CkgFPVnRco9efyYRD5f h26ij1rLpNs4y6YoqS8z/czYPnryURLKUX2pjZ0LByw/aY1154fDGwLn1 k1vRUlOah56ed7OJEKBcaN0HqMUV9INyxNTUnpop8c7VJFAhGGzULA7JJ Q==; X-CSE-ConnectionGUID: CPvVlJqXSuWrgZejy6I9VA== X-CSE-MsgGUID: YSqkRKDOQ4CAa3/Gf69AqQ== X-IronPort-AV: E=McAfee;i="6600,9927,11081"; a="38240080" X-IronPort-AV: E=Sophos;i="6.08,183,1712646000"; d="scan'208";a="38240080" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 15:31:56 -0700 X-CSE-ConnectionGUID: PS9X+8SsTiiE7KGzJBxbUA== X-CSE-MsgGUID: MQ5+9yUDTwGvFm1u7ypmEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,183,1712646000"; d="scan'208";a="38615582" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 May 2024 15:31:57 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 23 May 2024 15:31:55 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 23 May 2024 15:31:55 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 23 May 2024 15:31:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aPZ9CiMdGTLgWioi0orZMC7e5OWJXL2KntPuGFIFcy60jZeoIIdKkR3CUse4Z1MCN0PT2Skxbde1BS3Yoh7SDK58c4GF8yoeL2eGZQ4TpYG6NRvqRUqSjoM969woPGgEsV19xwecsptiMQGVX5iST0ywTFHwXOFpgKQEhGPbJ9l9sQTCpLY4Vshx3ekjvCTuc5UpDC85IkkL105ZNx8XwnidmOalNV0C577b7imohVCOm+PZAqlO9TBVtwjc43rCD0fQgM1tdtSGyeQNVZ5QpSsDEg0g+ipDLoONxeElb0c2PW3wzlHwS2QaFDndh/rgXY80cypWqi+9yJp6Kn/77A== 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=TOkfCTXHStMro/pD/M3FIB+PX4MlJvNV+ZmLjJ/g0m8=; b=mIHqRbA0nlJ+ln65JTAixkYTw2+aeTEudMiTjSIEbgMBy9yk1Lb37FL3y4CjSToNtQVUEe+RvLiRHykI+/iodmxl5WDl6cwTlwdjDSHcL5IJT13SznnZ/STPZHi2VDcCfKDEEYOiKEcD9AWnLB0Qj5ciDy3BZSNP1UAI5xg+eV/BHnotXejmzCJnHXOTI+e4PPOgp764rDlvFM8YSrkOQ0xKNYvIRaNKWLENsqMpynuJ7dSpyzggrEKohz2jVaocXkgHlS/AeoY4FDws2AYbs+6RjFneNEx8w70U34216CjSc1vWAALXJPbAnJW9lQa0Fck04PnWg00FWIv+UTRckQ== 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 SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by IA1PR11MB7811.namprd11.prod.outlook.com (2603:10b6:208:3f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Thu, 23 May 2024 22:31:48 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf%3]) with mapi id 15.20.7611.016; Thu, 23 May 2024 22:31:48 +0000 Message-ID: Date: Thu, 23 May 2024 15:31:45 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v18 06/17] x86/resctrl: Introduce snc_nodes_per_l3_cache To: "Luck, Tony" , "Yu, Fenghua" , "Wieczor-Retman, Maciej" , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" References: <20240515222326.74166-1-tony.luck@intel.com> <20240515222326.74166-7-tony.luck@intel.com> <013c9532-cacf-4604-b1d9-e90fdc80e7dd@intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4P222CA0018.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::23) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) 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: SJ2PR11MB7573:EE_|IA1PR11MB7811:EE_ X-MS-Office365-Filtering-Correlation-Id: 2eb9e202-3c66-425f-52a5-08dc7b78223e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?QVNEMjMwY21TOEVoVG5uSTFYK2Z1MlR5MGpjMDlCcmQvamdZb0lUNE1OYU5S?= =?utf-8?B?Q3lEZVQ1aTBQWTl1UGw3d0UxQWdKRzhreWlydXA5M2hncW1kb3paWmZjN3o1?= =?utf-8?B?SW1hMVpkQWVRK2duNGJUb0p6YXRxeU44Mzk3S2hTMEZjSDVCUElFZ1FrSVN2?= =?utf-8?B?OENocEs0WW0zVU1Tb0Jjbys2T3l5YktKTHNIYktiamk3ckNTK2h3dmduZ1Bn?= =?utf-8?B?Z3VWMjRUOCtRZVE3RmFURC9LYjFaM0t2Q2Z0RVNhMGo0VEwwRmlyV2JDcmtI?= =?utf-8?B?R1dXMkNDRjlCUWtyRUNweWYvUTRmaUhpdVVkN0V1VFZNY2dIM3RGMU11REdF?= =?utf-8?B?OStSRy9oRmNiY1BnbERVNUdYNVhGb3BTSkZ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3ZMNzBuYUtDTnBZUXpWQWVSZVFn?= =?utf-8?B?RGFqc1dNbERnNWdoMG5TRzhtTytIdmZpY3pteFdHekFSN1BuMGdkZFYvNjdx?= =?utf-8?B?ZldpUFJTSHlTWTNzdHZ5NnQyYVRXNVE3YjUwSENYVmVmTkZ6elJsYkJLRkxq?= =?utf-8?B?RUJvem9ZZHBoYnRpWEZsNG5TTFhaMGNVSVQyUHZGOU5SUXd1bkZtTzdxQ2R1?= =?utf-8?B?SitJVkZvTjJFbTQrSE9ESitUVnRFaWlhYjg4bkl2MFlqQnh2Tk1pLy9kKzEy?= =?utf-8?B?Y2wwb3U3cllEQStnYzdmK0dHemdKQk15UHpWb2hIYThqVXdXL0ZzbUd2VmM4?= =?utf-8?B?d3B1bm8vdTRPQ1dVYmVXLzVMMXdmcEtLWlAwaTZGOVNMM3hDWHFaWkFSUzJo?= =?utf-8?B?dXFkMTYra0dkMDBZSDFNVVlGK0hwWmxaNmJUOSthMnk4bDZEcG44YUVRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NHJENmVKdjY1U3Mzb3JRZ1Fmb0FUdGphWm1RMzVZUmIrTDl2WlhUSmtpMG1Y?= =?utf-8?B?VU51eXpXaG80Q29yMVd0UUVOekdsMXR4RTJ5aXJDRGJxb0JlMmhLMHFnYlY0?= =?utf-8?B?MlhkR3hNNjIyYm4yRU5OUmFYb3VQTUREeWEwTUtyWVBwM0o5TGlzMU1sVWFE?= =?utf-8?B?cVpNaGgrVWREeHRUcjJrTHNIK1R2OTUxSmlON1pZS0RCNFpNNTkxMWxldm9V?= =?utf-8?B?eEJReHFGK1hN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NTkpBWkZ4Qnpu?= =?utf-8?B?QkdUdU9RMVV2WXMwa0pJekdoclVoTGdCZHFJRnk3UXBua014cWcvZHhjQVhF?= =?utf-8?B?RDlOT2R4K0JTSWpTQ3llY2IxSWRlTE1ibDQxV1lLV3YzdGRvNHlVeVBjU2VC?= =?utf-8?B?L1E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2eb9e202-3c66-425f-52a5-08dc7b78223e X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 22:31:48.1647 (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: IB7VDu7lz9ToNDUbAByLPsQ+Btir9ag4KmwEaIwt2nv1EuCnZ3oou0l/zzWMluvq7eFbg0Q5thtg0ZxR/uMb71yaRjGBbWtzlJ29CaQbG1Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7811 X-OriginatorOrg: intel.com Hi Tony, On 5/23/24 2:25 PM, Luck, Tony wrote: >>> I'm also contemplating dropping snc_nodes_per_l3_cache from being a >>> global variable and making it a field in "struct rdt_resource" (only needed >>> for the RDT_RESOURCE_L3 resource). N.B. Babu had suggested it >>> shouldn't be global many patch versions ago. >>> >>> Perhaps name it .domains_per_l3_cache or .subdomains_per_l3_cache? >>> >>> Bad idea? Good idea (but you have a better name for the field)? >> >> With the check in supports_mba_mbps() changed I do not see >> snc_nodes_per_l3_cache needed by anything but arch specific code. >> I thus do not see any reason for the resctrl filesystem (or, for >> example, Arm) to know that this value even exists. >> >> While struct rdt_hw_resource is a place to put architecture >> specific information it does not seem appropriate to force every >> resource to carry what is essentially a system wide (not specific to >> resctrl) L3 specific property. To me this really seems like an >> architecture specific global setting but I'd also like to hear the >> motivations why it should not be. > > So (in arch/x86/kernel/cpu/resctrl/monitor.c) > > static int snc_nodes_per_l3_cache = 1; > > Set and use only in this (arch specific) file. Since this series initializes this value in arch/x86/kernel/cpu/resctrl/core.c it is not clear to me from just this one line how you envision the changes. Just to be clear ... when I refer to arch specific and filesystem code I am considering how this series integrates with [1] since that is the direction resctrl is headed in. Being "arch specific" thus does not require that it be moved into monitor.c - it could be added to arch/x86/kernel/cpu/resctrl/internal.h where it can remain after the fs/arch split. It will be very helpful if you view your series while taking [1] into account. For example, when looking at [1] you will see that mon_event_count() and __mon_event_count() are resctrl filesystem functions. When you consider that it should be clear that adding an arch specific get_node_rmid() between these functions will make the arch/fs split more difficult. Reinette [1] https://lore.kernel.org/lkml/20240321165106.31602-1-james.morse@arm.com/