Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4024629rwo; Mon, 24 Jul 2023 22:31:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgWM1Pa6rL1appbQimTk2HBAoHtNl+Of/NSCsGtYHZIV0O7VBrT4sAIeu/7q75o1Ndisto X-Received: by 2002:a25:d8e:0:b0:d0c:fd53:aaae with SMTP id 136-20020a250d8e000000b00d0cfd53aaaemr5021290ybn.2.1690263063032; Mon, 24 Jul 2023 22:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690263062; cv=none; d=google.com; s=arc-20160816; b=LM7WtItXp4UseeA5AKfMi5wLMxW2mUOoX8ABVmir9+KMOkRY1JuyBeViRUNoHkj/Yy USv8ceYzJkbOsYI/SKqWEnEDzNFcCtzzzPI0P8MUjMsJxnCByqZxvgb+PYk1l8BMIKP0 DSifHOPAscne0BI7Kl8QAWdKJ8hFvxPof2rW4HzWFGALHB0PivtYAZoYCtdsG6XFYQ+b 9dhTmnM00h8ic/jHAs9El/Eo5aHXrn3dDKfLB1sT6Omz0HvmwiDRG0udE9FQE1yrkbWo moZ3z9SS0Rp7HzEiurYByUphR/iBLPUskQUcQKR4L5CjNmHflGJJX92NBp6GJQ41cHMe caVQ== 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=fqR/hnkTyLLam8kcyazPZ3AF4GaRYzRLBFEwXkVP41U=; fh=d6fOH7BsYW64pNeUFvB0fh1Hxc2ytR4yRQTxqXYAOn8=; b=lBR32dwpmeaWOikXarSdm+8czsbzYETtEd//8vzOEnqkmkWD8ozQlrHiY2r8FJS6QZ mdHM9HSIO0ybzPoQR3Yt4IC78be7anwxaAhTJ67y0Q+dZNayBIdPYX9lLnBK36iNjIcg 52KUGbeeF/jB1UUelQD30o4QQVgKTCQ/OGi4oDQS8fv1ZrBUB84R5GQ5ak3cU4XrhDiO 8tXPgSoPEjoTPsHiC1kGDzSN8dHzKRMZtDY0gPprK9xQsn7q+dStSB9oJxiLq5bnuBWG Pgdm/zrqdU9jI3WT44w9kzuF3AoQwHRaaxyhdMcp5z8KwhzMWqQaODP04WP36jLmTJ00 VhzA== 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 x3-20020a17090abc8300b0025de453ee4csi10750130pjr.168.2023.07.24.22.30.50; Mon, 24 Jul 2023 22:31:02 -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 S231672AbjGYElk (ORCPT + 99 others); Tue, 25 Jul 2023 00:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjGYEli (ORCPT ); Tue, 25 Jul 2023 00:41:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8795910D1; Mon, 24 Jul 2023 21:41:37 -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 768CE11FB; Mon, 24 Jul 2023 21:42:20 -0700 (PDT) Received: from [10.163.51.115] (unknown [10.163.51.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1AB93F67D; Mon, 24 Jul 2023 21:41:29 -0700 (PDT) Message-ID: <354fcd14-e86a-fe51-2613-6194b85efd25@arm.com> Date: Tue, 25 Jul 2023 10:11:26 +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 v2 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, will@kernel.org 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" , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230724134500.970496-1-james.clark@arm.com> <20230724134500.970496-4-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20230724134500.970496-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/24/23 19:14, 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. > > Acked-by: Ian Rogers > Signed-off-by: James Clark Reviewed-by: Anshuman Khandual > --- > 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 2e79201daa4a..d712a19e47ac 100644 > --- a/drivers/perf/arm_pmu.c > +++ b/drivers/perf/arm_pmu.c > @@ -877,15 +877,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 > * 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, > }; >