Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3143898rwo; Mon, 24 Jul 2023 06:59:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyKc15T2JGrqrUM1ppjSg3hPZr/E5jlPMIt/urZGAogejBEt1zsu8yVeIkTYLbRZU1oONK X-Received: by 2002:a17:906:2206:b0:99b:507d:dc05 with SMTP id s6-20020a170906220600b0099b507ddc05mr9620337ejs.16.1690207164827; Mon, 24 Jul 2023 06:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690207164; cv=none; d=google.com; s=arc-20160816; b=BNy9uCuijjfTo/9RZauWgriEbvVNAsEj5fto13d6EQWJzUhwP07nPnO9jtEEyVC5jK KUHvczcqKyVt/SKePNSBOn8+lcPPbRRe6Sn7dJXXaNE32LDOH0Ip4KvROo9Zfg0Y5qZB wfANmG0aAejpNfVMsU92FlXA6X4h1CCt5sPYfmzm0hdWay0nfIN7gmx2hdfkOjyJjx1o PFpCSLnifHuyQYftT5Sb1tzSOVnYFRmsfFM6wnaMozgmmADjYNWdWVKYg1ufL2bW6IGv EKL9q0LEBHRC5iWMSBuFspg79YK+p1IiHDEApW8VyIRrSNpVG+jR/6bZ2okONXLQmbNK vXEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RKVrZLb6qF/OrY0Q2MTmJp/6OhetAQseIaWaS5QgDQA=; fh=whuqqPDMCuf3pVIxi4ys9+C5pEOkF8a7QCuVDNap2s8=; b=XCW0V0hYnsylXNAnUiLTOdRk/fDQl9LoTP5kpotzcCQm6UVw6hOZEQzSEAyiVPwLfX R0CAfXXokrcYbwZvx9N4zp+6Bg2fmR8Pbc3zjxMQqCgoXHATsY+CI6sD0Xjw2WiWsT+O 5+sG+C1iesGdnvg2VqgiJPv3PfssgzNbbC6cJ46FzdsIJaeAXIoQHbhjfRQGX1DRkcnh Gq4/cuJuf72kMLKDPYFoDtujFysEeOji8h2gZZC6+r7xuhA9h6hqOvJp8VOx9qLFe68M zYWE0BXW4+O/7OrGkyPOH48am73DGAjy+X5scvAdkDtSKVv1t33bwM/HMLpXO87Shw7E BPeA== 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 bg10-20020a170906a04a00b0096633b5c0aesi6674700ejb.809.2023.07.24.06.59.00; Mon, 24 Jul 2023 06:59:24 -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 S229625AbjGXNsq (ORCPT + 99 others); Mon, 24 Jul 2023 09:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbjGXNsK (ORCPT ); Mon, 24 Jul 2023 09:48:10 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B14D849D7; Mon, 24 Jul 2023 06:45:55 -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 778B015BF; Mon, 24 Jul 2023 06:46:05 -0700 (PDT) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9A1823F67D; Mon, 24 Jul 2023 06:45:19 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, anshuman.khandual@arm.com, will@kernel.org Cc: James Clark , 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 Subject: [PATCH v2 3/4] arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Date: Mon, 24 Jul 2023 14:44:58 +0100 Message-Id: <20230724134500.970496-4-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230724134500.970496-1-james.clark@arm.com> References: <20230724134500.970496-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 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 --- 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, }; -- 2.34.1