Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1285528lqt; Fri, 7 Jun 2024 13:33:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/XWxfXUNv/jRxopfdNP3S6WjQ4ymL/F3P2Lu4b2Mn26v7bcZPutNP98g4KhIn3JoJ3k5ZfUdAS1R3eqDPsCMYrzTSeAvB8CI1MiZa3w== X-Google-Smtp-Source: AGHT+IHEAWDcvMP1a8/Osyfp6QWxTATh3tIIG7x1B/q0SQYOu6m6xcAln382S0OgDZPHyHSVvlTX X-Received: by 2002:a17:902:c40a:b0:1f6:2269:104a with SMTP id d9443c01a7336-1f6d02e3253mr44365085ad.20.1717792414439; Fri, 07 Jun 2024 13:33:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717792414; cv=pass; d=google.com; s=arc-20160816; b=PW8i4mye1YuL9hQS01PmPb2Nl7t8ZDBChrBn3kRjkCBE0y0F8jcoV2GE+o6i4odeuP ORXv8An9vLwTaol6s382RgTjTBf/VXyqqIf0ZaWPS5kD1mJV58t0UA2zJ0rFX1phSIVJ ZSFNUltx2U8VGkKNXb3qXa54ZhCnywbsnHi8gz7gf7FVLj/Efb4kbp1cytP9cRtpCFuU JmSNw1sISsTiOqFLrPQxHuUzkSVBiwOm7wUmP2rwoY1QyxHgJTmjVHew7nude9NkumTo 6qxbaNCBilWb/hj8T523AVtdpEtHbUXqBCrWmaGvrWunhKUxjahZ2LpXRvpYKYxjylSc PjZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=5IoZSQyXVRGzytnMDEAv+QFaA2Io9huc1ZaBWdKuIqQ=; fh=7MWtQIrhu8/8z5W30BSUbJmbB5Xoil/A+Q0kLnK8lig=; b=CA9cHjfinZFoo5FkQAzK6SUV4z5Y+dhEWAn7I4QNBYzmWJjPFB7MbC89VQ8TlTRyrU GDUStbC2fKLSLakACLmD4c9PCIK75zq3GbnCKBZX3zGPB5v8cTybxdEnsqobCZnz3Xj+ MeT/6mCFXkMb8vZekPYGOboBDCXjL6HxG7/LL/u1YZI+LLO+F39iXMAJfZ3Pc16tOAXj ZEegMSEKyvAs1pPOjA4Wz1AFuHtO6+nzaPBe9S9Aby54ziN7l+MYU1fhwqMt1cunCGjD X89+NfPYHsiLb9B52llmMMSl/E2TSEPIL6qpDnkpgtAVPYP6fbia6JUbaUdGUAQJF2gC 9ZoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WfNPxBQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d6305si5631885ad.261.2024.06.07.13.33.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 13:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WfNPxBQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7ADD5284F4E for ; Fri, 7 Jun 2024 20:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CFD01552F8; Fri, 7 Jun 2024 20:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WfNPxBQm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F8EB154BFB; Fri, 7 Jun 2024 20:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717792326; cv=none; b=bchkU6eFkNYvTyejCaJykS4cQsuKjWQfZVQN/Ug17GjrXTZvchbKFHf1Qe2AD4PL5+66VTXYqvi55OhCm/900gJfhjYrvtAAe66fD9rUmzr06uGCnC5TgOsl594k4XEnkC+1ZLS/EN9peDoqADgmq2KXeUOkx0Jkuw03eVvIW0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717792326; c=relaxed/simple; bh=HBZLgS2LXgUqfTn0Nl4TrmtgYXpXNMKYvKyVmoxUwjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V/ebQSj98BtJRTnPiI2xk3MmVRm9hrs3jg/+2i02ByRNjBLYCF/VNeVhCnDFlgw3bIMiCWwb1P4e1q8vVFaxbJs101mgi4Sta4WsKfM/3krg1TAAYgxQnJfGm1QAG1iwDP1Vs02EmPghAirfCHU+x4ZHCKDmK/CmOujvEjwds8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WfNPxBQm; arc=none smtp.client-ip=10.30.226.201 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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) --- 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 = { -- 2.43.0