Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4021958rwo; Mon, 24 Jul 2023 22:27:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQIf5RPQhqSrZ1Dtx283vswrUwsiFNT7kyQH+n/3jwlM7H4QgrlRRkTqdvrtwoeP1A+rG9 X-Received: by 2002:a05:6808:141:b0:3a3:eab8:8ba5 with SMTP id h1-20020a056808014100b003a3eab88ba5mr11551059oie.27.1690262841283; Mon, 24 Jul 2023 22:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690262841; cv=none; d=google.com; s=arc-20160816; b=lYuOtjRaeZU1jlHeandO0QkBYQZd27czBCjSYnb2lVoM/111r195J2lL+vcsBOjo7G 5z+tFfTuxP6ERZUglNXPw/DJHVFWT70Cy3MLmg7Pp0CtUfPq+P+3p6/G80hgL5hnlxOm jmA+R+STSmC1Q3G68PY3QyVr0GrmsA8rck49xW+6rqcqLr3FgV4rx+T+Gdl9as49FiRk FBVZ11BOlLASSK+I3y5+YPsPWk8kfSz9mOdE2kaFUkgsCCzG+949Nz0fJauBNOGpp2M2 KwBVBKS+Zv0vr+4l0sJLN0evwR2LCn6xfVRDIfplg1o+6zG9sE36+7NB3QUGoRy4FJpk U4YA== 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=56VTjL+WgydqzrKOtC8vbPg0eWz/RHdXkELbXhZzkVw=; fh=d6fOH7BsYW64pNeUFvB0fh1Hxc2ytR4yRQTxqXYAOn8=; b=VkSBjUX8+fEfAE3UTt02V5QXgpidnJqWC98yIEr4ZSm387KM9tCXhyKdHb2T6Q4pPt bYIgmcWAeZFL9Xh29mOsNSnRAPjSdaSe2m7a5ORvcLe2+tsmbj6Lm4WowL2w0nSCuWpl nSDoiRQKMi3Yqyvxi+abUXwSXEDGt9k+b5ouPdOqnmsUt5VbYX4phz7bebSPxyG4QMnz 3izZ4Jpp9p9r+YWiJddvYSutVIxzbAGLecHhoQp4c661PXsQo9bPsqJvTrGOJE/SGeAa vkwMzmw5vuKkjJi9kUeuYWTlzimu8xVjgZ8NPwmNoR/KSEM+ydZIW08As+j/ys6jp5bp 4Jog== 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 z2-20020a63ac42000000b005638dc9751dsi8913804pgn.18.2023.07.24.22.27.09; Mon, 24 Jul 2023 22:27:21 -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 S230191AbjGYEn2 (ORCPT + 99 others); Tue, 25 Jul 2023 00:43:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjGYEn1 (ORCPT ); Tue, 25 Jul 2023 00:43:27 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB45710E7; Mon, 24 Jul 2023 21:43:25 -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 90D1112FC; Mon, 24 Jul 2023 21:44:08 -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 2574E3F67D; Mon, 24 Jul 2023 21:43:17 -0700 (PDT) Message-ID: <04bc4e49-8633-63db-5c13-12953f3349bc@arm.com> Date: Tue, 25 Jul 2023 10:13:15 +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 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, 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-5-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20230724134500.970496-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/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 to avoid confusion that it actually influences > any perf core behavior and shift down the following capability bits to > fill in the unused space. This change should be a no-op. > > Acked-by: Ian Rogers > Signed-off-by: James Clark Reviewed-by: Anshuman Khandual > --- > include/linux/perf_event.h | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index 2166a69e3bf2..c617badd1e76 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -288,10 +288,9 @@ 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 > -#define PERF_PMU_CAP_NO_EXCLUDE 0x0080 > -#define PERF_PMU_CAP_AUX_OUTPUT 0x0100 > -#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0200 > +#define PERF_PMU_CAP_NO_EXCLUDE 0x0040 > +#define PERF_PMU_CAP_AUX_OUTPUT 0x0080 > +#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0100 > > struct perf_output_handle; >