Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35635393rwd; Mon, 10 Jul 2023 10:09:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9yKNdU3pS0/ZSuGZB4SPgMA3MHxchh7aTgmi5nVLv9LcuQN65RApBeA8u65B6gHkMrxsy X-Received: by 2002:a05:6a20:3257:b0:120:1baf:e56e with SMTP id hm23-20020a056a20325700b001201bafe56emr14223273pzc.19.1689008975488; Mon, 10 Jul 2023 10:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689008975; cv=none; d=google.com; s=arc-20160816; b=K7f5ruoplNgO1xycdGmAzBB+Cz2GKIVbj1KUgyY7i+x79bcZrRt2pYjIKws/xgZLJ1 LYWmx2ewgHoSuOVUJczA0nR+2rwdQU1kLnQtkVMFas+d1UBVawNsKt66ChpODC0yZ4Kc +CJAOC8jDpbkOESmcNWHTZ38QAFSuN4ol03Tz4CxvZSkTwAP5zpyq3KaqvJCxx540vRM pOKhviOcDVL8SM6dSqVqjc2ISi1YJvNDwWBS0NwS2nijAk8e1xgdxkMpuKId6xUAwonW mslWrk/f5if3WkixES+0csk9agqZRuyxm8gxGE3DYQN7TDSnSQ3XxKxAR6uFbB9IYjyQ Q1Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AjKMlN7Hn/eUWbs2kPX1xd2yBg/zUqu1UnIgvGuGwT8=; fh=o35yjAieP0qldlfBEIBeBRpJmczR/sJlxCmzaX8Lnzw=; b=LpU+O9slvheePpLc3bdh3Vzh6YMZKMuWBcd5Dre7HTox8E/kPnFTochep3JlhLEfvu YD2YX1s7M76s3i5Ner1pZ7GtcPg098QJ7UR0zIRvYDz3M6zGvO00Y9jHXDvU5eZUTppp tC667lXVR1mlqghK+ukHpHUgPCwcG0rSaifaiYm8QrUBz+7XDzhiLo4MbEujnBh9vlvn EPU+khI0LQgqyjPo9q60aBzFKV09vLJc0E9cR8O85Mq0EgDl98o0z8GnVXq8P7eaAcER xfD/+NRDsVDs6WrX/9G53Ltvf4S/LSXeH3ZZPSEJPKHrxFp0/HNEK29Q5V4yVd+Qu7cl D/kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=IbOhZLPD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630209000000b0054fe6b9502esi9457804pgc.687.2023.07.10.10.09.22; Mon, 10 Jul 2023 10:09:35 -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; dkim=pass header.i=@google.com header.s=20221208 header.b=IbOhZLPD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjGJQIF (ORCPT + 99 others); Mon, 10 Jul 2023 12:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbjGJQID (ORCPT ); Mon, 10 Jul 2023 12:08:03 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0DFB1 for ; Mon, 10 Jul 2023 09:08:02 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-40371070eb7so398421cf.1 for ; Mon, 10 Jul 2023 09:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689005281; x=1691597281; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AjKMlN7Hn/eUWbs2kPX1xd2yBg/zUqu1UnIgvGuGwT8=; b=IbOhZLPDDP4ChlJN7mEf2wdW3kbIT7JaGqTbUpcbpMhIdOqTeW7DqC6HCyVdxS6p3E NBWDKi01JdTf83cVhXOv2z5WT6ByNyjzEBJtaRWaP3Ld6SEYlbTCkfCCRueCrLdsROc0 F3LQe/ey+43hD1wrWgZhClNBE0sSEzeUrsVZbxdY0RlBrZBZOxUTvwLu3lDULbfg2hLo Vv4PoO1HACU5sAtSnfSCnyNN5FL8x7XXDhuXT9xDegLi1po0VwCPIB16GTCcZvvSuCoY WMowBk13RLsadZkEX3JJPAbB3xSKyixUD2Y7dy+VbrfTUU7ln0YsE1or0a4AygL4JpR4 mJig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689005281; x=1691597281; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AjKMlN7Hn/eUWbs2kPX1xd2yBg/zUqu1UnIgvGuGwT8=; b=YIob3GIp9DgjtERjduxFH0Tg6vBLY9H5UH7CzEuLgdOW4Px/CcpjXXU+pGsl1hDyaZ fv0e3iuAtpo9LaSIS1U8DjRNMHismgkfBVqb9CPoQTZnqxUm/qVMq4zEfsJAHiFUK89H sQyBFJm+Ux1EvKBe7Hx4jvYRbWfQag2JEL+M1v+btXWjjdtoeF6PkxQHaqDSDSRIbq3g jjkk0YIRh20dDIY0aVGJcxwkDjN2OIefMNReMAhC3Ung3eCryYxKB3IH7zoB7v8SA/Rr Ks3D7lYIwyTasxkKl796LFlACxkw6a35fMQubWFmRPR2NW4b81887d5JYxQcFcxK78dY SdkQ== X-Gm-Message-State: ABy/qLbbLNwog4F/j5/x9BCW6ZEXlDVXEYwmyeL6Ib12Y5bQ1zoR7LnK TlbV57dfw8/DcfxVAUQLTBQ6cWBPipzMBVfEdeODHg== X-Received: by 2002:a05:622a:609:b0:3f5:2006:50f1 with SMTP id z9-20020a05622a060900b003f5200650f1mr369683qta.12.1689005281540; Mon, 10 Jul 2023 09:08:01 -0700 (PDT) MIME-Version: 1.0 References: <20230710122138.1450930-1-james.clark@arm.com> <20230710122138.1450930-3-james.clark@arm.com> In-Reply-To: <20230710122138.1450930-3-james.clark@arm.com> From: Ian Rogers Date: Mon, 10 Jul 2023 09:07:50 -0700 Message-ID: Subject: Re: [PATCH 2/4] perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability To: James Clark Cc: linux-perf-users@vger.kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Jul 10, 2023 at 5:22=E2=80=AFAM James Clark w= rote: > > 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 Acked-by: Ian Rogers Thanks, Ian > --- > arch/x86/events/core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c > index 9d248703cbdd..2353aaf0b248 100644 > --- a/arch/x86/events/core.c > +++ b/arch/x86/events/core.c > @@ -2168,7 +2168,6 @@ static int __init init_hw_perf_events(void) > hybrid_pmu->pmu =3D pmu; > hybrid_pmu->pmu.type =3D -1; > hybrid_pmu->pmu.attr_update =3D x86_pmu.attr_upda= te; > - hybrid_pmu->pmu.capabilities |=3D PERF_PMU_CAP_HE= TEROGENEOUS_CPUS; > hybrid_pmu->pmu.capabilities |=3D PERF_PMU_CAP_EX= TENDED_HW_TYPE; > > err =3D perf_pmu_register(&hybrid_pmu->pmu, hybri= d_pmu->name, > -- > 2.34.1 >