Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1221083rdh; Mon, 25 Sep 2023 06:45:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5GSu2xQxsHEnQIQ+jSlnYbSi/rMe+EZugGhn+9n5chwqorDc1chC9UbQnydJQL7A27yr7 X-Received: by 2002:a05:6a20:f3a6:b0:15a:592c:131a with SMTP id qr38-20020a056a20f3a600b0015a592c131amr4641947pzb.30.1695649529910; Mon, 25 Sep 2023 06:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695649529; cv=none; d=google.com; s=arc-20160816; b=FNTfPDkeT53OFa6RvoLxf5TeyERrrugRub/K2ybc67+DLQ5pvfDOdAdT7BI4P8ELjV 4lQi6ET2MuoWZ958+rnKvFagXn1vEaGZbmg20GW084Sz+kI9yRkufKZNQSXvCaEaNXgl ApWvJljMBERXJTe4h6xp/kwJHxs+1tRV3N79B4KO7Z6kpCbiiVRCoSBnP14t8qxW7Rt2 aJyPrwAOQoL+9eXDYD/XtMqE9tS3NHygsX2Vt2796Xt2CK1RV3g4VH4IiSLHUZJGIZeC Dd3kNmRp/mON/NRXi+mrlucFux1lknmosI18jtJHaV4QUI4vlwyMSMXzzT2L4BvrgiZD IMFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0NKbf24bNvP0D/RfBWBt2avTfFTOlwhX9Npr4nrglv4=; fh=BbYp+LK3G1nQNjxfpU9C8A7UmcbB6a5n9eCmjdIhxo4=; b=zlTLDOYOX3xyiJNOiYgXSnE96gwLM1mjGyDhxGdOjueCCBlaKRPZYmZ7nKt2h9WN6S UGlr4SvT2/8DQ+tu/lVNHYMnbeNXuziIcfhFe1lmjlerjcHcu8AEbej18NiuxHOxSE/J 6Ieqfqeegs4KOvGSACOt1VpBH2TSBdJ0PWoSyMAYz9kxHWD2JxAQJDpSeUin92QDqr3c lcISB5qiuV9E45JavRCBb8rZ1fb9xRAtSmv+4rscjsfEbpWgBxIcL0is9/KwERkagaL7 oGcr4/rGXzdVxpjRBc3ADxq39yAhngNHCRGOMhmnMbUyvwICysPRYNHlkT/lfifCSngY SpeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="H/G6uBqZ"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bz33-20020a056a02062100b0056944c06855si10972878pgb.88.2023.09.25.06.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:45:29 -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=@google.com header.s=20230601 header.b="H/G6uBqZ"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 23C4680236D9; Mon, 25 Sep 2023 01:11:46 -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 S232666AbjIYILS (ORCPT + 99 others); Mon, 25 Sep 2023 04:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbjIYILP (ORCPT ); Mon, 25 Sep 2023 04:11:15 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF6AD3 for ; Mon, 25 Sep 2023 01:11:05 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c6052422acso265655ad.1 for ; Mon, 25 Sep 2023 01:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695629465; x=1696234265; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0NKbf24bNvP0D/RfBWBt2avTfFTOlwhX9Npr4nrglv4=; b=H/G6uBqZ74aycw8cwD5GJSQcKu3RJ1khbjaMXFMKzEqGyWUD0Q6nIjBjVoi9DykCVN CQYZ7i1p7zRPJkMaPjW43U6hxavvZqamrDx8QhhVCfVVp4AxXFC8jRAoAQYR3U+EQLLK YMT8V1kPkiSpEylYkM6wDjsJ5cGc6qA9YmqbgmSg+5Ad0lO/zC+MJglga0D8ue1vEz28 /moT7hAp3omjrOiaDPdWSqZEy21+ulW5jQjVYVrToDFoTXea+pk7l9uWWplSBFB/scEv rWoUcRyHjJ2WXJyydW4YCJ9ZEJZY0I4m0WMgIcjYkirfxvSYjq89YJTpWRRhJsgXDDKr v3Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695629465; x=1696234265; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0NKbf24bNvP0D/RfBWBt2avTfFTOlwhX9Npr4nrglv4=; b=OGHVWS0ieqDU8RLXs0Ml/mWQ/Dd40TL1flDlWgnQ0sVCtGS/NK5Qsy/H5PX+Gh7/+4 so713fO2L5ccUp9arBHXgNXcdeseMYtWDoLeTJNiqET42Ybl5xUT720c04WN+Iq6pJAg iuJ3GyJ/WQkdUMzqBbkLcdccg4Qf1bkQOZqhMQccKZ/GlskVHgXKMeHZ/JeLVUAb4DEE rrfPtuKksUKWeRkWVsRfjjvxXY915x7BE2XoBAy84kTABSldlSV2DKCsRyFEKxlUDA90 qe8mOOOzYd/iO1QAnga3I2dPQl9geth4k0+nAVkBm0GL8AWxspAMFLl6XsJQgCUyn2qd nE7A== X-Gm-Message-State: AOJu0YxsRZIz9OQuGUeNNgvjm31O0z4pKbfz1JOloa8+dZZPZ58559ws MQfB8Jy56r97WW7PFHZGWnA2HCExwadVD6CHiPZ5Zg== X-Received: by 2002:a17:902:ce89:b0:1c3:35c8:e55a with SMTP id f9-20020a170902ce8900b001c335c8e55amr273492plg.28.1695629464753; Mon, 25 Sep 2023 01:11:04 -0700 (PDT) MIME-Version: 1.0 References: <20230915224227.1336967-1-babu.moger@amd.com> <20230915224227.1336967-11-babu.moger@amd.com> <51ff0094-5c7b-824b-8b3c-2439e5477725@intel.com> In-Reply-To: <51ff0094-5c7b-824b-8b3c-2439e5477725@intel.com> From: Peter Newman Date: Mon, 25 Sep 2023 10:10:53 +0200 Message-ID: Subject: Re: [PATCH v10 10/10] x86/resctrl: Display RMID of resource group To: Fenghua Yu Cc: Babu Moger , corbet@lwn.net, reinette.chatre@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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]); Mon, 25 Sep 2023 01:11:46 -0700 (PDT) On Fri, Sep 22, 2023 at 7:59=E2=80=AFPM Fenghua Yu w= rote: > On 9/22/23 07:36, Peter Newman wrote: > > On Sat, Sep 16, 2023 at 12:42=E2=80=AFAM 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" op= tion. > > > > 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 > > Please use "Tested-by" instead of "Tested-By" (the "By" is wrong). Tested-by: Peter Newman > > > >> 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. > > > > for the series: > > Reviewed-By: Peter Newman > > Please use "Reviewed-by" instead of "Reviewed-By" (the "By" is wrong). Reviewed-by: Peter Newman