Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp138414lqh; Fri, 3 May 2024 16:32:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqp1GmGpvpLojIV5OCj7nr6mH7MojNDzpbmyNhd/ZhYRPLPbX1U+acCunkv/S7UzU1lTgHzmrF0Qv6dihi5Cbv5Q5htk1VYWrmafTdPg== X-Google-Smtp-Source: AGHT+IEHuo+lxloJoTeVZSfzIh4ywckpWqe9waLukWTrLTg/VFjHaC+yKUXBU6INmAYpUSLifqew X-Received: by 2002:a17:906:4a54:b0:a55:41fd:a013 with SMTP id a20-20020a1709064a5400b00a5541fda013mr2119452ejv.23.1714779140656; Fri, 03 May 2024 16:32:20 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sa10-20020a1709076d0a00b00a523ca46639si1401431ejc.537.2024.05.03.16.32.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 16:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GfBPjIia; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-168414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168414-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3C60F1F22CBF for ; Fri, 3 May 2024 23:32:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 440D983CD8; Fri, 3 May 2024 23:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GfBPjIia" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 4588884A40; Fri, 3 May 2024 23:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714779133; cv=fail; b=B8MxNHOU0nfCUej3mKCaY7/YS/El3Wu3L0/878oNsrQ4v3hZSg34b2jPH0ZiN8l+ZH2yypIJxjApOgN4Vfhe1sTKfYIzv5IxfqblJEbbG671M774lDyWwuRSF5W33qhEYnLTL8zwS1cvLpFIdGCY9AlZanfjluQsoOft0Dt5rMo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714779133; c=relaxed/simple; bh=uHaBDdr1VZxSl/kAT9C8mejPtQN10YOEkdh1deTe52k=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=Bekuj675fmpGPukJOY0bbUXcXSYRVGhBc9aWN+oOmEDea3wcP4dyYgsa7WX5YPKuEV0xgbEtcYvC+frDgbc9K3jDmihiD6+wzvcqOU4c//RajXAq453LYkkvCT7V9r7fo7L7zctccMjTMs/WHl1afKtLG1EQ/wRF9IZh+Pli8As= 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=GfBPjIia; arc=fail smtp.client-ip=198.175.65.21 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=1714779132; x=1746315132; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=uHaBDdr1VZxSl/kAT9C8mejPtQN10YOEkdh1deTe52k=; b=GfBPjIiaKv+zuyrHY7lNMaAkTA1UouDMdrnGH8bV8AcXZodmll93akQg av94pfmVTUJ5nBQpL2TeAPs2LnYMqrJG/Di59ppBXo9kUIwZs0rlrVkk6 Q4o2B9aUpaEKmgxAuqNG+T+9iHRnR8ptb+grQciyKfM0wvXyxunPYNyLO 2zg43ueI8ReSmYLPbAfpkwrOHcRmYiAGrwwqTADdRPbogLHYTFDbkVYSb cQiKi0qzlTy7lr4bYuhNmHA1G2GgRLDpqXxkVJkB/TVEbxFHuxoPn8M03 vzZwlyR7jxqBApPL796aRqhetLXq23wtnRXdyq/a14dS7MPL/thTVFFtM g==; X-CSE-ConnectionGUID: 8h5g3vJ/TvS6Ve0oE7rZhw== X-CSE-MsgGUID: oHeqTLWlTjq3l/oabFfHTA== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10529498" X-IronPort-AV: E=Sophos;i="6.07,252,1708416000"; d="scan'208";a="10529498" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 16:32:11 -0700 X-CSE-ConnectionGUID: fMCjQ9EcRvWbarAFzsjhsg== X-CSE-MsgGUID: GfrlzSinTyaPe7T70h+2Ig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,252,1708416000"; d="scan'208";a="32271729" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 03 May 2024 16:32:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 3 May 2024 16:32:11 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 3 May 2024 16:32:11 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 3 May 2024 16:32:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YEPAt1zNQ8v6BMnYL+8qSPrt9ZuKL6LWkghhI2c7xLGwTsb2PTUDsfJ0zkPXmI4wG87/mhmI1iW0qiBAtngMBdBuE0OkZ96c92tyANH5SAmJtjw5ay4t41KtGub55ofwx8CK6WtPDgA7VtFEDv5LC3FNdDb07KDuMqlNPeUJ16PtE4BO7K53qKk0OSN4dD3sTfIW6vOm2adOGxdHCqD57/BLXz2lfyFjHrotrI3MFSkSK3VM/tCget66NcVtSG6ra3siC820l8IoVBM7M5pHSAmEDj/Z4J2ErW8eVA4fL5jWfHO4e1usVwnTN0VAi1pGs+Y3ZmK8iQX+2XZhlrNOwg== 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=Qy271eixorS3EN5oR/u238pkWslZjHRtpz+amulNgOs=; b=N4YCAd8ZVQSD1Nh150cD+MalIf+MdaV0yX2phtjRzQ6LzdTwr+nieoI7YUGAW7QFzOPtm1Wm3YBBwzj5x3Jn2s91s6oPmbKeyOlYZD6+AUGmP7FkOUHup9ntv8LXOP0/JeeeC61h36nJLzLEiKIOvjT8Vr9H5Hpm2UKUIrsp5cdgUTNcO5UttNBCAWAtj8USIyOp0QSiGF2mImyfubUeJvpU8KYSwWWovc4u53rwRq+6ir56fWARcetecU3tbOJWTz1zPlKSpPlP6CxQDAdpCcoxsiasgWrsEUoRaODLp7U9q1p1Tm24piI9/nMn6DXKnE9gKh1cXAqgMMt7byYbow== 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 MW4PR11MB6618.namprd11.prod.outlook.com (2603:10b6:303:1ec::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36; Fri, 3 May 2024 23:32:07 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::b394:287f:b57e:2519]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::b394:287f:b57e:2519%4]) with mapi id 15.20.7544.023; Fri, 3 May 2024 23:32:07 +0000 Message-ID: <3149b62a-b9a4-49c6-a757-5a0e36df62df@intel.com> Date: Fri, 3 May 2024 16:32:04 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v3 10/17] x86/resctrl: Add data structures for ABMC assignment To: Babu Moger , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , References: Content-Language: en-US From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR04CA0033.namprd04.prod.outlook.com (2603:10b6:303:6a::8) 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_|MW4PR11MB6618:EE_ X-MS-Office365-Filtering-Correlation-Id: 17fb6b2d-a6d0-41b5-f332-08dc6bc93f4c 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:13230031|7416005|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?K0FmbXVvM3hCd0xkRUM0MlRJV2lrTWRObExYa3FBTGlVNW1TbTFIdTMybUln?= =?utf-8?B?L0V4QXVQV3BVaWpmQm9ER3AvOUNpYnNkQk5hV2R5amk0OHJ4S2xnSFk1eWcx?= =?utf-8?B?ZG9tcGZFN2tzclFqRFJ5bmxLQTUzVlVrbmFkTEFiVk8rYU91TmV1QXJWUjF1?= =?utf-8?B?ZEFxMmwybElaUUFpd2UwSTR2WHlOSXRsclhia25tRlZQa0hyWEY2bEtqNXRG?= =?utf-8?B?YS9Td2kyTVVGZGhmWHRUTUlXUEdPazQ5NjNrYjB1UmNoTkZTRXJSbDI3YnZB?= =?utf-8?B?cUdHSTk0cHRGSEZDejl0QmlvbWR3WVRMOFYzRnllSFlRczJUczNvTk16YmJT?= =?utf-8?B?ejFWdUNLVkRXd245MXl3MHFUb0dFTzU5R1R6dEtnYWFkODNqRm1qU2g3NUlp?= =?utf-8?B?ZjBJbXo5ZkpkaWhCSVYwZllGZXlnZU9QK1lvdFg2WjcxbzFJYndpcnMzcVJp?= =?utf-8?B?cU1Pc205a1hjL3VYZ3pROFFCTTYvNDB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6aHZRNnBjbGRYejl3blRsZVdFSU5YTjJmL2I0SFQ3MktlQ0ZK?= =?utf-8?B?SGtCakRqVW4vL0xlRGcreWdjM2h2UGc1OEVaZGliUEdqcFlTTVNtRUtEdXRK?= =?utf-8?B?OW94NXNRM28wY3ZvY3VXNzRPOStpaCtCVXVFbFVWYzNCbjhHS3lvVk1CMWla?= =?utf-8?B?elBPc0dGWmlpaDhwNjJ4dk9mOEMxbDE0Lzg3WnhmZGkyaURVZ3lGRHBIL2dP?= =?utf-8?Q?jnSFcQExnYyM4bS5+Yp0Mff1srXfKLSUvkZSLa3QiHAY=3D?= 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)(7416005)(1800799015)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cnUwUVdIeGt0WkNvK1FvaE1EVkwrYWVHdUdYT3FTNDlaRHkrZENqaiszenQ3?= =?utf-8?B?dUN0V2JyY1RYSjZ5VlZWOHNFcWljNUE5TGlja0JXV3FiYVc4aTVuSm02b0Vi?= =?utf-8?B?cUptNzJyU0hVNzdXeFdya3Y3WkVqQkJpYXRQU2NGd2w4Yk9pVWx3YjB1WVBP?= =?utf-8?B?MUlhaEFQaWYwQnBqenZGOUoybXN1YzNkN2JqQ2g3OUxUVk5rMERnZ002SzRq?= =?utf-8?B?dVNYdDdoSzUwVzQ3Y0czWHZtbWk0TUROK3YzQllhY2NMMGhpcDFJdHlLSXFQ?= =?utf-8?B?UjAvNzEzVUVjbWhXUEUwTWxmQlBncUkrS1M2V3lWd0ZJRFh5R0tYUzdXY3lY?= =?utf-8?B?cTJyTW90ekNBNU5qQ1BVeGRrc1picGF1NUo0ekxPcU1TcDMxamJ1YituTWdt?= =?utf-8?B?aUFO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b6b2d-a6d0-41b5-f332-08dc6bc93f4c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2024 23:32:07.5491 (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: SjE+aaEXOY3ReJ+SBfHA9Z1++cwqWMQ+lr5oMW16C4222vxq1vyk22/0FgK/AwzKZLq2MHN5fzZsVSBGn7Zeu2TpPq35u+uKbYydYPDDH+M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6618 X-OriginatorOrg: intel.com Hi Babu, On 3/28/2024 6:06 PM, Babu Moger wrote: > ABMC (Bandwidth Monitoring Event Configuration) counters can be configured > by writing to L3_QOS_ABMC_CFG MSR. When ABMC is enabled, the user can > configure a counter by writing to L3_QOS_ABMC_CFG setting the CfgEn field > while specifying the Bandwidth Source, Bandwidth Types, and Counter > Identifier. Add the MSR definition and individual field definitions. > > MSR L3_QOS_ABMC_CFG (C000_03FDh) definitions. > > ========================================================================== > Bits Mnemonic Description Access Type Reset Value > ========================================================================== > 63 CfgEn Configuration Enable R/W 0 > > 62 CtrEn Counter Enable R/W 0 > > 61:53 – Reserved MBZ 0 > > 52:48 CtrID Counter Identifier R/W 0 > > 47 IsCOS BwSrc field is a COS R/W 0 > (not an RMID) > > 46:44 – Reserved MBZ 0 > > 43:32 BwSrc Bandwidth Source R/W 0 > (RMID or COS) > > 31:0 BwType Bandwidth types to R/W 0 > track for this counter > ========================================================================== > > The feature details are documentd in the 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). This changelog is purely a summary of the hardware architecture. I have not come across a clear explanation on how this architecture is intended to be supported by resctrl. When would resctrl need/want to set particular fields? What is the mapping to resctrl? > > Signed-off-by: Babu Moger > Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537 > > --- > v3: No changes. > v2: No changes. > --- > arch/x86/include/asm/msr-index.h | 1 + > arch/x86/kernel/cpu/resctrl/internal.h | 23 +++++++++++++++++++++++ > 2 files changed, 24 insertions(+) > > diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h > index f16ee50b1a23..ab01abfab089 100644 > --- a/arch/x86/include/asm/msr-index.h > +++ b/arch/x86/include/asm/msr-index.h > @@ -1166,6 +1166,7 @@ > #define MSR_IA32_SMBA_BW_BASE 0xc0000280 > #define MSR_IA32_EVT_CFG_BASE 0xc0000400 > #define MSR_IA32_L3_QOS_EXT_CFG 0xc00003ff > +#define MSR_IA32_L3_QOS_ABMC_CFG 0xc00003fd > > /* MSR_IA32_VMX_MISC bits */ > #define MSR_IA32_VMX_MISC_INTEL_PT (1ULL << 14) > diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h > index b559b3a4555e..41b06d46ea74 100644 > --- a/arch/x86/kernel/cpu/resctrl/internal.h > +++ b/arch/x86/kernel/cpu/resctrl/internal.h > @@ -106,6 +106,9 @@ cpumask_any_housekeeping(const struct cpumask *mask, int exclude_cpu) > #define ASSIGN_TOTAL BIT(0) > #define ASSIGN_LOCAL BIT(1) > > +/* Maximum assignable counters per resctrl group */ > +#define MAX_ASSIGN_CNTRS 2 > + > struct rdt_fs_context { > struct kernfs_fs_context kfc; > bool enable_cdpl2; > @@ -210,6 +213,7 @@ enum rdtgrp_mode { > * @crdtgrp_list: child rdtgroup node list > * @rmid: rmid for this rdtgroup > * @mon_state: Assignment state of the group > + * @abmc_ctr_id: ABMC counterids assigned to this group > */ > struct mongroup { > struct kernfs_node *mon_data_kn; > @@ -217,6 +221,7 @@ struct mongroup { > struct list_head crdtgrp_list; > u32 rmid; > u32 mon_state; > + u32 abmc_ctr_id[MAX_ASSIGN_CNTRS]; > }; > > /** > @@ -566,6 +571,24 @@ union cpuid_0x10_x_edx { > unsigned int full; > }; > > +/* > + * L3_QOS_ABMC_CFG MSR details. ABMC counters can be configured > + * by writing to L3_QOS_ABMC_CFG. There are many fields in this structure ... how is resctrl expected to set these fields in order to configure a counter? Please expand the comments. > + */ > +union l3_qos_abmc_cfg { > + struct { > + unsigned long bw_type :32, > + bw_src :12, > + rsvrd1 : 3, Considering how "reserved" is spelled it is unexpected to see "rsvrd" > + is_cos : 1, > + ctr_id : 5, > + rsvrd : 9, > + ctr_en : 1, > + cfg_en : 1; > + } split; > + unsigned long full; > +}; > + > void rdt_last_cmd_clear(void); > void rdt_last_cmd_puts(const char *s); > __printf(1, 2) Reinette