From patchwork Mon Jul 10 12:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 13306860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52BF1EB64D9 for ; Mon, 10 Jul 2023 12:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JuL/da55ARfTv0brtz0gJFNq/iHX4ZNaWjVNjooVhQs=; b=U6KRoQbAG4enna rPZlVOSih7/WQzBxu3G9MnbV+XNOIbPwEsFwmuVwgNc6T6VCPBbYrSUZrkd+wzsAqyvbgDLXcyvUt 45QdLku6aZuZmZECDCwt0iP3gKAQMxHvE5Z78ZgsKvcqNFy/kFTL42O754qsQoO5F9QMVwff14ccq 2ZIS4bfh7RsP2M5hyvKF7gT9JTEcF0LlcauriGXCJSw+SOABLPzjVfIVAyygC1vI1TclDAnH1c4pB z6uTLc++btMwQgeEVqq2XEheZLIl8s9xlm4ua5DXkcYvQmrpsoAxRJfGK8DK8AAPn37z+cMaYDbQL eZVvIxfy4cwcjF0tIsHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIpuA-00BaAv-0u; Mon, 10 Jul 2023 12:22:14 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIpu3-00Ba4Z-2V for linux-arm-kernel@lists.infradead.org; Mon, 10 Jul 2023 12:22:11 +0000 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 E658B2B; Mon, 10 Jul 2023 05:22:40 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.29.214]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C59153F67D; Mon, 10 Jul 2023 05:21:55 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com 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" , Will Deacon , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/4] arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability Date: Mon, 10 Jul 2023 13:21:33 +0100 Message-Id: <20230710122138.1450930-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_052207_877309_2868600B X-CRM114-Status: GOOD ( 14.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This came out of the discussion here [1]. It seems like we can get some extra big.LITTLE stuff working pretty easily. The test issues mentioned in the linked thread are actually fairly unrelated and I've fixed them in a different set on the list. After adding it in the first commit, the remaining ones tidy up a related capability that doesn't do anything any more. I've added a fixes tag for the commit where PERF_PMU_CAP_EXTENDED_HW_TYPE was originally added because it probably should have been added to the Arm PMU at the same time. It doesn't apply cleanly that far back because another capability was added between then, but the resolution is trivial. Thanks James [1]: https://lore.kernel.org/linux-perf-users/CAP-5=fVkRc9=ySJ=fG-SQ8oAKmE_1mhHHzSASmGHUsda5Qy92A@mail.gmail.com/T/#t James Clark (4): arm_pmu: Add PERF_PMU_CAP_EXTENDED_HW_TYPE capability perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability arm_pmu: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability arch/x86/events/core.c | 1 - drivers/perf/arm_pmu.c | 10 ++++++---- include/linux/perf_event.h | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)