Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36745618rwd; Tue, 11 Jul 2023 05:19:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSe+ZC3FFNdenBUjPc52V32MgxJPOCETrdIm9aTfz2Zlp4dKhBmcJfbroxTSPTxQYHe1dp X-Received: by 2002:a05:6a00:18a0:b0:676:ad06:29d9 with SMTP id x32-20020a056a0018a000b00676ad0629d9mr15621319pfh.17.1689077971529; Tue, 11 Jul 2023 05:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689077971; cv=none; d=google.com; s=arc-20160816; b=r7l87UEyCB/7Hx77aNGRR7fGDM+w/t3D+Acoc2DvEocn/YbNNryUPeSy8EqGtLQNpG Q8aTSgZ5zRTypYFukHZoiyOHNzOMoM2OCLp2DAMd/hdQHFnz5VaUijtrvwXJNbWuOBko 3b7JCgTGuQFsu/VoaFgz5LKbIvBQ4SQodgCOxNY6LyDjhJN4eYY066x4+QshbxFLNKmK nWKnihlzfZ+RXooAtJBg1jj9zBI+1PoyN0pybZWeZPz3o2p60d/MvAp08PyW5+KaQHwp cmbuAqLtcp4lcaDb0arTBs2KTy5/lXElpzgHcVHbLN0S8GupkQPYlgnwrnSjIe1qXTpZ uAKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=X4+ycfGY0MgRHZVXe6hMjCIYnkqofWJzqm2vzSgq2EE=; fh=1BtF3ERG1ql/C+ZddWYJ0QxvrkYi+ctC6qVXR9xLNKI=; b=ZycpeIqHhuGTcGyjAsZnS1BCwB9lssgmYrdjnl2QuFqQqcj8znVLhG88hs9DfUKf4B hlNfnUxYb8zDOhxWYclUh8FesN/kHHSvSFi0ET3YxoxJfrRskY59yBERdTdw4wVWk6c3 UjAPn2MNmbVr1DVzfm5o4PVuFuPikgGxNBWTqT1796RlPhJHYhqI1uoxLFXz3qlaPo9V V5U00mHtVd4RWyMPo4KOy2rhlLTnYRuxQ7cOZjrCyiDiy2iTfUi9ksL9+KZVfgXnLR5Q 2zk22WY1F+xK7eT7/R7Tw0v6qPSRZ9b+nc5v9ITgKUkmr03DWJtnBeINqLY55Y0m5B2r 5lLw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a62e813000000b0067ea76a7c59si1386626pfi.50.2023.07.11.05.18.56; Tue, 11 Jul 2023 05:19:31 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbjGKMJW (ORCPT + 99 others); Tue, 11 Jul 2023 08:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjGKMJJ (ORCPT ); Tue, 11 Jul 2023 08:09:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3D781708; Tue, 11 Jul 2023 05:08:59 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A88E72B; Tue, 11 Jul 2023 05:09:41 -0700 (PDT) Received: from [10.163.47.87] (unknown [10.163.47.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 766923F67D; Tue, 11 Jul 2023 05:08:53 -0700 (PDT) Message-ID: <86792ab2-864a-5c27-95c1-54c4057024db@arm.com> Date: Tue, 11 Jul 2023 17:38:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 3/4] arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Content-Language: en-US To: James Clark , linux-perf-users@vger.kernel.org, irogers@google.com Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Will Deacon , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230710122138.1450930-1-james.clark@arm.com> <20230710122138.1450930-4-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20230710122138.1450930-4-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 7/10/23 17:51, James Clark wrote: > Since commit bd2756811766 ("perf: Rewrite core context handling") the > relationship between perf_event_context and PMUs has changed so that > the error scenario that PERF_PMU_CAP_HETEROGENEOUS_CPUS originally > silenced no longer exists. > > Remove the capability and associated comment to avoid confusion that it > actually influences any perf core behavior. This change should be a > no-op. > > Signed-off-by: James Clark > --- > drivers/perf/arm_pmu.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c > index d8844a9461a2..297906df6628 100644 > --- a/drivers/perf/arm_pmu.c > +++ b/drivers/perf/arm_pmu.c > @@ -872,15 +872,12 @@ struct arm_pmu *armpmu_alloc(void) > .attr_groups = pmu->attr_groups, > /* > * This is a CPU PMU potentially in a heterogeneous > - * configuration (e.g. big.LITTLE). This is not an uncore PMU, > - * and we have taken ctx sharing into account (e.g. with our > - * pmu::filter callback and pmu::event_init group validation). > - * > + * configuration (e.g. big.LITTLE) so > * PERF_PMU_CAP_EXTENDED_HW_TYPE is required to open the legacy > * PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE events on a > * specific PMU. > */ > - .capabilities = PERF_PMU_CAP_HETEROGENEOUS_CPUS | PERF_PMU_CAP_EXTENDED_REGS | > + .capabilities = PERF_PMU_CAP_EXTENDED_REGS | > PERF_PMU_CAP_EXTENDED_HW_TYPE, Small nit, the second line could be folded back into the first one. > }; >