Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36745752rwd; Tue, 11 Jul 2023 05:19:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZffD6Bc80E7FJgqNrVP0IgPCQUwA7BvN+1BOeoVXpVnRtP3NDDqaa98eoDpMaUydTU5We X-Received: by 2002:a05:6a00:2daa:b0:66f:3fc5:6167 with SMTP id fb42-20020a056a002daa00b0066f3fc56167mr18225722pfb.1.1689077978719; Tue, 11 Jul 2023 05:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689077978; cv=none; d=google.com; s=arc-20160816; b=RuUe+bd4Gt4xeosUu0wq1/OefJ2KHpobEC6rgXDsxq+rpXCTZNOMosr/Oh0B6AL0Wm VjEpEDVH2KMHS/0Teeiyym+x3qvHRdgUXslUJEo1wg0Oq6XM9vaXrr2IGrnGxpZ52zur AUsNmidhLqMmmDbaCGRe2QLnEMmm9Id3QYC5hb2033e2DYg0D9OJ9zdzo/KBwFukoOqt EI6bVhZTk2Q9pTFwAPQpBoiST/WzF2dGHKLls6ztZN/yeaaA+tC74mrl6wnUVDOc7kEx zmNE6PU4v3cyW4V2ooWAlU78UJMifLb3ZbBAt8JxOWyFj/SOZm9gbAI0wdQ3Z7VCcNpZ ZskQ== 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=S1nIuPqFSwlbCYpg/IpLXEAG6paRLbghndiIMCGWJwE=; fh=1BtF3ERG1ql/C+ZddWYJ0QxvrkYi+ctC6qVXR9xLNKI=; b=Rahb+6Szs9YKQFq/SbifgGKo1DEWsLX7AqEucg7SYVViSQJiiVfeUcG0YLnDl7ppon VGPP2Tn5MCxB5rBibqmk2PIIyMkbepiWIfyf7AjIYqpQESGpRWvZFtqKibQq4oNwS4Zj 0TKhUQqa2wCZekS8cSTmYaaKGgQHQfckXrCSyfDm4iPKJ1rrwVb8KOWXcgwX/THCJBXj 22xS9Q+QvIPgPOErV4JnYmzhC/lYUqLyGJknxAFtSqUP3uyENZOiZ/mgCMFzrgGaOwFm iw4nc9YzO9d5uZxCjHLJQD2bG/vmP+yovtHC5JeNlCpZEMOx+r2QIw79GDFRcjOzjln2 rbqg== 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 w18-20020aa79552000000b0065dba8cc3a6si1370002pfq.376.2023.07.11.05.19.26; Tue, 11 Jul 2023 05:19:38 -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 S229518AbjGKMLD (ORCPT + 99 others); Tue, 11 Jul 2023 08:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbjGKMLB (ORCPT ); Tue, 11 Jul 2023 08:11:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 287821986; Tue, 11 Jul 2023 05:10:39 -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 E03312B; Tue, 11 Jul 2023 05:10:59 -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 BCBA33F67D; Tue, 11 Jul 2023 05:10:11 -0700 (PDT) Message-ID: <96a3d12a-71d8-1779-28a3-316e1838292e@arm.com> Date: Tue, 11 Jul 2023 17:40:09 +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 4/4] perf: 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-5-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20230710122138.1450930-5-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 to avoid confusion that it actually influences > any perf core behavior. This change should be a no-op. > > Signed-off-by: James Clark > --- > include/linux/perf_event.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index d5628a7b5eaa..3f4d941fd6c5 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -288,7 +288,7 @@ struct perf_event_pmu_context; > #define PERF_PMU_CAP_EXTENDED_REGS 0x0008 > #define PERF_PMU_CAP_EXCLUSIVE 0x0010 > #define PERF_PMU_CAP_ITRACE 0x0020 > -#define PERF_PMU_CAP_HETEROGENEOUS_CPUS 0x0040 > +/* Unused 0x0040 */ Small nit, "Unused" marking might not be required here. > #define PERF_PMU_CAP_NO_EXCLUDE 0x0080 > #define PERF_PMU_CAP_AUX_OUTPUT 0x0100 > #define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0200