From patchwork Fri Jun 7 20:31:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13690645 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 B3BA3C27C55 for ; Fri, 7 Jun 2024 20:32:31 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xec+lbG9EyoLe7UNjHqki2gbYJa8vunFeOC1K0Io+yY=; b=bCLNhD2XTOAAZF 0EFtUhe77rTdY2IrACDkZZ9qtqSVT9C4GiuoI7qVeoTDPGpwRUHOAZ/RAOacwx1P5YUuEvQpRQRxs Fhas1ku48vY380MOPS/hA7X0aY4yuIgIYihAhanDD4u2XGw66+Ila7aRJK1Ar65DclF4bdvAvBPPJ qltNPpoCSvQPmgZKeOis5nvyCc0qRJ18ZBaTla0g4UybY6w6+9r9lZVQ4lKrpnMQpdRdMAfxpYm0q kgi/bI2GvzzcKK4L4cl0elUIjbq4kyEjPG3sKxm/PTgqy1m9uSraBOqHYWfxKwf96ZZKEd8FOtJJ6 NXqKmqJB/MXgnG8JxHBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFgG0-0000000Fa8O-1f04; Fri, 07 Jun 2024 20:32:16 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFgFs-0000000FZyw-1Cwg for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 20:32:10 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3E7E2CE1E7A; Fri, 7 Jun 2024 20:32:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9961EC32781; Fri, 7 Jun 2024 20:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717792325; bh=HBZLgS2LXgUqfTn0Nl4TrmtgYXpXNMKYvKyVmoxUwjM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=WfNPxBQmwRVXcwIST4BC7IJCXp4/rTNUJzAVD1GARUWz+0AQo/etwkM3OsQv8Vo0p XESZqf74bQPPhqiZOiEcKeRq+UT6ew2fETMERBLxdZ89F8pSL3jTLlSP440aC96oK4 en8jJV05w0ydNPZFs0NiGWMkfCsv/XrQOAM6NP1lJXq7DfwTVisEtKWYT9qrJ/i2fw 2ZBEpyMjbiN1r4JPzUK2JFmDXXJcUijg3kRygcklKYFUZSKfmFpJ2XUC2If3yjbAlp az42GwH5bBlFdXzTSAs5xeKSP35ihrxkF4QJ0sngzZo4/3Ivh3O6uWZ+BwCCvYyX6b w+Cq5myiqzu6w== From: "Rob Herring (Arm)" Date: Fri, 07 Jun 2024 14:31:27 -0600 Subject: [PATCH 2/9] perf: arm_v6/7_pmu: Drop non-DT probe support MIME-Version: 1.0 Message-Id: <20240607-arm-pmu-3-9-icntr-v1-2-c7bd2dceff3b@kernel.org> References: <20240607-arm-pmu-3-9-icntr-v1-0-c7bd2dceff3b@kernel.org> In-Reply-To: <20240607-arm-pmu-3-9-icntr-v1-0-c7bd2dceff3b@kernel.org> To: Russell King , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev X-Mailer: b4 0.14-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_133208_778067_7D275477 X-CRM114-Status: GOOD ( 15.00 ) 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 There are no non-DT based PMU users for v6 or v7, so drop the custom non-DT probe table. Note that this drops support for arm1156 PMU, but there are no arm1156 based systems supported in the kernel. Signed-off-by: Rob Herring (Arm) Acked-by: Mark Rutland --- drivers/perf/arm_v6_pmu.c | 17 +---------------- drivers/perf/arm_v7_pmu.c | 10 +--------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/drivers/perf/arm_v6_pmu.c b/drivers/perf/arm_v6_pmu.c index f7593843bb85..0bb685b4bac5 100644 --- a/drivers/perf/arm_v6_pmu.c +++ b/drivers/perf/arm_v6_pmu.c @@ -401,13 +401,6 @@ static int armv6_1136_pmu_init(struct arm_pmu *cpu_pmu) return 0; } -static int armv6_1156_pmu_init(struct arm_pmu *cpu_pmu) -{ - armv6pmu_init(cpu_pmu); - cpu_pmu->name = "armv6_1156"; - return 0; -} - static int armv6_1176_pmu_init(struct arm_pmu *cpu_pmu) { armv6pmu_init(cpu_pmu); @@ -421,17 +414,9 @@ static const struct of_device_id armv6_pmu_of_device_ids[] = { { /* sentinel value */ } }; -static const struct pmu_probe_info armv6_pmu_probe_table[] = { - ARM_PMU_PROBE(ARM_CPU_PART_ARM1136, armv6_1136_pmu_init), - ARM_PMU_PROBE(ARM_CPU_PART_ARM1156, armv6_1156_pmu_init), - ARM_PMU_PROBE(ARM_CPU_PART_ARM1176, armv6_1176_pmu_init), - { /* sentinel value */ } -}; - static int armv6_pmu_device_probe(struct platform_device *pdev) { - return arm_pmu_device_probe(pdev, armv6_pmu_of_device_ids, - armv6_pmu_probe_table); + return arm_pmu_device_probe(pdev, armv6_pmu_of_device_ids, NULL); } static struct platform_driver armv6_pmu_driver = { diff --git a/drivers/perf/arm_v7_pmu.c b/drivers/perf/arm_v7_pmu.c index fdd936fbd188..928ac3d626ed 100644 --- a/drivers/perf/arm_v7_pmu.c +++ b/drivers/perf/arm_v7_pmu.c @@ -1977,17 +1977,9 @@ static const struct of_device_id armv7_pmu_of_device_ids[] = { {}, }; -static const struct pmu_probe_info armv7_pmu_probe_table[] = { - ARM_PMU_PROBE(ARM_CPU_PART_CORTEX_A8, armv7_a8_pmu_init), - ARM_PMU_PROBE(ARM_CPU_PART_CORTEX_A9, armv7_a9_pmu_init), - { /* sentinel value */ } -}; - - static int armv7_pmu_device_probe(struct platform_device *pdev) { - return arm_pmu_device_probe(pdev, armv7_pmu_of_device_ids, - armv7_pmu_probe_table); + return arm_pmu_device_probe(pdev, armv7_pmu_of_device_ids, NULL); } static struct platform_driver armv7_pmu_driver = {