Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2936425rdh; Wed, 27 Sep 2023 18:51:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi6c3/tiothxTtjX4bEC1KSIMbQzO4wNcEhTQXwTCLYt0mO89i97HxsSA1sJIJrCBHpyMl X-Received: by 2002:a05:6a21:a590:b0:136:faec:a7dc with SMTP id gd16-20020a056a21a59000b00136faeca7dcmr5056292pzc.11.1695865863641; Wed, 27 Sep 2023 18:51:03 -0700 (PDT) Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p1-20020a17090adf8100b0027540ebd2absi19018222pjv.187.2023.09.27.18.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 18:51:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MK6OonyN; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4E0BA80569A9; Wed, 27 Sep 2023 15:03:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjI0WDo (ORCPT + 99 others); Wed, 27 Sep 2023 18:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjI0WDn (ORCPT ); Wed, 27 Sep 2023 18:03:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F12E102; Wed, 27 Sep 2023 15:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695852221; x=1727388221; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=nP5KeBZ++GBFuUQwOi88B4EexeyffhuA4OkrcJgWkjQ=; b=MK6OonyNPZUAfFCEqyQoy60Depq0ggWc34LN4403zCMakYbtooI3aEKx S/2EFYKwRNoytfU9xghIHR/rOwkmgjqkjw+wlpbx2FWcdNCx67YHq+6o8 8ZIASP8dDDQhiWFFmklpwjAaoMhtEiHSlrFszjk78SOKQdqKHdG0/IXAo BO8qztKMAuZWkp4gmtJyM++FKOTNIX5boDy2YSPBCkrV8M+Gx7S7iaNlu mIM/8W4TtnVM+n2Ei+MNlMUiYGkas+TCZ6PZeHvVRRsnUOZ0b7lYW+T6g MhGjqNKEz7vs2J+JXhuytHT2llJeNwrYA27KRYAvaAjn+8Sr/ETxhs1CJ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="385800479" X-IronPort-AV: E=Sophos;i="6.03,182,1694761200"; d="scan'208";a="385800479" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2023 15:03:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="819612742" X-IronPort-AV: E=Sophos;i="6.03,182,1694761200"; d="scan'208";a="819612742" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Sep 2023 15:03:06 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 27 Sep 2023 15:03:05 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 27 Sep 2023 15:02:56 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.32 via Frontend Transport; Wed, 27 Sep 2023 15:02:55 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Wed, 27 Sep 2023 15:02:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O+0Z+yZ09HlrcXHevXqBQhqgNs7m3ziLdfWzdIEhxPiYdL+n472flC59QosFZahTugJrqNAdPLNRtEMOEM92VUYW+p6KmmOlbSbfdIrDSRPuVXeSv4vl4K1hRQ7AeIjcWfA2Iv3OEAK8gQF/hs5F23kLnQhtpMdZiT+WXf3VaVAcwYevQX3b7s+pZye0/o/vyV/bFEYqGklXepzwftxWlcZC0DEd2Zn0FRA6IvsM6jEL/mzsuJw9PAIP6kNUX0Gp08eHYWtD93usPJfxdJfxnNhmRB89RDi+/KWcWJb95OYTizm70X8ElKUcKBMiSPuH5RDvlT2/apG4987r0cS2ng== 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=2LE9HBvmAL9Y7elD8YJLlZXfB7zPM4JAttFLLQo6Mbw=; b=Ptq2UKVCkee2FbzK9woYOCS9czlB/Ib6qlzII/Sc+9RFS/RDujEz+cX7jGDzo9smrvqvadJxiPWMNqUNyRxLG89l0Z8qyz1Vp5+prRPiXkRRDTj//v/ZJswDzZ9bWj/BnY47ycr1eU/oLGDWxafOR/IPOcljMtmgxpeNCnjrxfJXs+1iSrZ3IhkIzmNnSQ4U38/ucmKgO7MlVbvy9kgw/5tym9l0eIcWwYyhvN9aB6qbPzWiuV8YrGxsKcPRL1KC6j5+Iv6E/WYh1xqqBTxAkYqciRCbbaWpa0fwsaxSmhqVO3TEOChl4CA1MMZmpba8xDSPb5anvzCdC1zp4ysDcg== 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 CH3PR11MB7915.namprd11.prod.outlook.com (2603:10b6:610:12f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.21; Wed, 27 Sep 2023 22:02:47 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::bd70:f215:4a97:c84e]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::bd70:f215:4a97:c84e%6]) with mapi id 15.20.6813.017; Wed, 27 Sep 2023 22:02:46 +0000 Message-ID: <8e6fec2d-2262-1f62-8c4e-cedfa8459434@intel.com> Date: Wed, 27 Sep 2023 15:02:42 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.15.1 Subject: Re: [PATCH v10 09/10] x86/resctrl: Add support for the files for MON groups only Content-Language: en-US To: , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20230915224227.1336967-1-babu.moger@amd.com> <20230915224227.1336967-10-babu.moger@amd.com> <031ef099-a7d2-37ce-eb97-c4f7d76a12c4@intel.com> <7c6dcc06-0b6c-a346-c7ff-60da3fe59fbc@amd.com> From: Reinette Chatre In-Reply-To: <7c6dcc06-0b6c-a346-c7ff-60da3fe59fbc@amd.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW3PR05CA0015.namprd05.prod.outlook.com (2603:10b6:303:2b::20) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|CH3PR11MB7915:EE_ X-MS-Office365-Filtering-Correlation-Id: 8edc0dde-fe38-4479-3985-08dbbfa57b9c 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: 9w6+FnRehqfWzJ50RX6woP/wNtRrVQ0c7Arkrgd9wWDbAUlGMGFF2QG3MHi0euveCqt0ur6ClYywYIg70x5bVITvoM1t91LkZuvj0UscB9HCczSpvJyivgg5Z2qw8qrptvOsAz/OYYNTzbWdkc0OzyBjD1Sc9Q73AJ7fmmcbTcTTUZBDLEp1u/YbTXOwhYAjfiDct1nszCwwMqqdgDN6ejf0/SZSDm2JmNtH8nyILWMiFq4nOSjSS+88599rzCw4z2YYyehO5kouDg4GvO6K5CXBN+FJ1VGYfreCp0/KQvqWX2D9EbtZzWH036ZYG6tMazbHAqi8LE0dfo23vFKIB1EFt/vO3yhBrufb++9wxrmHjmsiheA5IrbHGPeot3REou+pOxBxvjoF2e0m25KaS+rQvGYvkZ29F6DwMIeUhmmt+S2w1crAEr27YJxELQeDQHdG4UBUN1GGHcXs1S5KVBVZR7nUnCwCjDWryua9DNcVXb5uR6+Q48RFRymoxHujrD73cx7u+FOp/hUOdluKRNK0AAiITa2RIPxPQpd8R50G529l5V73RuyXFz5niCLj3ZPAvxmoWdZO/wBBBYVjarYdAn6ta1H2lzcm/UYV5OEJ8ldJW9xxtWj1hB6YsLsW2snd2Uh+j8aSYg23NBX1ZA== 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)(39860400002)(376002)(366004)(136003)(346002)(396003)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(36756003)(66946007)(6506007)(6512007)(478600001)(26005)(2616005)(6486002)(6666004)(38100700002)(53546011)(41300700001)(316002)(82960400001)(66476007)(31686004)(83380400001)(7416002)(66556008)(2906002)(7406005)(86362001)(8936002)(31696002)(44832011)(5660300002)(8676002)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Tkp2NjZkM2dTS2ZqcysvRUVrOVBGaStEalViT3Ric3FMT0g5TlhhVXFNM2U3?= =?utf-8?B?aU94UURqOTNyQ3FpeTJYVElKYmg5R1RIRDdhWG51YXVlQ0pQMG5qNTFUY3Ro?= =?utf-8?B?NndRNjNQQWJrSmxPcDU2RC9iNW1oYVlDQlE1Y3RGYk9xNWxzZFFmdTdrblZz?= =?utf-8?B?YjdYSngxU1E0dmt0TFR0MTlHUzF5TlNlWnNlVHc1emIzbmdoZ1hLSUdnSmZV?= =?utf-8?B?NS9Oem1MTWE1d2dBRWxQY0JmSGE3OHpjVnpSaFJVczlzQ3JHYUJldW8xSmsy?= =?utf-8?B?OEJOTS9wcXFMWGNxdHVZVzF5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B?cTZuNC9aSmQ1VGV5YWQrazhSaXpqNXJKQU1OdjhXSjVqVkRsMWNHSEJkL3pH?= =?utf-8?B?alE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 8edc0dde-fe38-4479-3985-08dbbfa57b9c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 22:02:46.8888 (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: CkmROXm/IbqMMSFcasw3hZYxLOjh7wjE+vDtwFBlg3QCAU5coEf5jPg8w7OhIk7iQEutC4umpV/kXAunGgK2YGfeFYXSh07mT77ckFkuHX8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7915 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 15:03:59 -0700 (PDT) Hi Babu, On 9/27/2023 2:34 PM, Moger, Babu wrote: > Hi Reinette, > > On 9/27/2023 1:34 PM, Reinette Chatre wrote: >> Hi Babu, >> >> On 9/15/2023 3:42 PM, Babu Moger wrote: >>> There are 3 types resctrl root files. >> Considering patch #4, should this be "base"? > Sure. >> >>> 1. RFTYPE_BASE : Files common for both MON and CTRL groups >>> 2. RFTYPE_BASE | RFTYPE_CTRL : Files only for CTRL groups >> If (1) is accurate then I cannot see how (2) can be accurate. > > How about ? > > 2. RFTYPE_BASE | RFTYPE_CTRL : Files for the CTRL groups Yes, this is accurate. Even so, this snippet does not seem necessary considering the changelog rewrite below. > >> >>> 3. RFTYPE_BASE | RFTYPE_MON : Files only for MON groups >> Same here. > > How bout? > > 3. RFTYPE_BASE | RFTYPE_MON : Files for the MON groups Same comment. > >> >>> Files only for the MON groups are not supported now. Add the >>> support to create these files. >> This is not accurate. Files "only for the MON groups" are >> actually the only monitor files that *are* supported. The >> problem being fixed here is that monitor files are >> not supported for CTRL_MON groups. >> >> I made an attempt at rewriting this commit message but I am >> doing it quite quickly so please do improve it: >> >>     Files unique to monitoring groups have the >>     RFTYPE_MON flag. When a new monitoring group is created >>     the resctrl files with flags RFTYPE_BASE (files common >>     to all resource groups) and RFTYPE_MON (files unique >>     to monitoring groups) are created to support interacting with >>     the new monitoring group. >> >>     A resource group can support both monitoring and control, >>     also termed a CTRL_MON resource group. CTRL_MON groups should >>     get both monitoring and control resctrl files but that >>     is not the case. Only the RFTYPE_BASE and RFTYPE_CTRL files >>     are created for    CTRL_MON groups. This is not a problem >>     because there are no monitoring specific files with the >>     RFTYPE_MON flag associated with resource groups. >> >>     A later patch introduces the first RFTYPE_MON file for >>     resource groups so fix resctrl file creation for CTRL_MON >>     groups to ensure that monitoring files,    those with the >>     RFTYPE_MON flag, are also created. > > Looks good with slight change(only last para. Rest looks good). Just removed the "fix". > > A later patch introduces the first RFTYPE_MON file for > resource groups. Add the changes to create the files for CTRL_MON > groups to ensure that monitoring files,    those with the RFTYPE_MON flag, > are also created. > "Add the changes to" is not necessary. With this and removing the "fix" it can be summarized to: A later patch introduces the first monitoring specific (RFTYPE_MON) file for resource groups. Ensure that files with the RFTYPE_MON flag are created for CTRL_MON groups. What do you think? Reinette