Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3036721rdb; Fri, 22 Sep 2023 16:31:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFnBg0+oGmDZTDdsoenYec8kDc1zzRZ1qLAuFTRKQNU8byQWy2XlsQCXJZlbtY5yW0Jst3u X-Received: by 2002:a05:6a20:a31d:b0:15e:22a4:b897 with SMTP id x29-20020a056a20a31d00b0015e22a4b897mr690238pzk.10.1695425498360; Fri, 22 Sep 2023 16:31:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695425498; cv=pass; d=google.com; s=arc-20160816; b=H96916FdrkhjRR3Ur3I3Oj5Iu5x8LnSk4+NFEyDxJ1jDicv7qnMXhi0Zts/G3Gg4NQ zFlUXuN5+BrChfzonAeywYLMCogFutJS7VExRmrd5/mcjG4zrpvQRFq9NhrYM5umstxP nNa8BmWoaWIxCJR/PuNbnCG2cnvGdw0cOkUqMSs4/ve9cdtpktBa5uW5AZa1LlcpvbZq ZaSdQayFzy1OPqOQC/pHV+1oYFyeHIn6QY/Ws43raYnHvzdXgfr4zk9gbVzJYp1NrSoG ukPUPOXGGPhuH9ydY9AqFzGCjXOadie3Tkrr7MzhwH8pm+YabHQwgpyKp2yTlbjZrJxe LmDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject:reply-to :user-agent:date:message-id:dkim-signature; bh=SiGHJdESJcBO19/1vuxeOg+jHN36hh1LOGeHV/zE9jg=; fh=IzBaHHz/WH1gIEL/hLsZXZqNSg9XVxGxcO1eV/A3gSM=; b=LkjPnHBNNnwOOZTI71h4spVNlDnT0oCyooksynJPQP/70wEawxYS2sQ6qKsJ+aC9pj fzVe+KsB4GGOmvVRU5P3daNHgxU0YbW/felI/EWF/dPJTfjL/5ndpYHm4m5eUyMTujFT LyNjHd97jZxZzMAmMLc0CsUgOwmQFQkjSVrEjsNZG7XmozEFCbK+2X8ag6OznJ/14GaB mOowBCDqQLY7BB5/oph8l9DnTaAUu8Gq/5gcc7cuXr/bFe8lGZtq3+AxtSoTb8JuWAzP 6DunscSqenv0M4fPN/xunEqXuGWG57FuBNoODRKPvJ41THfgFiUkQ2SqHeiT6LSB967l q4iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oQsBeqwC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c3-20020a6566c3000000b0056534300dc2si4593533pgw.247.2023.09.22.16.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 16:31:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oQsBeqwC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DD54982D1C23; Fri, 22 Sep 2023 08:50:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232735AbjIVPuU (ORCPT + 99 others); Fri, 22 Sep 2023 11:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbjIVPuR (ORCPT ); Fri, 22 Sep 2023 11:50:17 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2065.outbound.protection.outlook.com [40.107.223.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1819F122; Fri, 22 Sep 2023 08:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFnH+G0WMEzMdAPeWDeA/4JR/QdWsAjU/NNnL4/LIgZeB73gbhwbZqEgO8h12jtag7ujBGPBI/thDnMUi695msh8SsOeQORSOtE2/64Hq6DyJhzqTDfeNdZs6ZllGFstCOeNHn7PRHvACimVvhr2bEleCi9X1iv9/Hjd+6rmY0ejjbO8KQUzhJEtd05w8wRc5I31C629Kba5Yr/jWuXUVdx1v8HOKIK0XvkEwGlltiaUZdOVgI73D7n4gcgpcVNIyqcJwJlScB/xKvGnXhKfkMKT2Jayz1F2wOzxY9FeUXl/aGgsez6J4rGmrk0oSkus7EAaTPhgpE+6fNkJKSMAuA== 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=SiGHJdESJcBO19/1vuxeOg+jHN36hh1LOGeHV/zE9jg=; b=CHm08/avKHz/BmVoRI4QWQ0kdjMSXIAnCYEHdz7YjJQjcK09qF1BmnWGIlpupSEarnhv9Wd0a1IbF45no1ySXGyCkS6fKrFWJ3xdb+S48+PGzXB65PpjThvXmXpVkfjwCPUgqXtVNIMiFMlVKsQcHra/q/uE9j06tY8Z/Vm0AzwWRFnxUT+IJ5kQZBBVlBFuUMQYMaqV2+oorxPQNPJ2NsZzwik+NlOc3Kh9yXAdNvvklIKIQMaJGmSPAkmR/48XSn5CAN811ears9HpSPWOQG1MNFwafexdsrsKdPsIL2LNySCMedj/rpsX9rSChWskSC9YgNOpksA+IXSJEs7x0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SiGHJdESJcBO19/1vuxeOg+jHN36hh1LOGeHV/zE9jg=; b=oQsBeqwCZFexbqPgl10nPirP2b5rLFtVxlUo07L35X+zOtj4Be7e1qQTOe2LSwzlcLgSy8Y5sLONapE1lGopkZbOPqnpeOgJ8He8FvK5nXcaDuR1AibVmC1MYYAxqbmawKXXeXXl62iyyUFHbWeTxE00+AQ5/JUjE0o4Q7l73U0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by BL1PR12MB5253.namprd12.prod.outlook.com (2603:10b6:208:30b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Fri, 22 Sep 2023 15:50:04 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::fbfe:ec9c:b106:437e]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::fbfe:ec9c:b106:437e%5]) with mapi id 15.20.6813.017; Fri, 22 Sep 2023 15:50:04 +0000 Message-ID: Date: Fri, 22 Sep 2023 10:49:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Reply-To: babu.moger@amd.com Subject: Re: [PATCH v10 10/10] x86/resctrl: Display RMID of resource group Content-Language: en-US To: Peter Newman , Babu Moger Cc: corbet@lwn.net, reinette.chatre@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, fenghua.yu@intel.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, akpm@linux-foundation.org, quic_neeraju@quicinc.com, rdunlap@infradead.org, damien.lemoal@opensource.wdc.com, songmuchun@bytedance.com, peterz@infradead.org, jpoimboe@kernel.org, pbonzini@redhat.com, chang.seok.bae@intel.com, pawan.kumar.gupta@linux.intel.com, jmattson@google.com, daniel.sneddon@linux.intel.com, sandipan.das@amd.com, tony.luck@intel.com, james.morse@arm.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bagasdotme@gmail.com, eranian@google.com, christophe.leroy@csgroup.eu, jarkko@kernel.org, adrian.hunter@intel.com, quic_jiles@quicinc.com References: <20230915224227.1336967-1-babu.moger@amd.com> <20230915224227.1336967-11-babu.moger@amd.com> From: "Moger, Babu" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SN4PR0501CA0033.namprd05.prod.outlook.com (2603:10b6:803:40::46) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW3PR12MB4553:EE_|BL1PR12MB5253:EE_ X-MS-Office365-Filtering-Correlation-Id: 169d7f30-5c7b-40f5-98e9-08dbbb839685 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rTN1Blj3aelCRVTr+M1f8e2Ypan3M3cETCGwwu96c46Y6IkUDJJ2FeqEmEI7JWZA+cqGca1wrQskkTkS1nzkSpk7or544FecvdpRLPIIsNPokgLtIWOgaNFyWMD7Y4yWIeXzg1mJIFlMO28BYOx94rvLW4kKR02j9jZmi8743DtipC01jOz3JC2/IBqnTeJWPXeMjBJnzg5gR27IXpz/tDc0oc9L/UuH8VVw0E0fI6Nk9ub9WC+7Wmy5UVKk1f38Od4w3M037FVwFCxHmlyjPo7JQVZAjHu4x/G0m9P6s8CWm+//dIxMz1oq0QAc+vwkp4ccXkeD94sOVGavGPxUIWWb+yEcQklloCCLAZJhMkbZdZ9ItPwEGVAWgQEkmYZR95x6LWSdHbtIXr5ez9FwG6WBuo5a+VGtsQxgJ5t+pBQpYSpu+Is0AJGNHGSrFQgyQY8SRD1uKp5lBCAb/UA1UKEQuEXjgMj6ecexoybDuLOmT8l0BDYftgSExqlWWbWLK/uZJTGjqGg+EAuIQ+PmUNIzMrCsSMmSrYjg9dfUugwvG80oSjXXqxEr1Cs9qlUoFvu4MnslB6k2y0is2TMp+mW6So0jExg855EsIbWb9US8RHwPtoqJQf9+23MeQ72uDcg0N+Nizek1Z7Pu7d3FHA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(39860400002)(136003)(346002)(376002)(1800799009)(451199024)(186009)(26005)(5660300002)(83380400001)(53546011)(36756003)(6506007)(6486002)(6512007)(31686004)(2616005)(31696002)(8936002)(4326008)(8676002)(478600001)(6666004)(2906002)(38100700002)(7406005)(41300700001)(110136005)(7416002)(66946007)(66476007)(316002)(6636002)(66556008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aWNUQ0lLa3NlTC9Ha3g0WXJabUtydE82NUdEMmd5YVZCNFR1TTYzNFlteVBs?= =?utf-8?B?RWlGQmJTSFJnNkFudEtLSHZG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hqWXpZdzBxMGpDOFUydXVTOHdjV1BJ?= =?utf-8?B?Q01GUGc2WGMxNUg0bG1mRGIzVEZIaElxUUpnVmNkOEJWQjYyVGY4OUp4R29K?= =?utf-8?B?ekIrbW0xM0wzWmw3YXdjbnEwQ2lHKzRDZXdmR3hzV291MWptL1pzTkd1MWQ4?= =?utf-8?B?THBmeGNNSXJZTWdqSzF6Q1B3aEd5bG8zMTYrUFkyUDI3Tm5iUytkMFZ4LzhP?= =?utf-8?B?d0FxWXk1SS9HN0x6a3IxZXgwVTZTQVE2WXZmWlk3OVBlcWxnTUNXR3RmOXo0?= =?utf-8?Q?tb0k=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 169d7f30-5c7b-40f5-98e9-08dbbb839685 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 15:50:04.5582 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kJykkdRZy3g3vIo5YttDBKYhEz6gZ2a8tXFiAGr6T6e9OPn9CWs/s6PnahvfjJqX X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5253 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 08:50:24 -0700 (PDT) Hi Peter, On 9/22/2023 9:36 AM, Peter Newman wrote: > Hi Babu, > > On Sat, Sep 16, 2023 at 12:42 AM Babu Moger wrote: >> In x86, hardware uses RMID to identify a monitoring group. When a user >> creates a monitor group these details are not visible. These details >> can help resctrl debugging. >> >> Add RMID(mon_hw_id) to the monitor groups display in resctrl interface. >> Users can see these details when resctrl is mounted with "-o debug" option. > When I reviewed this, I went through the whole series second-guessing > the wording above and wondering whether "monitoring groups" applied to > CTRL_MON groups. > > I was able to confirm that mon_hw_id did appear and had a believable > value in CTRL_MON groups which had allocated monitors. (and I added > some comma-separated PID lists to the tasks node) > > for the series: > Tested-By: Peter Newman Thank you. > >> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h >> index a07fa4329b65..b4910892b0a6 100644 >> --- a/arch/x86/kernel/cpu/resctrl/internal.h >> +++ b/arch/x86/kernel/cpu/resctrl/internal.h >> @@ -296,6 +296,11 @@ struct rdtgroup { >> * --> RFTYPE_BASE (Files common for both MON and CTRL groups) >> * Files: cpus, cpus_list, tasks >> * >> + * --> RFTYPE_MON (Files only for MON group) > If monitoring is supported, all groups are MON groups. I think the > "only" above caused me to second guess whether this takes into account > CTRL_MON groups getting the RFTYPE_MON flag set dynamically. > > However, I think the documentation above is still technically accurate. Thanks. If there is another revision, I am open to remove "only" from this text. > > for the series: > Reviewed-By: Peter Newman Thanks Babu