From patchwork Thu Jul 6 20:55:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13304159 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 61602EB64D9 for ; Thu, 6 Jul 2023 20:55:47 +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:References:In-Reply-To: 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: List-Owner; bh=aGt2VY9M6awUsOI0qavbiW6SvlyOhVUDjATd+9e2gSA=; b=URS3zvr8P+TLjr 1NLg2VHej/NEbVZDrT5gXlcp7yM8wUUMPzhRfNKTpQeqPH8pwecicRF0tWSL9VDnXfvFRp8y5g2Og a0BGI1hKX3oHLDrs1J8M0KKXrEbtC5EVy1a8wzxvf7Dg+2F173p/TP2Yx1xrHIRlqVACF06eZdwo+ Jsq3Ca+afK0UTeaGpH29z2ea+kM7bnee0JWXl/8e3f+26xHotOPJrjNMLvp4mxtMrNAQ1eM0FtaZS gAkubXtQEldyFdTujzkpxmOL9SLRya7j1SmKtuiu8PBNmslLG4ID/WJu/B9XIKxJoJY73ztwvVP3m gsiXF5lxsraZ6/CVnWFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHW0R-002edI-0z; Thu, 06 Jul 2023 20:55:15 +0000 Received: from mail-io1-f43.google.com ([209.85.166.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHW0O-002ecO-2G for linux-arm-kernel@lists.infradead.org; Thu, 06 Jul 2023 20:55:13 +0000 Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-78372625badso42053839f.3 for ; Thu, 06 Jul 2023 13:55:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688676911; x=1691268911; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=781hmHvNO59Ce4e05rVFQVLl4Gj7HUr6rWG6tbtSkTg=; b=kX5xm/knrBhWxUybT0y05T55RKnntVKOPV9vA3Lv8NWOmkcnh9rPocqtmMAQkWguQL MYk1VZOp3TzTR2v5SlikFb7EWQ/+g9+9JG9NVkl2m179RjL1CIEbJhTykk7WXh2XaylP drggIl2O9tpL8SH/zzU+piENNE1B72thlsS9H8AAQL/QDKQ/0H22dj7R9vxXrPqA8iCt 6OSuaODPOiw/L+2JmfEfu5kVybZTMFgmwQLWMpptKXuESj8Sj4t/iccGaPwXo6Aq59qy oXY3vzpso9X1WBHSsGBsbMbL8STDcEcDXmB9fS8fHBavKn7PmQNsXx7VtyAeqooco1QH Weag== X-Gm-Message-State: ABy/qLb8FuJo3bewINtHDGBrtwNpYGP9VKjPZ5rrS2/otvNkdQXCRQhu E2tIi4f75WVDPSenvvSBLw== X-Google-Smtp-Source: APBJJlFTbf0DEJsDabvrCUGjZEyi4enCSM73H3xGdf3q/7mCzrHhF/smdG5Q4DD9PEPZ7v2GhJECkw== X-Received: by 2002:a5e:c009:0:b0:783:6190:f913 with SMTP id u9-20020a5ec009000000b007836190f913mr3129046iol.4.1688676911506; Thu, 06 Jul 2023 13:55:11 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id dp21-20020a056602069500b0078647b08ab0sm778513iob.6.2023.07.06.13.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 13:55:10 -0700 (PDT) Received: (nullmailer pid 308623 invoked by uid 1000); Thu, 06 Jul 2023 20:55:07 -0000 From: Rob Herring To: Will Deacon , Mark Rutland , Krzysztof Kozlowski , Conor Dooley Cc: Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] perf: pmuv3: Add Cortex A520, A715, A720, X3 and X4 PMUs Date: Thu, 6 Jul 2023 14:55:04 -0600 Message-Id: <20230706205505.308523-2-robh@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230706205505.308523-1-robh@kernel.org> References: <20230706205505.308523-1-robh@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_135512_737641_49F43CBB X-CRM114-Status: GOOD ( 10.74 ) 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 Add support for the Arm Cortex-A520, Cortex-A715, Cortex-A720, Cortex-X3, and Cortex-X4 CPU PMUs. They are straight-forward additions with just new compatible strings. Acked-by: Mark Rutland Signed-off-by: Rob Herring --- v2: - Also add Cortex-X3 and Cortex-X4 --- drivers/perf/arm_pmuv3.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 08b3a1bf0ef6..d2dffb4e9d07 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -1266,9 +1266,14 @@ PMUV3_INIT_SIMPLE(armv8_cortex_a76) PMUV3_INIT_SIMPLE(armv8_cortex_a77) PMUV3_INIT_SIMPLE(armv8_cortex_a78) PMUV3_INIT_SIMPLE(armv9_cortex_a510) +PMUV3_INIT_SIMPLE(armv9_cortex_a520) PMUV3_INIT_SIMPLE(armv9_cortex_a710) +PMUV3_INIT_SIMPLE(armv9_cortex_a715) +PMUV3_INIT_SIMPLE(armv9_cortex_a720) PMUV3_INIT_SIMPLE(armv8_cortex_x1) PMUV3_INIT_SIMPLE(armv9_cortex_x2) +PMUV3_INIT_SIMPLE(armv9_cortex_x3) +PMUV3_INIT_SIMPLE(armv9_cortex_x4) PMUV3_INIT_SIMPLE(armv8_neoverse_e1) PMUV3_INIT_SIMPLE(armv8_neoverse_n1) PMUV3_INIT_SIMPLE(armv9_neoverse_n2) @@ -1334,9 +1339,14 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = { {.compatible = "arm,cortex-a77-pmu", .data = armv8_cortex_a77_pmu_init}, {.compatible = "arm,cortex-a78-pmu", .data = armv8_cortex_a78_pmu_init}, {.compatible = "arm,cortex-a510-pmu", .data = armv9_cortex_a510_pmu_init}, + {.compatible = "arm,cortex-a520-pmu", .data = armv9_cortex_a520_pmu_init}, {.compatible = "arm,cortex-a710-pmu", .data = armv9_cortex_a710_pmu_init}, + {.compatible = "arm,cortex-a715-pmu", .data = armv9_cortex_a715_pmu_init}, + {.compatible = "arm,cortex-a720-pmu", .data = armv9_cortex_a720_pmu_init}, {.compatible = "arm,cortex-x1-pmu", .data = armv8_cortex_x1_pmu_init}, {.compatible = "arm,cortex-x2-pmu", .data = armv9_cortex_x2_pmu_init}, + {.compatible = "arm,cortex-x3-pmu", .data = armv9_cortex_x3_pmu_init}, + {.compatible = "arm,cortex-x4-pmu", .data = armv9_cortex_x4_pmu_init}, {.compatible = "arm,neoverse-e1-pmu", .data = armv8_neoverse_e1_pmu_init}, {.compatible = "arm,neoverse-n1-pmu", .data = armv8_neoverse_n1_pmu_init}, {.compatible = "arm,neoverse-n2-pmu", .data = armv9_neoverse_n2_pmu_init},