Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10094758rwl; Wed, 11 Jan 2023 14:31:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvSjM/nnqdBhoMH8MpHNM/9w6xI4Y2bL8PkuJ50z/iYiAdNUrvdhAbGf6xBOcpiReV4wpfX X-Received: by 2002:a17:90b:250d:b0:225:eda7:13e with SMTP id ns13-20020a17090b250d00b00225eda7013emr3919033pjb.40.1673476277394; Wed, 11 Jan 2023 14:31:17 -0800 (PST) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a632a07000000b0047850bffdbdsi16354534pgq.441.2023.01.11.14.31.10; Wed, 11 Jan 2023 14:31:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BsWvTguy; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232768AbjAKWHB (ORCPT + 50 others); Wed, 11 Jan 2023 17:07:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235873AbjAKWG4 (ORCPT ); Wed, 11 Jan 2023 17:06:56 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61E1CDD6; Wed, 11 Jan 2023 14:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673474815; x=1705010815; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Zf70+LsiFkmEx/CV+0/8EOyaJ1dZUH9+NvKVMiAOe1w=; b=BsWvTguyWgPEQVblh9OeGAhe6lZ+IC61LKJ11rl1afMiBKNdwLoauZS2 KIhc4NC7onM0RrkV2pFS17yX/DLSkQ412ACLr5dZag1JBgg03sw+6ibOI lCR2Aezd/H7MwZiI4EqsLMwbXl4u+CRPEixIEQgtHjbtEUnoEO26xlIkj rbx/t2lPNDD75HTxqmW7KbperhzXQVSZNyp+7PS4g7Qf+L+VX0myM70gn S39qESTfajWAPaZqfr1gxYOD4Dj8THHYI9sAR/6YaFBlG/uyXw3HeH0La sWsNwSpKER9SK47qRha8tH2ox5w44jeJmfBotUrh7/1bbkS/5bEePj1Nu Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="350774211" X-IronPort-AV: E=Sophos;i="5.96,318,1665471600"; d="scan'208";a="350774211" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 14:06:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="765324633" X-IronPort-AV: E=Sophos;i="5.96,318,1665471600"; d="scan'208";a="765324633" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 11 Jan 2023 14:06:52 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.16; Wed, 11 Jan 2023 14:06:52 -0800 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.16 via Frontend Transport; Wed, 11 Jan 2023 14:06:52 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.40) 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.16; Wed, 11 Jan 2023 14:06:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V4jxbfTPTjBjjFhiuZQbR83b4XIEY1U+/5la2O5S1B6tK6PM6qcuJFUkQ7WO35l4mQt6bsGh9msIQb/ViWCDoM+Lbqf8nVN/oPWixLDGdW5Hp0sF4/A9ItOCzT+hx+3pRZJSQbGYyqlRVoNx2LqYTTfhG7vnX3YWeE0CSq7T121bVLJRUA0kVa5SBgkMYI8qvjQTK1q4p+VfxaQL8kFne8MciPHVMpe4s12dhsl0/tkbsGLZ/MtzoVnyHzui3mbOEUjQ7GpZsDjpog6OGEckvF3xsmyx+H6m2GdDk9QP+RjQ0/KpAlZie8xESelPQjDL+zU9H92DRyNqoVa12+9ecQ== 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=GGi1RL+iFU5AkJtYj7ERMaXWh/7u0/haXcmbzaxUsWU=; b=ZW70vA5hHVObfivVXW1fIyS3kbIP8kv0PxiSENBangoi4ayalW8YPRyLYnXIGnZAcpS37hcR9xJpv7D++VJBTukLWDAS2KWJUbyz8X3w529+MxuzPuTLLj97/iBz5hO42gd3n0L1LBa3wfN/KIG2PkocTw8Eaopm4Q/xPGMadk7JlKTozlxvRKflkaLma2pPsOxvRgc7cxMkqETNurQhhzUXmCaut+Ue1fpw4J/kz1c1gOR4pQqp21quJicXvs6rUNjmG57boIJQCEF1eRNcdnJ0cKPHqLtJrp6Tg7puQ8V6Ifwpe0C2nrUqDDkh/7E9ckUNIQbKSasJQufWno6oeQ== 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 CY4PR11MB1862.namprd11.prod.outlook.com (2603:10b6:903:124::18) by DM6PR11MB4706.namprd11.prod.outlook.com (2603:10b6:5:2a5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Wed, 11 Jan 2023 22:06:44 +0000 Received: from CY4PR11MB1862.namprd11.prod.outlook.com ([fe80::a1f7:e4c4:e60:c5b3]) by CY4PR11MB1862.namprd11.prod.outlook.com ([fe80::a1f7:e4c4:e60:c5b3%6]) with mapi id 15.20.5986.018; Wed, 11 Jan 2023 22:06:44 +0000 Message-ID: Date: Wed, 11 Jan 2023 14:06:40 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.6.1 Subject: Re: [PATCH v11 13/13] Documentation/x86: Update resctrl.rst for new features Content-Language: en-US To: Babu Moger , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20230109164405.569714-1-babu.moger@amd.com> <20230109164405.569714-14-babu.moger@amd.com> From: Reinette Chatre In-Reply-To: <20230109164405.569714-14-babu.moger@amd.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0359.namprd03.prod.outlook.com (2603:10b6:a03:39c::34) To CY4PR11MB1862.namprd11.prod.outlook.com (2603:10b6:903:124::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR11MB1862:EE_|DM6PR11MB4706:EE_ X-MS-Office365-Filtering-Correlation-Id: 9af573ba-bf92-4b10-ff09-08daf4202053 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; X-Microsoft-Antispam-Message-Info: 83pYhrAA3UQvu5y3cS98EeLTqlCJ7G2X80TxG1jXn9jS+Iytbd5cbeOMMtv4dXCRXaR1fAe5xvEwCBPTYWTQFShHvLR74xLrBkxQBIvp4tngJNwgd2MRqPJ2vhoNsK2TUBHNy+VnjqMsxrCGc39PevJ7I/ExlH4Re/UbsQL8xtBm33vF3OJTUycGAqjt7cP9a4jmeZst5+fUolHe3GBA3WpDszVByQZwiAfTew/jO8cbaNS4TeXOd9PGrt1hR/qTpV9dmjUapxjWnc7Q4Xp19yiNt0R+v3s3klgsKw9rJOdBp5yIj2L4aZ/EKgVFgOKgfclLxSuiNI1kTB5Gz19s5l1sUmEIj/3PVI3WdxmfXRwO2OxbKqn97gZdvsnNo33rgMsW/NoP8Z6oazKdAiz9sCaA4e5r3pvrZ0YNeHrtSUe2N9Yw3cY263W3MhIaaluET4wyJeVbc5VYimh0w36qKt6qc/7HtvjnQkKmiKDI4elIjrDTJ90qYllZzUMQN3hStkecfRxSZiyVHDRVH9ZT+HwukXQSrrD9OYYY1NLortGXnNb35GZ8Rqnmn1PM+XUrvV12TQy8mCMJOQaBtO7ScvtwPV0YfkiVj0EO7gxwqSIA73tfkwXE2Ctb5lqb9ITDXGuFRQeNOf4xG37HI0W3ycwyBH3/uWZWrKArUlgx4mL1PPMAuuKHIj17lyC6F/Lmm40PyJ1SInUOkHaqSLQBOTeJDIc721PtIU0k6K5dBjY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1862.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(136003)(39860400002)(366004)(396003)(346002)(451199015)(66946007)(66476007)(66556008)(4326008)(8676002)(316002)(15650500001)(2906002)(5660300002)(7406005)(26005)(8936002)(44832011)(41300700001)(7416002)(36756003)(31696002)(53546011)(83380400001)(6486002)(6666004)(478600001)(82960400001)(6506007)(38100700002)(2616005)(6512007)(186003)(86362001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R1NQR21YTFp4SXJ5c2dFMXBvdmpPRWlqYWgvLzlDdTEyK3Ivc1BRdU0wTFg1?= =?utf-8?B?VTJrdnFiQTNvb25LK1R4MTREMnNWRjhMUTNlVWJxK1NEdlJuNkxBMWJDL2U4?= =?utf-8?B?dG1yVlhTWGFjY3FOMDhCOFZUR0pLR09ZTFJRTDhoZithMTYyOWgxSHQyek55?= =?utf-8?B?QkJpc0FTQmFkUVNaZ0tjL2d1Z1JzdU4xeGtJZmlaQWZDU2pUYWJ3N3JCODRl?= =?utf-8?B?QXZuMC9WY1VKYk5vRVEvWmZ4VUZOMzhjNUREMGUrUG1aVUhtc3pmMXRhbVJN?= =?utf-8?B?U2pWWXV1c1pOTGJIZTlndk02bFZTbFowQ2ZCUGtoZ1o5bnBYQjhsYWViTDBD?= =?utf-8?B?ZTRnK2FIdmRsUFYrNXhKMCt5ekJabEdqNENBYTJMRENiaUJGVDhQTkhmSnJT?= =?utf-8?B?VjlvS2hzakZiNWtIZTV5YWo3ZWNIVjBHYVhxQmZqK2xQRUFTKzBPaWo4VDVy?= =?utf-8?B?dmU3TFZqa0VYbU8rUTI0UURQYnZHSldIUVRUL055Rk01Yk9nZTkxVllIclkx?= =?utf-8?B?cmpOQ0ttdzZNL3c5S0RWMUNCVjJueUR2ejlGeTZ5dU9KSWpCSmFEQ3BzREVM?= =?utf-8?B?cjZDQy9yUVBqWVFzazNPSUxxNEZnV3ZramVjMDJpSUtOTWd4dUVKV1J2bDBk?= =?utf-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B?bWwvai9rcDJGT09RYXc3UUU0djhQeGlqWlhWRzAxV2hGUk1pY0pYOW04VTJV?= =?utf-8?B?T2gvOVhWODVvUnplQ2dZVW81bTB0TnZLT0ZCakVHNS9yUmFuRGlSeGtuMGNq?= =?utf-8?B?T2ZGZFZxenNBaTNBamN4cERuak5xMjRVY0wwTkhBMVNFTVFxa2tsNzlucXZP?= =?utf-8?B?cEQ1T2xqVk0wZzgvODZIWDhTbnRnREU1aUVlS1V5SmxyeDZmNUNuSXpVVytD?= =?utf-8?B?bENtdzY3aDBPRkh1amMzd05kYkdWRnJaaTZvYzZra2xJeTZqOHBzSFVJUXZy?= =?utf-8?B?dWNGQzZXQU9FaG5wKzZEbjM0NjZkUHhnUUwyVURCY242eWFNbEg0enl2UjE1?= =?utf-8?B?WHNzbjZOTHNFZi81L0thQ1h5TFVjM2FXaEdRY01Ub2xRaDcvUW5SK2g2ZlZU?= =?utf-8?B?L2hidEwvNXFCQkhQSUN4S3hlZGNxWW1Ia1RoUWh2RSs5QVZ4Ry9XeXkzaytR?= =?utf-8?B?U1I1a0t4RmpDcGR2YisvblQwYzExbGxKZ1A0ZFVTVG9zMEUxV25IazdZaldW?= =?utf-8?B?dE9GdFlkRlVBS3pFN1dRempIUlEvbWhWSFlGbnFmYVkwc2V1TVFiQWx2VUht?= =?utf-8?B?Y0E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9af573ba-bf92-4b10-ff09-08daf4202053 X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1862.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2023 22:06:44.6907 (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: 9LEVQknpxdWupeVWYHaE/8IHS4DV3A1uHIjvhZP9bFcdL3fMRyhS1UhTUd2+of7WXcppLsfmA56eqs1alf+GYuj9kv7yympffthFzHQwHCc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4706 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Babu, On 1/9/2023 8:44 AM, Babu Moger wrote: > Update the documentation for the new features: > 1. Slow Memory Bandwidth allocation (SMBA). > With this feature, the QOS enforcement policies can be applied > to the external slow memory connected to the host. QOS enforcement > is accomplished by assigning a Class Of Service (COS) to a processor > and specifying allocations or limits for that COS for each resource > to be allocated. > > 2. Bandwidth Monitoring Event Configuration (BMEC). > The bandwidth monitoring events mbm_total_bytes and mbm_local_bytes > are set to count all the total and local reads/writes respectively. > With the introduction of slow memory, the two counters are not > enough to count all the different types of memory events. With the > feature BMEC, the users have the option to configure mbm_total_bytes > and mbm_local_bytes to count the specific type of events. > > Also add configuration instructions with examples. > > Signed-off-by: Babu Moger > --- > Documentation/x86/resctrl.rst | 142 +++++++++++++++++++++++++++++++++- > 1 file changed, 140 insertions(+), 2 deletions(-) > > diff --git a/Documentation/x86/resctrl.rst b/Documentation/x86/resctrl.rst > index 71a531061e4e..2860856f4463 100644 > --- a/Documentation/x86/resctrl.rst > +++ b/Documentation/x86/resctrl.rst > @@ -17,14 +17,16 @@ AMD refers to this feature as AMD Platform Quality of Service(AMD QoS). > This feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo > flag bits: > > -============================================= ================================ > +=============================================== ================================ > RDT (Resource Director Technology) Allocation "rdt_a" > CAT (Cache Allocation Technology) "cat_l3", "cat_l2" > CDP (Code and Data Prioritization) "cdp_l3", "cdp_l2" > CQM (Cache QoS Monitoring) "cqm_llc", "cqm_occup_llc" > MBM (Memory Bandwidth Monitoring) "cqm_mbm_total", "cqm_mbm_local" > MBA (Memory Bandwidth Allocation) "mba" > -============================================= ================================ > +SMBA (Slow Memory Bandwidth Allocation) "smba" > +BMEC (Bandwidth Monitoring Event Configuration) "bmec" > +=============================================== ================================ > I expect that you will follow Boris's guidance here and not make these flags visible in /proc/cpuinfo. That would imply that this addition will have no entries in the second column. Perhaps this could be made easier to parse by using empty quotes ("") in the second column to match syntax used in the existing flags as well as the cpufeatures.h change? If/when making this change, could you please also add a note that documents this new guidance for other resctrl developers? Something like below but I am looking forward to improvements: "Historically new features were made visible by default in /proc/cpuinfo. This resulted in the flags field becoming hard to parse by humans. Adding a new flag to /proc/cpuinfo should be avoided if user space can obtain information about the feature from resctrl's info directory." The rest of the document looks good to me. Thank you Reinette