From patchwork Fri Jun 30 18:56:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 114862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10608352vqr; Fri, 30 Jun 2023 12:28:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEliFaUCE0x0oLaWFJDyGTQSxq2F7zuvPegSuoh+Wn3xAQ6ir+GieGbK3Fj6EfJuAvDzWM+ X-Received: by 2002:a17:902:ec88:b0:1b7:c0b3:b17d with SMTP id x8-20020a170902ec8800b001b7c0b3b17dmr3397226plg.5.1688153301800; Fri, 30 Jun 2023 12:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688153301; cv=none; d=google.com; s=arc-20160816; b=fvgHpwdVDSTZAvJLpboarXjU5yxS0ZOHOYhCTOM7MXFlBAoYoxWA1gPzDCcp/AsGuk qJvnGuv/xmEPIHWVeWxp6odIM8b8sam7PbgBK6sGWf3nVxkuvCtoEcfZbAwq4Dcbyc/b CsssZwbpdyeBRSbUHQtWRBm5bSFrwosHf+metaooGLKv5fiIDd6+FTlRJni78tr10HRP 86/Km48Zfitod7cHvgZjNLzZ0kVm6Et75Dn6hj/39PPgbrvsylbMw2DmdUUavPe6RYrJ 1Eoqdk21om3lUyLun+Ke3YkwLEye+WypwfoClIIvR8ZufnV3cxeTtAcoZRSdJc9wD/gL dP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SBsvzXB7J1T8smPYnRti2Y7WQp0yg4tNQa4bMVJSe5s=; fh=cDQi4Pm1tHm7gzJlWH8xWDoU9UqoGVhh36OVtlQdh1I=; b=khR6x7C1LvUwP0nQ9tAXLHRoMr3hpI81dPMrVFyIBMVh2R825lFloD1A9g47WkCnQN xVTZY1SE2oyaHa6iaL3L5VZqi9dBl5YCvRzYOCxtrotw5+QyTyqJy/ZOfxFw4TAkzTtp X2wvenBUqQW2Nb0LfGrC+rqB3gsDi5kldszMh+eC0ejC/21TYed/ukq0j5anr9f5amsJ fZgHQml5Mbxe2XGD9dIMgEiE3EdQ/U5dA7kao3sJ/s1WLY2eR1mm/8BlcTxB3qdxGzil ludQO7Z1eqoYRjq9TnqqeigH86wFSwc1QLapHXWPv/5Kdd/KA1hz6lcnnj7ZNDxtpZ4F ow6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a1709026acc00b001b807a250d9si9418843plt.275.2023.06.30.12.28.06; Fri, 30 Jun 2023 12:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231537AbjF3S4K (ORCPT + 99 others); Fri, 30 Jun 2023 14:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjF3S4J (ORCPT ); Fri, 30 Jun 2023 14:56:09 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF443C17; Fri, 30 Jun 2023 11:56:08 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-78372b896d0so92103939f.2; Fri, 30 Jun 2023 11:56:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688151367; x=1690743367; 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=SBsvzXB7J1T8smPYnRti2Y7WQp0yg4tNQa4bMVJSe5s=; b=GhDL6YLOXj6zcpmZQKDlxQAmtZSao/M5/o59yMiA9Zu/9NQ8LW3LJFhvL1xno1l1G2 wlf4Ug48xdGf3GBPZxMNr6E474vApY+BTPQfeBZAYnXtemA2lBTKQlVjnaDQX++jVf3p Lga+axq3UpyKpPwki7k3XVGUT8J5CA8hinVv9KnBoraa9B3yEMJWrQyPazadNcZ12rf6 AP1akpZqtiHORY/bFVgEx+Hd9MckwMBqTLl5tra3gM+gg5nn8m2E1RVxY4PC2oCRURPr 83FdnK8HwLsI7dAU/WXkxrwGf1oiuO0hoVnW5l3R9vQwE9DzV504uUHw5unolnaJ8Al2 89QA== X-Gm-Message-State: ABy/qLapXf13iQP7H17TNUeMCpjOaZjkK/XsCHHn1ApvcKC/tyLZKgd4 C2ffPMo6DOczkaSNc89tvg== X-Received: by 2002:a92:d48e:0:b0:345:6ffa:63c5 with SMTP id p14-20020a92d48e000000b003456ffa63c5mr2738484ilg.32.1688151367484; Fri, 30 Jun 2023 11:56:07 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id b4-20020a92c844000000b0033e62b47a49sm2154252ilq.41.2023.06.30.11.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 11:56:06 -0700 (PDT) Received: (nullmailer pid 2175660 invoked by uid 1000); Fri, 30 Jun 2023 18:56:04 -0000 From: Rob Herring To: Will Deacon , Mark Rutland , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Date: Fri, 30 Jun 2023 12:56:01 -0600 Message-Id: <20230630185602.2175559-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770157036704188907?= X-GMAIL-MSGID: =?utf-8?q?1770157036704188907?= Add compatible strings for the Arm Cortex-A520, Cortex-A715, and Cortex-A720 CPU PMUs. Signed-off-by: Rob Herring Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/pmu.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml index e14358bf0b9c..0cc468d6c372 100644 --- a/Documentation/devicetree/bindings/arm/pmu.yaml +++ b/Documentation/devicetree/bindings/arm/pmu.yaml @@ -49,7 +49,10 @@ 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,neoverse-e1-pmu From patchwork Fri Jun 30 18:56:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 114857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10602613vqr; Fri, 30 Jun 2023 12:17:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEO9IEYhdDBkHDZrZwa99G3JBdBHZIC2G96U8q0OVpj3qMpCkc1vOEGn+WxWnfqIyI/G2gm X-Received: by 2002:a17:902:da91:b0:1b8:6a02:9abb with SMTP id j17-20020a170902da9100b001b86a029abbmr5538641plx.0.1688152623181; Fri, 30 Jun 2023 12:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688152623; cv=none; d=google.com; s=arc-20160816; b=azYOOMXXnmzsdZwiTelvY2pYr3180h6tM137+3ggzXLnovum1T+opU/oC4ZZ7sT4E/ 1gp+wIlPDLw3zhM6KsRzwcXBVdvbVYJJqkYMECW/FyXVsCq/6pVUt30JaVX+HiflmCOx Nq6b7s5EDR0PpmXSaJWPwGERDrO/I9EqVoTmaDY6X+n067ynus0Q6TMX6NEK8ginNN3R ZOXnKmeTCt/+0fTl80MHE7tzEvHgOZSD9JFxJ4o7pXoc9/07+FhE1el9Z0G3eUXVdcDT odp9VifjCjPsX2MmEdXhpt1IjWDXtG2vP8HA+kfHn8LsQsbnru+CuBdWJXjElHS5SmoA 9rYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Qg6XVnmpWeSRuQrQC40KAOfl9x3/Hr4okb3QeBv6fgE=; fh=cDQi4Pm1tHm7gzJlWH8xWDoU9UqoGVhh36OVtlQdh1I=; b=jiGLbxY3VGb6XFFg3DJGc+Y4olsWF9euM2EK97VPcsmNycejmbezdc8i5IEVNypdO8 RZRP4CRBQ36QurQlfOfTkPMDRfTJaRnXsBFGN53lmTki1JCgMzjdXUz6uV2zctocGxyE +CTtc6Q28laXr+eKAtR6bOdTgZm3dSpyvL3Y4dB/kmY3xyjYtqpMx1XPGb5rYaNKRLwY DHY4lJ+a5W8BMtRfQqp0AwG9rBLwxgwFiARiuNWeyf32wPWN2Ur+XzPBsa4UMlzkfnO0 bifFKtLJXTzmiQOOCB6YlSAXVT5pZTk25JzF1ZrOho5+iO+izU2x1rEI046LQkUeomz0 wmdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q62-20020a17090a4fc400b0024e35ef410fsi12937183pjh.131.2023.06.30.12.16.48; Fri, 30 Jun 2023 12:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231946AbjF3S4O (ORCPT + 99 others); Fri, 30 Jun 2023 14:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjF3S4L (ORCPT ); Fri, 30 Jun 2023 14:56:11 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 595713C17; Fri, 30 Jun 2023 11:56:10 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-77b00bb3fd6so51891439f.1; Fri, 30 Jun 2023 11:56:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688151369; x=1690743369; 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=Qg6XVnmpWeSRuQrQC40KAOfl9x3/Hr4okb3QeBv6fgE=; b=geiLsChRorAwTUt670HMznbhiWFUkVbHOfMmP1GXE36rgASWH/+pJWY12WBSiKnS0B /1hzQkTf7kD3uUbNF/jIheXKmABUyh2KDPwtWvygXr9uQ48Ze/jzx1UFiLxieSZngicy 4cnbQpBO9i6tEQpNWJpnRhuiE/VBfkNgG6LL0j1RNVdw1C6XaQW8GlibRxp6ZbVlvFKH JVe8iSOtQ+oTOQW8OPaax81uyZARXEqZVLEa5bKaCkmqx0P8qyg/lS5eBtdi9lExbQ+S GBwl12I3Jy6mMLrCVS05RXMJfcrSJa2VA7y6L1pCv1t/vG2RTQrp1pDzqvfQIM/cI1uR 74/w== X-Gm-Message-State: ABy/qLaBYmjrEdZMqfeKuMZ+k+6l7fKiM4wIIFyq5hm3zy5/s90jlAFa B+w69bU6+gYE/BaQyFg4bg== X-Received: by 2002:a05:6e02:78f:b0:345:93da:1fe with SMTP id q15-20020a056e02078f00b0034593da01femr2817222ils.10.1688151369566; Fri, 30 Jun 2023 11:56:09 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id d8-20020a92d788000000b0034233fd80d3sm4876420iln.22.2023.06.30.11.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 11:56:08 -0700 (PDT) Received: (nullmailer pid 2175697 invoked by uid 1000); Fri, 30 Jun 2023 18:56:05 -0000 From: Rob Herring To: Will Deacon , Mark Rutland , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Date: Fri, 30 Jun 2023 12:56:02 -0600 Message-Id: <20230630185602.2175559-2-robh@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230630185602.2175559-1-robh@kernel.org> References: <20230630185602.2175559-1-robh@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770156325406480076?= X-GMAIL-MSGID: =?utf-8?q?1770156325406480076?= Add support for the Arm Cortex-A520, Cortex-A715, and Cortex-A720 CPU PMUs. They are straight-forward additions with just new compatible strings. Signed-off-by: Rob Herring Acked-by: Mark Rutland --- drivers/perf/arm_pmuv3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 08b3a1bf0ef6..0bf522b05dc3 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -1266,7 +1266,10 @@ 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(armv8_neoverse_e1) @@ -1334,7 +1337,10 @@ 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,neoverse-e1-pmu", .data = armv8_neoverse_e1_pmu_init},