From patchwork Mon Jul 31 10:19:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 128568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1929173vqg; Mon, 31 Jul 2023 03:52:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGKha8ae++mBn6f37gZ4J03NLTVS3df6jzkkPeKPRaTFu3Tw9TWOTCPlHffNN6SQCLgMUFQ X-Received: by 2002:a17:90a:5503:b0:263:f8e3:5a2a with SMTP id b3-20020a17090a550300b00263f8e35a2amr8489018pji.36.1690800727927; Mon, 31 Jul 2023 03:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690800727; cv=none; d=google.com; s=arc-20160816; b=xOIJ5evaX3osHR+3Hc2N2t4RnyA1n6kiRJuLVmkMT/5JI6+g8UZ5bjKeD2bF6JYgni P2qDqvqMg+ti8m8fof3wRz+TO6SXcCZmn4ORFzkLkoMK8NsXWhzL7xODuz9Ltv2gtBod Htva+J3zS0VyAcg065bctYRd+qIa9XmFjhEazT0G2mBtQZ+siFJZvmDbBvxtarQxWohm CTUDb5B6BzEj/Q2PpTiZE5fAht3njCrzIGYivwjJNuCLLhDMqK3CxDCLv5tglvLeBrpK 1k/TE33RaQ6XE6QbB6FtgyJYkK1uDRHDGW8w4kZSL1jINatw+OoLJXnutMJMe3WQ8E7L eMIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=v16GS4bcPgXubu6zg/xsRqgp7LY5t94J0pFTVC7YOBg=; fh=ZCxiijaRLa6UjGpvEfijvuWHm8iSyxMTnmDti+U60Yo=; b=B7Cy24geBu5PRJYS+rcaVHUJUh88EvCHD5y+T+VPKrXBtVo6skCPCmQcz+bQVSpbSC xq8Bhepj0GkfYhmnH7RpfK6b+Hjn0I9eT2MpnwM16s2FH3WeLrg8WLgYXYshZLhxOhUI sZRJ7EgkCUGE2cvelwlqDS/h1mD+OhtriLbE6tMrh9nA8xmB1J6Q4CgXR7iW3ffaPQXT sZ/ap4WG1q/u6Ciq2FP/VOl8f5249hNUfC56qy+MrCwOd1TG0aw6sbhAakd2o9AH4JkS E7GfI+GtOAIn4zK7HKDiUphoFX5lnrp0D8fFU/IugIfky5mf8TLcCP/6fRj4cCy/Q0ib yPPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zhPZa3iF; dkim=neutral (no key) header.i=@linutronix.de; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a17090aa00b00b0024e5ed38294si7220893pjp.66.2023.07.31.03.51.55; Mon, 31 Jul 2023 03:52:07 -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=@linutronix.de header.s=2020 header.b=zhPZa3iF; dkim=neutral (no key) header.i=@linutronix.de; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbjGaKTk (ORCPT + 99 others); Mon, 31 Jul 2023 06:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbjGaKTd (ORCPT ); Mon, 31 Jul 2023 06:19:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5F9B8; Mon, 31 Jul 2023 03:19:32 -0700 (PDT) Date: Mon, 31 Jul 2023 10:19:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690798771; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v16GS4bcPgXubu6zg/xsRqgp7LY5t94J0pFTVC7YOBg=; b=zhPZa3iF1NdFWMY1j9Sxd+feLergV049NE05co7igal59f3E99sj0PRHIfwfjDCuz+iaRD eK7Ti9blTxwZHJLoU+UvxwH/Aqk+mMPVJgv3k3YwPGqOXarFlghscZOKDKHV4raRpvtbdo nKY6z8yGmtT7vir/T1vzpkW00Ebm8RackF1i2HfYrI0bt94yKhdVA2yAjbLN8TindfVlgm LbYVNDf243rYQezLQlefpYiamuk+iB5upHl/Hf1UFCRe3t+8j9Nc5ebY1zLW4tUWxis+Ll OvvfhC7p1n6k7ahHJWxOR+WRFOqKK95Fcj6qpa+26MY03bW/iibKh1GWxAaATA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690798771; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v16GS4bcPgXubu6zg/xsRqgp7LY5t94J0pFTVC7YOBg=; b=Ll874X6WVsyBo9IaWJK6mqRxIdUuwt2sxE5slS61UqgasON3E0W4kIA9Z2PFe+Kk6+vmAs NecD8ALtAxsn2dAQ== From: "tip-bot2 for James Clark" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Cc: James Clark , "Peter Zijlstra (Intel)" , Anshuman Khandual , Ian Rogers , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230724134500.970496-4-james.clark@arm.com> References: <20230724134500.970496-4-james.clark@arm.com> MIME-Version: 1.0 Message-ID: <169079877090.28540.17067379324093297410.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772312600133839210 X-GMAIL-MSGID: 1772933063997506226 The following commit has been merged into the perf/core branch of tip: Commit-ID: 80391d8c387d406e2ec79776ec834666ab9611b0 Gitweb: https://git.kernel.org/tip/80391d8c387d406e2ec79776ec834666ab9611b0 Author: James Clark AuthorDate: Mon, 24 Jul 2023 14:44:58 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 26 Jul 2023 12:28:47 +02:00 arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability 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. Signed-off-by: James Clark Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Anshuman Khandual Acked-by: Ian Rogers Link: https://lore.kernel.org/r/20230724134500.970496-4-james.clark@arm.com --- 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 2e79201..d712a19 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, };