From patchwork Thu Jul 6 20:55:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13304158 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 2FC94EB64D9 for ; Thu, 6 Jul 2023 20:55:41 +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=Z9UICcHiuNrYGH4i/6XjgKNnDtYzLU6LFtB03Ke6c5c=; b=BWa/VT1AeIUVi7 dxSLAczamcMfrs0gltgIaCWWyhhV5ZBoJglXQUbafZpUhdbct+ukoHWcX1xrXSy9Cu6M4R2YNQYG9 Q6CKQPeUIE0pcANM831LLpmQYsbwm+AYU7eP1BlXQyjmqDiTrHBIHdHinSpNBsaUpJSOBK4pLlaOb bPUXJXvWEOaHRzTD8GQhm/Rmy1Wzwd5G8/QF/N6g5pQkWK65qF6xU45hhHG2xSdqhLNu5waIGDBcq 7RFGePocQTv7lgZ2wQQ2sNtFLfdifqOSbaSwQA9Ko1XiLM8s2bvcI5BUaK5wRUDYIaPhmvgVghBV+ a1sgQykFfgvbs889QyUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHW0O-002ecN-0C; Thu, 06 Jul 2023 20:55:12 +0000 Received: from mail-il1-f171.google.com ([209.85.166.171]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHW0M-002ebz-0P for linux-arm-kernel@lists.infradead.org; Thu, 06 Jul 2023 20:55:11 +0000 Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-34611de0ee4so4341185ab.0 for ; Thu, 06 Jul 2023 13:55:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688676909; x=1691268909; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aVukZwI0IOMjnv4hyH2oqxidljYpWmvRhbJtUvocg6g=; b=TKrC7Dh3J3AjL8kgcUC2fQTMpnoKSqc+BN/wSw9vZPChHLAizW9lGpJ8pLGsny7a+v z/SliEIaJm19Tp7LqTCCaovAVCR8KbaMA0FwKxJCbIL7Wh611pXQ/yxjBaVJBYa0mlXd yvOaipXRLFXju72/+tf3Z3/oVd/k6wnjgXrR7i6lIqlyYLyDL0MZl1nXgj2IzaedhIkO 10s5Mio/Pr1YHgndxBp/fQtO9Zxs3tPqkBAfAVvuy5A8IqxkBGDhIUeCeBOl/K/FfChB v8dgqtaaOBhh9ndtuGN+Fr1QaLWKU3DQtEN5RLnI2dguHA91txEXtCEBPxt/r/BZA4t0 9nYg== X-Gm-Message-State: ABy/qLaOdDetyzb1rxeHQIEDURIpzR706Dd0Lq7ksNVkrTOo4LdFlN7t jtn2/gJ3suM63SbgBnlgO6TRjPDKeg== X-Google-Smtp-Source: APBJJlEtrBC8b2uceobgUA8vZfqeg1x06SpsIhly69f5IFf1Mwk90kWZGYAtdyD12QvaqV4SGT0btA== X-Received: by 2002:a92:dccb:0:b0:345:dd77:8ab9 with SMTP id b11-20020a92dccb000000b00345dd778ab9mr3059918ilr.11.1688676909378; Thu, 06 Jul 2023 13:55:09 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id w16-20020a92c890000000b0034632ab31c9sm767804ilo.21.2023.07.06.13.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 13:55:08 -0700 (PDT) Received: (nullmailer pid 308606 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 1/2] dt-bindings: arm: pmu: Add Cortex A520, A715, A720, X3, and X4 Date: Thu, 6 Jul 2023 14:55:03 -0600 Message-Id: <20230706205505.308523-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_135510_164921_32E20AC9 X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. 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 compatible strings for the Arm Cortex-A520, Cortex-A715, Cortex-A720, Cortex-X3, and Cortex-X4 CPU PMUs. Acked-by: Conor Dooley Signed-off-by: Rob Herring --- v2: - Also add Cortex-X3 and Cortex-X4 --- Documentation/devicetree/bindings/arm/pmu.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml index e14358bf0b9c..99b5e9530707 100644 --- a/Documentation/devicetree/bindings/arm/pmu.yaml +++ b/Documentation/devicetree/bindings/arm/pmu.yaml @@ -49,9 +49,14 @@ properties: - arm,cortex-a77-pmu - arm,cortex-a78-pmu - arm,cortex-a510-pmu + - arm,cortex-a520-pmu - arm,cortex-a710-pmu + - arm,cortex-a715-pmu + - arm,cortex-a720-pmu - arm,cortex-x1-pmu - arm,cortex-x2-pmu + - arm,cortex-x3-pmu + - arm,cortex-x4-pmu - arm,neoverse-e1-pmu - arm,neoverse-n1-pmu - arm,neoverse-n2-pmu 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 (Arm)" 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},