Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp506587lqs; Thu, 13 Jun 2024 17:57:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfolsgWx8AqC22pSpCLED1aGLUVta+ChLOQUNSNkKbPf5q2+qQqxWvThdo9cFc6DIS/Ei0sqXCk/rSu7eXlXWKfyra9dfKXBjKNZeBCQ== X-Google-Smtp-Source: AGHT+IGp6BgsgbgSSGAcX2f0TEMqgsQ4jPDbG9AP+UiGFVRSy8fALW4oofKV0vkxG2SLSxv7a9eT X-Received: by 2002:a05:6871:b10:b0:258:4d7a:b4b1 with SMTP id 586e51a60fabf-2584d7abc4cmr27196fac.58.1718326642667; Thu, 13 Jun 2024 17:57:22 -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 d2e1a72fcca58-705ccb3bfd4si2571963b3a.177.2024.06.13.17.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214160-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=VFQChuSQ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-214160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214160-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 D7FC4284032 for ; Fri, 14 Jun 2024 00:57:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 595063D66; Fri, 14 Jun 2024 00:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VFQChuSQ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 F34DE801; Fri, 14 Jun 2024 00:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.9 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718326627; cv=fail; b=qa9qgkegjt33l/L5j84b8scB9g3zlWcofZNgCchW6Z1uDZdhh+MhTpWSdQiLqA6QcqUb6EhGD+Nz+TAXFqJ9SMJUNnhzlrJhAEtc8bwUepRQXOssU3RhurYfpFlV+PgI0NHIWcikIwQLOhDlsDpMYzbggJBaSAJZeuK8xXh62FQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718326627; c=relaxed/simple; bh=FQDMEUFEtLSsLGlQXaKYIRO7PxGG8Kl3gxC7WsKB1Fo=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=qHzfqNe1TIEWwJWUDpaNzJou/94VwsUiHPXsAJsB73nvbNr/o2WGKbHYng4F9okE7dYzWth9yxRpll1HkWifjWeXRza9sVrmkaE7zEz8UyQnMVHPEuTaI23dTv09fGoMIBOSuQ661P7Hfajz/K7zyL1GlSTs0D8vLMxTH/N/HvQ= 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=VFQChuSQ; arc=fail smtp.client-ip=198.175.65.9 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=1718326625; x=1749862625; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=FQDMEUFEtLSsLGlQXaKYIRO7PxGG8Kl3gxC7WsKB1Fo=; b=VFQChuSQGOJJDduyjtN8jxDG5y/Egp6CTskQDf4U0DZySO7H8ZFAkKLx yaqUeNzJ/L8V0wk1yC6nDkzTCoWNMiRyN/G/mQeaznByU5EFAAHMCDXgf ai9ndC/GfxM7c4dfk3rFLqfWAfLU4mxeHRSGje2lire4t7A+FVaexgbLd ORx3zoJZV48o3X260/t2ftTZVdapSQziZJfqZivYwLhM6Pth4cTpW5Wq1 WUDkrCO5q7bGhJ7+0WXJjzV5Y5jxqbrc3T4xDesPIOpiPQGxj6N8bBEYj D8KGOGqNa14DUVVSbcKKYJpl0kyzKyH6MuzSwTRL4WsI5wadQmp0m4R2P A==; X-CSE-ConnectionGUID: NE/pbwv5R9SNaWDFPMZ7Pg== X-CSE-MsgGUID: x71M5gszQu2fFzrqpfxMeQ== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="37717476" X-IronPort-AV: E=Sophos;i="6.08,236,1712646000"; d="scan'208";a="37717476" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2024 17:57:04 -0700 X-CSE-ConnectionGUID: SIUgM0VVQfm5zid8Q+yDbw== X-CSE-MsgGUID: VSZ0k5N7SQmomIOmB6SG8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,236,1712646000"; d="scan'208";a="40191618" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 13 Jun 2024 17:57:04 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 13 Jun 2024 17:57:03 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 13 Jun 2024 17:57:03 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) 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, 13 Jun 2024 17:57:03 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 13 Jun 2024 17:57:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jcRYyf7URC3hTT7Z9Su5+wJNoofG3uyRFExl/0Ytee1ohKvsBMtrxsrIEwq9n0Cfr+RhThyro85x5EZp+iG6zhwtZ1d491mNh/cwTIZEAf4s8LvmiWjHqURiY+IoShV9hRBlHfdfuDx0NRiolaUJjdH1u/D/AeL7kv+qU9xOOUiDD0YeEnD7frKEcemR+WwOWsY9okYFU9DP8ikyhFnfWSEqllfG2Zel/VbDqC9anRI2fTgteBiV324P4eIUGqjphgb/mW1IhbMoWFMVdk4ycaLdAGr77p3nWlix0ZrK2T9RnLDurpmCz5kRhDdaSjsLA+bP/ADTReeqjpaPDkqBow== 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=WkYxDdlPnroxL9q9N24KyEHREFs7zpVgQVyjgbdcx3U=; b=Aizr9N3l+ridLOLyLRcxrZuh1MBq8XIYmSqXiebahnmnIX4XJZhXWZp285mAEZxlkBujGuphV+J8SWmhfWdr2Z/1Ha4hI2T8Z/98nUDuxx59ZxmZc8LRRexpsyWzfW049w5m4pYvb3dJmcWoGtKls01ODMsdaNo/RBfrKcgp5Is4mdZXHNZcFLngWflTMTnlnLiNla6mZLPdTS6nIqskQmOJqwfgLrsHhT6Lbb+qeEoiJ7fknYQdwqx83fyaCNDBlmRR4IWacByp4JFbDSr683hi4IkkjNJUQAodGAqQ2l9akyxb9pyRoj946H2zEJlGzPxbyEplyu0TJOqjeSR5iQ== 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 MW4PR11MB6861.namprd11.prod.outlook.com (2603:10b6:303:213::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Fri, 14 Jun 2024 00:56:54 +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.7677.019; Fri, 14 Jun 2024 00:56:53 +0000 Message-ID: Date: Thu, 13 Jun 2024 17:56:49 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 04/19] x86/resctrl: Detect Assignable Bandwidth Monitoring feature details To: Babu Moger , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <0a73504f355a8b0b0b3d32f6c0e0b8909c552340.1716552602.git.babu.moger@amd.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <0a73504f355a8b0b0b3d32f6c0e0b8909c552340.1716552602.git.babu.moger@amd.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW2PR16CA0034.namprd16.prod.outlook.com (2603:10b6:907::47) 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_|MW4PR11MB6861:EE_ X-MS-Office365-Filtering-Correlation-Id: e1b7ff26-60fa-4be3-2310-08dc8c0ce16a X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230035|1800799019|366011|7416009|376009; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TXQ3VDYvYnpnTVFhOXk4RHEwNERsV0dxUlBtQ00wZXNNcjlGU1creWhiMkZF?= =?utf-8?B?ZGFLSXM2UVVDYlFKU3hHT0tRSC9xa0xucjk2TnVmTldqVFBxUzJUeVBzbE1Q?= =?utf-8?B?OFNWaTZkK0VSdER4eXZ2TWw3cEhUbDNxa2RyZFRxQVlpY3pOVjB3RU8xRTd2?= =?utf-8?B?SmdyTHlUaWg1YmdLMFNKTUM1T0VpMmN3aHN5SitMa0tpb2s5VU1SbWFtZ0o5?= =?utf-8?B?W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SDdu?= =?utf-8?B?bUpjOGxUWHNKYlJaUkxKOFpzYW1IaytwWjd6MDZ3aDZXNWgxeXlMSDdJQ0RP?= =?utf-8?B?MHZ2YkJwck1YNHhGaEwzZlRZQVpuVk9wOWFOOG1lTE5HZ3o0cDErSzNlNUQ5?= =?utf-8?B?QUdhWUJGTFBsU2N6NTVzUWhMY2pwZXhqa204aFI4NTVwaDFIa0pQTmZnUnRD?= =?utf-8?B?UHpBOElRV1g0Uld4cHZnTlpPaUxYRzV1SktPams4ZzBDelBJMnJBT2FjdE9n?= =?utf-8?B?Q1pjVUppeExwSzRLK1ZqZ1owSS9RMkZzSUtkU01iNFV3YUlCK1JlZFJOd1Zi?= =?utf-8?B?S0xIcGpOYzg5bXBxcGxlaHRsUStKZ2pnV2U4MEZsM3BjNnc0NXdNWDF3cVEv?= =?utf-8?B?Zk1wM2JJOWNVVU52ZVJNdzZYZE56c2kxSnNXVldLWU1qN2F5WkNqUktVenQ3?= =?utf-8?B?RHBoYlUxSmQ2dnl4UzVES3hqK0ZEazcralZEZzI5ZTdXcGs0ZzJIMnNONHNW?= =?utf-8?B?b3pTdXdua3FjdEI4QXpBcENVNHUwLzk1dnYySHp0RkRZTzBpVDNycjBSZ0sy?= =?utf-8?Q?1RsDku3XL6xakMFI/lez?= 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:(13230035)(1800799019)(366011)(7416009)(376009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aXNCam1oem9YOGc2bGFpYlgwOHQ2TkxXbkFFRlRwWmVNQlZiSy9kRDlBcFN1?= =?utf-8?B?ZFdTRGl5T2pMWENZMVFPWjRFVmo4TlJSVHovU0Vya0M3ekRoQ28zNVhjTGVH?= =?utf-8?B?TFlK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XNiUzZraGRmN1ZoSmJYTlBnOXJV?= =?utf-8?B?MkV0aWI3OWFTMkVGTUVhRGdXbUxIZE5NTFhHejg5OVVjeFc0L25XY3J2QXA3?= =?utf-8?B?b0UzTGFkbUZZdE5vRGxSNjJBUVd0MnE0NFF1czE0K0xZTldBaHcrRjlVK1Rh?= =?utf-8?B?TjV0ejlGNmU2UWgvQlRJajNnNEQwWGpwTWFWY3VDZFB3UitFeGZDU28yLzBE?= =?utf-8?B?clJzWkkwT0QraUtvakJMVEJjcmlOenhhbUczL0RnejBVV2ozMGdMUTRaZjUx?= =?utf-8?B?MlE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e1b7ff26-60fa-4be3-2310-08dc8c0ce16a X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 00:56:53.0007 (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: Xw7W1Ju7Q4BaLMFZ4ouaK15cLKcGb3GuwmqEqao7PxpobYTGxamjFhTEajtdjzwGWM1eyXQ2bqeD7LbhXtgBJtVTikdM8lD1TGWCK5VL+v0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6861 X-OriginatorOrg: intel.com Hi Babu, On 5/24/24 5:23 AM, Babu Moger wrote: > ABMC feature details are reported via CPUID Fn8000_0020_EBX_x5. > Bits Description > 15:0 MAX_ABMC Maximum Supported Assignable Bandwidth > Monitoring Counter ID + 1 > > The feature details are documented in APM listed below [1]. > [1] AMD64 Architecture Programmer's Manual Volume 2: System Programming > Publication # 24593 Revision 3.41 section 19.3.3.3 Assignable Bandwidth > Monitoring (ABMC). > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537 > Signed-off-by: Babu Moger > --- > v4: Removed resctrl_arch_has_abmc(). Added all the code inline. We dont > need to separate this as arch code. > > v3: Removed changes related to mon_features. > Moved rdt_cpu_has to core.c and added new function resctrl_arch_has_abmc. > Also moved the fields mbm_assign_capable and mbm_assign_cntrs to > rdt_resource. (James) > > v2: Changed the field name to mbm_assign_capable from abmc_capable. > --- > arch/x86/kernel/cpu/resctrl/monitor.c | 14 ++++++++++++++ > include/linux/resctrl.h | 4 ++++ > 2 files changed, 18 insertions(+) > > diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c > index b35d04fc761b..1602b58ba23d 100644 > --- a/arch/x86/kernel/cpu/resctrl/monitor.c > +++ b/arch/x86/kernel/cpu/resctrl/monitor.c > @@ -1066,6 +1066,20 @@ int __init rdt_get_mon_l3_config(struct rdt_resource *r) > mbm_local_event.configurable = true; > mbm_config_rftype_init("mbm_local_bytes_config"); > } > + > + if (rdt_cpu_has(X86_FEATURE_ABMC)) { > + r->abmc_capable = true; > + /* > + * Query CPUID_Fn80000020_EBX_x05 for number of > + * ABMC counters > + */ > + cpuid_count(0x80000020, 5, &eax, &ebx, &ecx, &edx); > + r->mon.num_cntrs = (ebx & 0xFFFF) + 1; > + if (r->mon.num_cntrs > 64) { > + WARN(1, "Cannot support more than 64 ABMC counters\n"); if (WARN_ON(...)) > + r->mon.num_cntrs = 64; > + } > + } > } > > l3_mon_evt_init(r); > diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h > index bf99eb9c6ce4..24087e6efbb6 100644 > --- a/include/linux/resctrl.h > +++ b/include/linux/resctrl.h > @@ -153,10 +153,12 @@ struct resctrl_schema; > /** > * struct resctrl_mon - Monitoring related data > * @num_rmid: Number of RMIDs available > + * @num_cntrs: Maximum number of abmc counters Maximum implies some limit and it is not clear what limit this applies to. Can this just be "Number of monitoring counters". Thinking ahead ... when switching between different "MBM modes" it may be that one mode has a different number of counters than the other. Since "ABMC" is just one mode it does not seem appropriate to connect the "num_cntrs" property to ABMC. > * @evt_list: List of monitoring events > */ > struct resctrl_mon { > int num_rmid; > + int num_cntrs; > struct list_head evt_list; > }; > > @@ -177,6 +179,7 @@ struct resctrl_mon { > * @parse_ctrlval: Per resource function pointer to parse control values > * @fflags: flags to choose base and info files > * @cdp_capable: Is the CDP feature available on this resource > + * @abmc_capable: Is system capable of supporting monitor assignment? > */ > struct rdt_resource { > int rid; > @@ -196,6 +199,7 @@ struct rdt_resource { > struct rdt_domain *d); > unsigned long fflags; > bool cdp_capable; > + bool abmc_capable; Shouldn't abmc_capable be a property of the new struct resctrl_mon? > }; > > /** Reinette