From patchwork Fri Feb 15 18:03:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10815647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A5FB17D5 for ; Fri, 15 Feb 2019 18:03:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 488EC2FD35 for ; Fri, 15 Feb 2019 18:03:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C6742FD87; Fri, 15 Feb 2019 18:03:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D8CCC2FD7D for ; Fri, 15 Feb 2019 18:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=8VSq56Ys/mAldNAQDsbcsXNbzoIkEFbcBTBuYIMJDFw=; b=nE5mgkgwu8/b2c TtOEGpXQkx5Vlw0CRGhddwkB2PR0Eitbc2I2HlIpzA/k1+IwUeFWBVIijKBbOwLm6p2BiYuWXZSqN s9l9f0FzEtz7r3P4iHgAj9c4LO4SbBTpibK+RUKtlUWFE0cFc2o/ntsQLg4xeejDJlD1qV3mmoCkN o+8Z6pW5oEPG3jxW+TgfUb+kkbeR+A6azrm4M3Hpm2rZ3EhBdRPsIn4+kDqBwdwCW0P9egnjyKcQA Ynv6y9LPFt7iVNb4EfR7pKpl6rHNGQ8Zw9rRdMR6A9FgS5CABzW/H0aLgOnZYBKFBLYb7Z87Oi4wk v9ZuzY15kGiXssST7uGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpV-0007EN-2U; Fri, 15 Feb 2019 18:03:17 +0000 Received: from mail-eopbgr40045.outbound.protection.outlook.com ([40.107.4.45] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpR-0007Do-KA for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 18:03:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i4KfwxHDjJUUFs8FvHHcNAwIf4GY4effT1telFKP1kI=; b=NAISE6rM1t3cXIjlzaFpN142nK0jHrACoIGJcce3+KStXAz8l+e/mhCRtQJfRwBzTfyuRCYUrh0kXtH6IoMnqJK54lMNjfvpoO5O2lioF/yT3nZ6pt/3qnb/naR+GfAm6ugTHWDr2/acXUqfsfauwx/8v/f3Gf432sywDc2G0T4= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Fri, 15 Feb 2019 18:03:08 +0000 Received: from VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849]) by VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849%5]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 18:03:08 +0000 From: Frank Li To: "mark.rutland@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "robh+dt@kernel.org" , Aisheng Dong , "devicetree@vger.kernel.org" , "lznuaa@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 1/4] dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor Thread-Topic: [PATCH V4 1/4] dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor Thread-Index: AQHUxVi0ykTl7DQMoU+RsFEws0qNyg== Date: Fri, 15 Feb 2019 18:03:08 +0000 Message-ID: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0008.prod.exchangelabs.com (2603:10b6:804:2::18) To VI1PR04MB4910.eurprd04.prod.outlook.com (2603:10a6:803:56::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=frank.li@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.5.2 x-originating-ip: [64.157.242.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a5e1119-2fb8-47e8-b070-08d6936fd707 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4893; x-ms-traffictypediagnostic: VI1PR04MB4893: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB4893; 23:ezX6hye3bWQT3GDZ4vOreIq0iG8sdXexldItRD8?= =?iso-8859-1?q?Np9M/ekNDw4VfuE?= =?iso-8859-1?q?JSn//kSy25K4L3LKKaJQ18/GrR96Gy36Ut8pkKEid0fTrNen4ALDpSycp8S8?= =?iso-8859-1?q?kTJb/o+g+93/ij8+ZhCdtoegd4lPh2/8IfzAOQE5kmzuF4UnoZOO4yfqPS0/?= =?iso-8859-1?q?vLnJXtXpsNLYY8SlTiSPXo1aFpPo9UWxWSyE6zoKb0gf28Y42iyMxMNjnExH?= =?iso-8859-1?q?NCvyzPOBof0bluceJ0uGywRz+VdBsIfPXOYUAsQGzNUjNEbY735hlu/y4n/U?= =?iso-8859-1?q?isYZH+hbCuvBXwd8TeCAlth4As9LKh+8aLPn5leoUPJeNRvGIZAq3nT5CMpQ?= =?iso-8859-1?q?oh4M8wdL4wRcn/famB36QMt/6YX4gg0baztPDfUVCp3ruDTfK385YcFCXfSx?= =?iso-8859-1?q?IRtyKY7xgufthJytWD1u8vYXLxwPev5TyVVu61fTzHLKxlrmT9NieLhILC4a?= =?iso-8859-1?q?JZKJVIfRO9iiqi9WNxXPKxbLWzqZnqN4RggKMIXWhAKJ0vFWHk6MIm1g6zAB?= =?iso-8859-1?q?BJam+K/N2FKkWDjEWAafB8ZST6TjCWCl9LdGJ40ag/iXyjXGGB1L9qtQDg4u?= =?iso-8859-1?q?Kw/5aUROQuP/fZeasPqfn1Vm7Q5Fkdk+P9faur8auMn4F6Yjp2sbgIP2Scvv?= =?iso-8859-1?q?Fj86LucQSFg2dJTpaimr+7J0wYv+vvZMxW2708/Zo/DBGil0vwdC6B/Wxzub?= =?iso-8859-1?q?jhZP0uN73U82DueunbmjrcVjt+zIG3w0iSFgGly4HXKK0p+muBueSZHt0eBo?= =?iso-8859-1?q?7aMO0z9p3VkXv4ZZYDG6U+CSUDWvdiyFn0u7/Ehr3coMY3pMhMQPphWqhZc5?= =?iso-8859-1?q?uiSPC4bMGvXh59g4ISJcA/uyUfTDab0OeQAvwhNbqz71mny4QAiassRtpUP/?= =?iso-8859-1?q?bZNoIUeBL/F84lalj6PV+rTdpHmh618cnSTd8/O8tpFJybMUfrujVvz4vpc3?= =?iso-8859-1?q?LcmXOTwZRKFmMOtQVrelHxETCF2PbRdyalvnTVSkiUeiV7cEwW7/iP1ndjCt?= =?iso-8859-1?q?LgG2FeyUcXNwlI/j0u/0p7M/Qi0s/04Afl33WRY0AeLvt23eQ/t/UW0rPdjS?= =?iso-8859-1?q?JTFNc03wbmr/ujEklax0se2zFB7GY1OE4GbSJpaYangJORA8Ninoxt24QLqj?= =?iso-8859-1?q?P+SbO3X81C/kwSlvGLQwRz4Cd75sEpgPE9Lycii86qQZlaxTipccq6vp++wG?= =?iso-8859-1?q?vDTRH1GJJNDzRhW9Kc2CzEJdqkywdi/llHm/Y58zJxeg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(189003)(199004)(36756003)(7736002)(2501003)(86362001)(110136005)(105586002)(186003)(6512007)(6116002)(66066001)(106356001)(68736007)(316002)(476003)(305945005)(6486002)(3846002)(4326008)(486006)(2616005)(25786009)(99286004)(7416002)(6436002)(52116002)(50226002)(97736004)(256004)(2906002)(81166006)(81156014)(2201001)(26005)(478600001)(102836004)(8936002)(386003)(8676002)(6506007)(53936002)(71200400001)(71190400001)(14454004)(21314003)(32563001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4893; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YVjBW1CmpODGkjdJS2mKcgqThZIKoUWgGqhUj8tXAPiWMi96Lx3vK0tZ2+EMChL9gbxZnbVOE9rugV1/YjNLh/Q16GHiA0tT43bYtRYjNoujtZ6a3+ndyNlPD7NPabDbFLlZ7BMZGuwGh5uz9zzzXbI+1im/ockxDKcBHxIgePOdmRHEfj0aVCU7HS/4SNmJl1zxfooe+6dL8Xjf2e5CspFAYva9FjQoznVAxTh3vl3VrqPJ+YczJxX1wnVaNsGtNuDNd7usg3kY9D0a6u0sQmD62p8o103JIK+vWhG1LR2RdkHoaFWBGuK4h4CQ8sR//r9KwOQzEa3amm3xvk7IV7mmRfBxpZBdR9GyoRGwlt9gAIQTqaUcw+Iwv2lMfYwFiK0csW7m3sIjDqxjVPAvAat5STTXgJqfIVkqS79baGM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a5e1119-2fb8-47e8-b070-08d6936fd707 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 18:03:05.6657 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_100313_662439_F831DAA8 X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Added binding doc for imx8qxp ddr performance monitor Signed-off-by: Frank Li Reviewed-by: Rob Herring --- Change from v4 to v4 * remove "standard xxx" Change from v2 to v3 * ddr_pmu0 -> ddr-pmu .../devicetree/bindings/perf/fsl-imx-ddr.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt diff --git a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt new file mode 100644 index 0000000..c667b87 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt @@ -0,0 +1,22 @@ +* Freescale(NXP) IMX8 DDR performance monitor + +Required properties: + +- compatible: should be one of: + "fsl,imx8-ddr-pmu" + "fsl,imx8m-ddr-pmu" + +- reg: physical address and size + +- interrupts: single interrupt + generated by the control block + +Example: + + ddr-pmu@5c020000 { + compatible = "fsl,imx8-ddr-pmu"; + reg = <0x0 0x5c020000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = ; + }; + From patchwork Fri Feb 15 18:03:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10815649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70148139A for ; Fri, 15 Feb 2019 18:03:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C9D32FD35 for ; Fri, 15 Feb 2019 18:03:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FF532FD87; Fri, 15 Feb 2019 18:03:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1BF902FD35 for ; Fri, 15 Feb 2019 18:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HBjgP4p7qnqaWedN63qUAD0vWFHgMMhYw53nWGgQw3E=; b=akCx/xDE9VZOFr 6A+v6owuxhOa7WR7Y/BViyP33SdA1IFxFKjw52hL5BdT7njJP168yNMZb1ssoN3k5RiQj5P512x5w OmIQrmMMXuXdknpUy3m/4BvupLoZqUKCypVKIogtcgSfpVVHSk1EjcPlnB1xyVsXH+Gq0TRUcqj4P XEErtKgf5e3eWv2Vl7hBd63wm2fr0iPXtg60Onf6RNSSSOsWhJv2d6vXX4jzQS5hAnoEcoz+89Shz hys2KkYefjLZIIeE2TGYQQBot5F1inrQdIZBy1Av1ODLI8QHsELFWQMd7Abih1oHTAC9YYjvaeJWq K9pi3yMrZHVgNpZJBKcQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpf-0007Qm-7y; Fri, 15 Feb 2019 18:03:27 +0000 Received: from mail-eopbgr40045.outbound.protection.outlook.com ([40.107.4.45] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpT-0007Do-Rz for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 18:03:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PKyxRs8sZFdJ3TXWL2w37Bh0UhA9ZHRFzhelKXLSxgA=; b=ptUUxWv7QkXiLzJCXabIfZ59MqboFbdROGDQliKb0cfawDNRf5wmIOfqBe+pkwrV5ZOH8Oz6cWt1fA88N+PbW7IZk/ULQr3ylm1h8XXcMGT9mPB2owqGr5filNtc9ZYy+fk7ZpMB3F6Q4D1Yli36ZgmIR6hIi50kf6XqBFEL1rs= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Fri, 15 Feb 2019 18:03:11 +0000 Received: from VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849]) by VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849%5]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 18:03:11 +0000 From: Frank Li To: "mark.rutland@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "robh+dt@kernel.org" , Aisheng Dong , "devicetree@vger.kernel.org" , "lznuaa@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 2/4] drivers/perf: imx_ddr: Add ddr performance counter support Thread-Topic: [PATCH V4 2/4] drivers/perf: imx_ddr: Add ddr performance counter support Thread-Index: AQHUxVi2bLLd1F0MB0mj8IcJQsYY8A== Date: Fri, 15 Feb 2019 18:03:11 +0000 Message-ID: <1550253761-26841-2-git-send-email-Frank.Li@nxp.com> References: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0008.prod.exchangelabs.com (2603:10b6:804:2::18) To VI1PR04MB4910.eurprd04.prod.outlook.com (2603:10a6:803:56::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=frank.li@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.5.2 x-originating-ip: [64.157.242.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d40d032d-84c7-4276-9668-08d6936fd8c1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4893; x-ms-traffictypediagnostic: VI1PR04MB4893: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB4893; 23:oJHtuTlcomAg7k3oQ7mMU5mrzX3sZRFjb0z0NKU?= =?iso-8859-1?q?jA+4jkj0ubKd+wa?= =?iso-8859-1?q?7zr3MtcvyCpdzbjGvv1HLgTzUzsJjw53TLvmZX8fHJ0GB7M6CgzpOwoA7EVW?= =?iso-8859-1?q?jqyVi1bxEw8TyFPXyaT3xAviLvk9Adky+XxjDNzSHr3dISbRMF4Sgob9SlNR?= =?iso-8859-1?q?5BBbGc4Ho9OS7w9e9lXAy4JD6+Z1qQ3/2eas7C3QzGL0M3ABf3NDClO1UEpN?= =?iso-8859-1?q?UBlTbT+YQLOW6cojWmGeskBIaX4CzOhqH6031UNL7/hPihomD85647PgOqQ9?= =?iso-8859-1?q?VrpqiKavhXQLO38QCgh2qYdW9sNCnLljLdKKLc9MBLt+ESOeGqTvmF7CrnYW?= =?iso-8859-1?q?M64oFj1anDPsDBSNy3P81OiPImaRRs0cWkSSixC247gKh01B18vu2mD/mTDH?= =?iso-8859-1?q?4f9//XIQZX4QSqKgbaRoJ1V+U4iQ/G+Vri7HGv+lNDl8YtzJZs5IyTNOvkoV?= =?iso-8859-1?q?eNkxfwzjIuqO+ewCxhO84DfzP9YL+jFx/LD1Wt5qsVa9mbmYOXV1lmOF48l1?= =?iso-8859-1?q?8VfvQWxzpMZtrgfDYTxx8FaFvyZCPImQyziXEH8iw9M33rAISZ4iIyWoTtZH?= =?iso-8859-1?q?AnD+/S72YhcrrEqFB4spONOfNt1kW9AJbo4cSUPA5yYDqQNaaMywDc5d64lQ?= =?iso-8859-1?q?X3u2hp3eNbJ71ZGaoIzfoWnMih8azvibRe1IdFYHPtzwGLlidxiYFhRFu63/?= =?iso-8859-1?q?FDAlUpB10vKq9IazCy81AAhuXaEViSIoBVWUqZ067zJLJAK5nr3n0s9oAgyw?= =?iso-8859-1?q?8EDdYvfxTRw9B4dQLxoRMm1K1jb141euvrAgX/Hn1S9TId5WkfQ+p6IBVSka?= =?iso-8859-1?q?Rj8FqnJkOAwtATeUcsXmw7wP2FCUdpkemjAnOxV7UPc5KX5/VdcNyTNwPSiL?= =?iso-8859-1?q?QtbdEwUGxGdqugLMy3/bzgAZ1huSK1PBvRX6tatnFxfSjn7E882aETmw/y4Z?= =?iso-8859-1?q?Oh9ED8nVIgt+ha0XtU+j0Cps8m2KfaiokWwLloD7CnpZO5ED4JETy5LuPRQE?= =?iso-8859-1?q?UAiKQMT8VvHybAxWi7+Q8upz8RuSLqcTPBe5yiSNYlKXNoDBmzh/xd7Q/f68?= =?iso-8859-1?q?Q/b0bLHcwm/7PMeghTtFZ6jonXJNAWGCJwrQZvYd02GKelw8UNRVq29Xe/9+?= =?iso-8859-1?q?u5R5BvV6eZAbGs8lTGauEW7IZULzrLdv/qBqmWA9jyVIOUCgajCn1kMBUMH4?= =?iso-8859-1?q?p1B1R+ugGKD11dnGPLxAzndO/GlQerHsggP6sxxvRr2rmLtpYqSpl7H3Y/SC?= =?iso-8859-1?q?mkygCCLX9UeFUw1BCPIJHaj/qSa8V90gv+UIQaR5NMXtS7SvVFiVPcCPuqn0?= =?iso-8859-1?q?muXq40+PwGholaefGyZKI6EoB2p5SQ?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(189003)(199004)(36756003)(53946003)(7736002)(2501003)(86362001)(110136005)(105586002)(186003)(6512007)(446003)(6116002)(66066001)(106356001)(68736007)(11346002)(316002)(476003)(305945005)(6486002)(3846002)(76176011)(4326008)(486006)(2616005)(25786009)(99286004)(7416002)(6436002)(52116002)(30864003)(50226002)(14444005)(97736004)(5024004)(256004)(2906002)(81166006)(81156014)(2201001)(26005)(478600001)(102836004)(8936002)(386003)(8676002)(6506007)(53936002)(71200400001)(71190400001)(14454004)(921003)(1121003)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4893; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hwAg11I7augrpP1KblqNQPoVgTJej3ihKO45DWC9ImsfZqPFeStIinS+P+hTCOs7cXmLs/OJZNf9qhAEB8aw4IcUXAEpK3xmPTeNjswwV3LUY8XcvY1KqXY57bJkUxra2V7XMqI02X17IS43G/hNn3FSldAmyHd2ukqJ2kwGaQNnxqf8ApzUGIAhZ292iFPTGdSVXhL92SWMtVtLkAyaZFAxlZcqnQY4p8xBD1Yy0/l3jaGhuuNe/QdOuh7soJva8H120aEdAPjtTT9eIl6c/5Sba0ufdNVMGJMY5zEqbyrkNDxNzhMfa56Sx6O5MfPM8K9JWxiboM17lZ1d8FHdt8G8vDIhDFhQpHr4Ekw9cwJkCvxN1cj9/QuvbjhALjS5Q252TW6T3VrSc0mZPXHfuRZHCy8y1acK84friHNEnXk= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d40d032d-84c7-4276-9668-08d6936fd8c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 18:03:08.5417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_100316_043990_DCE01CE7 X-CRM114-Status: GOOD ( 12.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add ddr performance monitor support for iMX8QXP There are 4 counters for ddr perfomance events. counter 0 is dedicated for cycles. you choose any up to 3 no cycles events. for example: perf stat -a -e ddr0/read-access/,ddr0/write-access/,ddr0/precharge/ ls perf stat -a -e ddr0/cycles/,ddr0/read-access/,ddr0/write-access/ ls Support below events. ddr0/activate/ [Kernel PMU event] ddr0/axid-read/ [Kernel PMU event] ddr0/axid-write/ [Kernel PMU event] ddr0/cycles/ [Kernel PMU event] ddr0/hp-read-credit-cnt/ [Kernel PMU event] ddr0/hp-read/ [Kernel PMU event] ddr0/hp-req-nodcredit/ [Kernel PMU event] ddr0/hp-xact-credit/ [Kernel PMU event] ddr0/load-mode/ [Kernel PMU event] ddr0/lp-read-credit-cnt/ [Kernel PMU event] ddr0/lp-req-nocredit/ [Kernel PMU event] ddr0/lp-xact-credit/ [Kernel PMU event] ddr0/mwr/ [Kernel PMU event] ddr0/precharge/ [Kernel PMU event] ddr0/raw-hazard/ [Kernel PMU event] ddr0/read-access/ [Kernel PMU event] ddr0/read-activate/ [Kernel PMU event] ddr0/read-command/ [Kernel PMU event] ddr0/read-cycles/ [Kernel PMU event] ddr0/read-modify-write-command/ [Kernel PMU event] ddr0/read-queue-depth/ [Kernel PMU event] ddr0/read-write-transition/ [Kernel PMU event] ddr0/read/ [Kernel PMU event] ddr0/refresh/ [Kernel PMU event] ddr0/selfresh/ [Kernel PMU event] ddr0/wr-xact-credit/ [Kernel PMU event] ddr0/write-access/ [Kernel PMU event] ddr0/write-command/ [Kernel PMU event] ddr0/write-credit-cnt/ [Kernel PMU event] ddr0/write-cycles/ [Kernel PMU event] ddr0/write-queue-depth/ [Kernel PMU event] ddr0/write/ Signed-off-by: Frank Li --- Change from v3 to v4 * Change FSL_IMX8_DDR_PERF to FSL_IMX8_DDR_PMU * sort include * remove struct fsl_ddr_devtype_data * Added comment need disable control first * Added comment about must enable cycle counter * Added macro for EVENT_AXI_READ, remove hardcode 0x41 and 0x42 * Added comment about cycle counter is fastest one Change from v2 to v3 * remove kfree Change from V1 to V2 * update Kconfig by use i.MX8 instead of i.MX8 QXP * remove gpl statememnt since SPDX tag * use dev_kzalloc * use dev_err * commit message show axi_read 0x41\axi_write 0x42 * commit message show cycles must be enabled * Irq only issue at cycles overflow * use NUM_COUNTER * use devm_request_irq * add hotplug callback to handle context migration drivers/perf/Kconfig | 7 + drivers/perf/Makefile | 1 + drivers/perf/fsl_imx8_ddr_perf.c | 573 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 581 insertions(+) create mode 100644 drivers/perf/fsl_imx8_ddr_perf.c diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index af9bc17..e567437 100644 --- a/drivers/perf/Kconfig +++ b/drivers/perf/Kconfig @@ -61,6 +61,13 @@ config ARM_DSU_PMU system, control logic. The PMU allows counting various events related to DSU. +config FSL_IMX8_DDR_PMU + tristate "Freescale i.MX8 DDR perf monitor" + depends on ARCH_MXC + help + Provides support for ddr perfomance monitor in i.MX8. Provide memory + througput information. + config HISI_PMU bool "HiSilicon SoC PMU" depends on ARM64 && ACPI diff --git a/drivers/perf/Makefile b/drivers/perf/Makefile index 909f27f..0bc066b 100644 --- a/drivers/perf/Makefile +++ b/drivers/perf/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_ARM_CCN) += arm-ccn.o obj-$(CONFIG_ARM_DSU_PMU) += arm_dsu_pmu.o obj-$(CONFIG_ARM_PMU) += arm_pmu.o arm_pmu_platform.o obj-$(CONFIG_ARM_PMU_ACPI) += arm_pmu_acpi.o +obj-$(CONFIG_FSL_IMX8_DDR_PMU) += fsl_imx8_ddr_perf.o obj-$(CONFIG_HISI_PMU) += hisilicon/ obj-$(CONFIG_QCOM_L2_PMU) += qcom_l2_pmu.o obj-$(CONFIG_QCOM_L3_PMU) += qcom_l3_pmu.o diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c new file mode 100644 index 0000000..3d02daf --- /dev/null +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -0,0 +1,573 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2017 NXP + * Copyright 2016 Freescale Semiconductor, Inc. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define COUNTER_CNTL 0x0 +#define COUNTER_READ 0x20 + +#define COUNTER_DPCR1 0x30 + +#define CNTL_OVER 0x1 +#define CNTL_CLEAR 0x2 +#define CNTL_EN 0x4 +#define CNTL_EN_MASK 0xFFFFFFFB +#define CNTL_CLEAR_MASK 0xFFFFFFFD +#define CNTL_OVER_MASK 0xFFFFFFFE + +#define CNTL_CSV_SHIFT 24 +#define CNTL_CSV_MASK (0xFF << CNTL_CSV_SHIFT) + +#define EVENT_CYCLES_ID 0 +#define EVENT_CYCLES_COUNTER 0 +#define NUM_COUNTER 4 +#define MAX_EVENT 3 +#define EVENT_AXI_READ 0x41 +#define EVENT_AXI_WRITE 0x42 + +#define to_ddr_pmu(p) container_of(p, struct ddr_pmu, pmu) + +#define DDR_PERF_DEV_NAME "ddr_perf" + +static DEFINE_IDA(ddr_ida); + +PMU_EVENT_ATTR_STRING(cycles, ddr_perf_cycles, "event=0x00"); +PMU_EVENT_ATTR_STRING(selfresh, ddr_perf_selfresh, "event=0x01"); +PMU_EVENT_ATTR_STRING(read-access, ddr_perf_read_accesses, "event=0x04"); +PMU_EVENT_ATTR_STRING(write-access, ddr_perf_write_accesses, "event=0x05"); +PMU_EVENT_ATTR_STRING(read-queue-depth, ddr_perf_read_queue_depth, + "event=0x08"); +PMU_EVENT_ATTR_STRING(write-queue-depth, ddr_perf_write_queue_depth, + "event=0x09"); +PMU_EVENT_ATTR_STRING(lp-read-credit-cnt, ddr_perf_lp_read_credit_cnt, + "event=0x10"); +PMU_EVENT_ATTR_STRING(hp-read-credit-cnt, ddr_perf_hp_read_credit_cnt, + "event=0x11"); +PMU_EVENT_ATTR_STRING(write-credit-cnt, ddr_perf_write_credit_cnt, + "event=0x12"); +PMU_EVENT_ATTR_STRING(read-command, ddr_perf_read_command, "event=0x20"); +PMU_EVENT_ATTR_STRING(write-command, ddr_perf_write_command, "event=0x21"); +PMU_EVENT_ATTR_STRING(read-modify-write-command, + ddr_perf_read_modify_write_command, "event=0x22"); +PMU_EVENT_ATTR_STRING(hp-read, ddr_perf_hp_read, "event=0x23"); +PMU_EVENT_ATTR_STRING(hp-req-nodcredit, ddr_perf_hp_req_nocredit, "event=0x24"); +PMU_EVENT_ATTR_STRING(hp-xact-credit, ddr_perf_hp_xact_credit, "event=0x25"); +PMU_EVENT_ATTR_STRING(lp-req-nocredit, ddr_perf_lp_req_nocredit, "event=0x26"); +PMU_EVENT_ATTR_STRING(lp-xact-credit, ddr_perf_lp_xact_credit, "event=0x27"); +PMU_EVENT_ATTR_STRING(wr-xact-credit, ddr_perf_wr_xact_credit, "event=0x29"); +PMU_EVENT_ATTR_STRING(read-cycles, ddr_perf_read_cycles, "event=0x2a"); +PMU_EVENT_ATTR_STRING(write-cycles, ddr_perf_write_cycles, "event=0x2b"); +PMU_EVENT_ATTR_STRING(read-write-transition, ddr_perf_read_write_transition, + "event=0x30"); +PMU_EVENT_ATTR_STRING(precharge, ddr_perf_precharge, "event=0x31"); +PMU_EVENT_ATTR_STRING(activate, ddr_perf_activate, "event=0x32"); +PMU_EVENT_ATTR_STRING(load-mode, ddr_perf_load_mode, "event=0x33"); +PMU_EVENT_ATTR_STRING(mwr, ddr_perf_mwr, "event=0x34"); +PMU_EVENT_ATTR_STRING(read, ddr_perf_read, "event=0x35"); +PMU_EVENT_ATTR_STRING(read-activate, ddr_perf_read_activate, "event=0x36"); +PMU_EVENT_ATTR_STRING(refresh, ddr_perf_refresh, "event=0x37"); +PMU_EVENT_ATTR_STRING(write, ddr_perf_write, "event=0x38"); +PMU_EVENT_ATTR_STRING(raw-hazard, ddr_perf_raw_hazard, "event=0x39"); + +PMU_EVENT_ATTR_STRING(axid-read, ddr_perf_axid_read, + "event="__stringify(EVENT_AXI_READ)); +PMU_EVENT_ATTR_STRING(axid-write, ddr_perf_axid_write, + "event="__stringify(EVENT_AXI_WRITE)); + +#define DDR_CAP_AXI_ID 0x1 + +static const struct of_device_id imx_ddr_pmu_dt_ids[] = { + { .compatible = "fsl,imx8-ddr-pmu",}, + { .compatible = "fsl,imx8m-ddr-pmu", .data = (void *)DDR_CAP_AXI_ID}, + { /* sentinel */ } +}; + +struct ddr_pmu { + struct pmu pmu; + void __iomem *base; + cpumask_t cpu; + struct hlist_node node; + struct device *dev; + struct perf_event *active_events[NUM_COUNTER]; + int total_events; + enum cpuhp_state cpuhp_state; + bool cycles_active; + uintptr_t flags; +}; + +static ssize_t ddr_perf_cpumask_show(struct device *dev, + struct device_attribute *attr, char *buf) +{ + struct ddr_pmu *pmu = dev_get_drvdata(dev); + + return cpumap_print_to_pagebuf(true, buf, &pmu->cpu); +} + +static struct device_attribute ddr_perf_cpumask_attr = + __ATTR(cpumask, 0444, ddr_perf_cpumask_show, NULL); + +static struct attribute *ddr_perf_cpumask_attrs[] = { + &ddr_perf_cpumask_attr.attr, + NULL, +}; + +static struct attribute_group ddr_perf_cpumask_attr_group = { + .attrs = ddr_perf_cpumask_attrs, +}; + +static struct attribute *ddr_perf_events_attrs[] = { + &ddr_perf_cycles.attr.attr, + &ddr_perf_selfresh.attr.attr, + &ddr_perf_read_accesses.attr.attr, + &ddr_perf_write_accesses.attr.attr, + &ddr_perf_read_queue_depth.attr.attr, + &ddr_perf_write_queue_depth.attr.attr, + &ddr_perf_lp_read_credit_cnt.attr.attr, + &ddr_perf_hp_read_credit_cnt.attr.attr, + &ddr_perf_write_credit_cnt.attr.attr, + &ddr_perf_read_command.attr.attr, + &ddr_perf_write_command.attr.attr, + &ddr_perf_read_modify_write_command.attr.attr, + &ddr_perf_hp_read.attr.attr, + &ddr_perf_hp_req_nocredit.attr.attr, + &ddr_perf_hp_xact_credit.attr.attr, + &ddr_perf_lp_req_nocredit.attr.attr, + &ddr_perf_lp_xact_credit.attr.attr, + &ddr_perf_wr_xact_credit.attr.attr, + &ddr_perf_read_cycles.attr.attr, + &ddr_perf_write_cycles.attr.attr, + &ddr_perf_read_write_transition.attr.attr, + &ddr_perf_precharge.attr.attr, + &ddr_perf_activate.attr.attr, + &ddr_perf_load_mode.attr.attr, + &ddr_perf_mwr.attr.attr, + &ddr_perf_read.attr.attr, + &ddr_perf_read_activate.attr.attr, + &ddr_perf_refresh.attr.attr, + &ddr_perf_write.attr.attr, + &ddr_perf_raw_hazard.attr.attr, + &ddr_perf_axid_read.attr.attr, + &ddr_perf_axid_write.attr.attr, + NULL, +}; + +static struct attribute_group ddr_perf_events_attr_group = { + .name = "events", + .attrs = ddr_perf_events_attrs, +}; + +PMU_FORMAT_ATTR(event, "config:0-63"); +PMU_FORMAT_ATTR(axi_id, "config1:0-63"); + +static struct attribute *ddr_perf_format_attrs[] = { + &format_attr_event.attr, + &format_attr_axi_id.attr, + NULL, +}; + +static struct attribute_group ddr_perf_format_attr_group = { + .name = "format", + .attrs = ddr_perf_format_attrs, +}; + +static const struct attribute_group *attr_groups[] = { + &ddr_perf_events_attr_group, + &ddr_perf_format_attr_group, + &ddr_perf_cpumask_attr_group, + NULL, +}; + +static u32 ddr_perf_alloc_counter(struct ddr_pmu *pmu, int event) +{ + int i; + + /* Always map cycle event to counter 0 + Cycles counter is dedicated for cycle event + can't used for the other events + */ + if (event == EVENT_CYCLES_ID) + return EVENT_CYCLES_COUNTER; + + for (i = 1; i < NUM_COUNTER; i++) + if (pmu->active_events[i] == NULL) + return i; + + return -ENOENT; +} + +static u32 ddr_perf_free_counter(struct ddr_pmu *pmu, int counter) +{ + if (counter < 0 || counter >= NUM_COUNTER) + return -ENOENT; + + pmu->active_events[counter] = NULL; + + return 0; +} + +static u32 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter) +{ + return readl(pmu->base + COUNTER_READ + counter * 4); +} + +static int ddr_perf_event_init(struct perf_event *event) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + + if (event->attr.type != event->pmu->type) + return -ENOENT; + + if (is_sampling_event(event) || event->attach_state & PERF_ATTACH_TASK) + return -EOPNOTSUPP; + + if (event->cpu < 0) { + dev_warn(pmu->dev, "Can't provide per-task data!\n"); + return -EOPNOTSUPP; + } + + if (event->attr.exclude_user || + event->attr.exclude_kernel || + event->attr.exclude_hv || + event->attr.exclude_idle || + event->attr.exclude_host || + event->attr.exclude_guest || + event->attr.sample_period) + return -EINVAL; + + event->cpu = cpumask_first(&pmu->cpu); + hwc->idx = -1; + + return 0; +} + + +static void ddr_perf_event_update(struct perf_event *event) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + u64 delta, prev_raw_count, new_raw_count; + int counter = hwc->idx; + + do { + prev_raw_count = local64_read(&hwc->prev_count); + new_raw_count = ddr_perf_read_counter(pmu, counter); + } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, + new_raw_count) != prev_raw_count); + + delta = (new_raw_count - prev_raw_count) & 0xFFFFFFFF; + + local64_add(delta, &event->count); +} + +static void ddr_perf_event_enable(struct ddr_pmu *pmu, int config, + int counter, bool enable) +{ + u8 reg = counter * 4 + COUNTER_CNTL; + int val; + + if (enable) { + /* must disable first, then enable again + * otherwise, cycle counter will not work + * if previous state is enabled. + */ + writel(0, pmu->base + reg); + val = CNTL_EN | CNTL_CLEAR; + val |= (config << CNTL_CSV_SHIFT) & CNTL_CSV_MASK; + } else { + /* Disable counter */ + val = readl(pmu->base + reg) & CNTL_EN_MASK; + } + + writel(val, pmu->base + reg); + + if (config == EVENT_CYCLES_ID) + pmu->cycles_active = enable; +} + +static void ddr_perf_event_start(struct perf_event *event, int flags) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + int counter = hwc->idx; + + if (pmu->flags & DDR_CAP_AXI_ID) { + if (event->attr.config == EVENT_AXI_READ || + event->attr.config == EVENT_AXI_WRITE) { + int val = event->attr.config1; + + writel(val, pmu->base + COUNTER_DPCR1); + } + } + + local64_set(&hwc->prev_count, 0); + + ddr_perf_event_enable(pmu, event->attr.config, counter, true); + /* + * If the cycles counter wasn't explicitly selected, + * we will enable it now. + * cycles counter must be enabled otherwise other counters will + * stopped. + */ + if (counter > 0 && !pmu->cycles_active) + ddr_perf_event_enable(pmu, EVENT_CYCLES_ID, + EVENT_CYCLES_COUNTER, true); +} + +static int ddr_perf_event_add(struct perf_event *event, int flags) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + int counter; + int cfg = event->attr.config; + + counter = ddr_perf_alloc_counter(pmu, cfg); + if (counter < 0) { + dev_dbg(pmu->dev, "There are not enough counters\n"); + return -EOPNOTSUPP; + } + + pmu->active_events[counter] = event; + pmu->total_events++; + hwc->idx = counter; + + if (flags & PERF_EF_START) + ddr_perf_event_start(event, flags); + + local64_set(&hwc->prev_count, ddr_perf_read_counter(pmu, counter)); + + return 0; +} + +static void ddr_perf_event_stop(struct perf_event *event, int flags) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + int counter = hwc->idx; + + ddr_perf_event_enable(pmu, event->attr.config, counter, false); + ddr_perf_event_update(event); +} + +static void ddr_perf_event_del(struct perf_event *event, int flags) +{ + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + struct hw_perf_event *hwc = &event->hw; + int counter = hwc->idx; + + ddr_perf_event_stop(event, PERF_EF_UPDATE); + + ddr_perf_free_counter(pmu, counter); + pmu->total_events--; + hwc->idx = -1; + + /* If all events have stopped, stop the cycles counter as well */ + if ((pmu->total_events == 0) && pmu->cycles_active) + ddr_perf_event_enable(pmu, EVENT_CYCLES_ID, + EVENT_CYCLES_COUNTER, false); +} + +static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base, + struct device *dev) +{ + *pmu = (struct ddr_pmu) { + .pmu = (struct pmu) { + .task_ctx_nr = perf_invalid_context, + .attr_groups = attr_groups, + .event_init = ddr_perf_event_init, + .add = ddr_perf_event_add, + .del = ddr_perf_event_del, + .start = ddr_perf_event_start, + .stop = ddr_perf_event_stop, + .read = ddr_perf_event_update, + }, + .base = base, + .dev = dev, + }; + + return ida_simple_get(&ddr_ida, 0, 0, GFP_KERNEL); +} + +static irqreturn_t ddr_perf_irq_handler(int irq, void *p) +{ + int i; + u8 reg; + int val; + int counter; + struct ddr_pmu *pmu = (struct ddr_pmu *) p; + struct perf_event *event; + + /* Only cycles counter overflowed can issue irq. all counters will + * be stopped when cycles counter overflow. but other counter don't stop + * when overflow happen. Update all of the local counter values, + * then reset the cycles counter, so the others can continue + * counting. cycles counter is fastest counter in all events. at last + * 4 times than other counters. + */ + for (i = 0; i < NUM_COUNTER; i++) { + + if (!pmu->active_events[i]) + continue; + + event = pmu->active_events[i]; + counter = event->hw.idx; + reg = counter * 4 + COUNTER_CNTL; + val = readl(pmu->base + reg); + + ddr_perf_event_update(event); + + if (counter == EVENT_CYCLES_COUNTER) { + ddr_perf_event_enable(pmu, + EVENT_CYCLES_ID, + EVENT_CYCLES_COUNTER, + true); + ddr_perf_event_update(event); + } + } + + return IRQ_HANDLED; +} + +static int ddr_perf_offline_cpu(unsigned int cpu, struct hlist_node *node) +{ + struct ddr_pmu *pmu = hlist_entry_safe(node, struct ddr_pmu, node); + int target; + + if (!cpumask_test_and_clear_cpu(cpu, &pmu->cpu)) + return 0; + + target = cpumask_any_but(cpu_online_mask, cpu); + if (target >= nr_cpu_ids) + return 0; + + perf_pmu_migrate_context(&pmu->pmu, cpu, target); + cpumask_set_cpu(target, &pmu->cpu); + + return 0; +} + +static int ddr_perf_probe(struct platform_device *pdev) +{ + struct ddr_pmu *pmu; + struct device_node *np; + void __iomem *base; + struct resource *iomem; + char *name; + char *hpname; + int num; + int ret; + u32 irq; + const struct of_device_id *of_id = + of_match_device(imx_ddr_pmu_dt_ids, &pdev->dev); + + iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); + base = devm_ioremap_resource(&pdev->dev, iomem); + if (IS_ERR(base)) + return PTR_ERR(base); + + np = pdev->dev.of_node; + + pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); + if (!pmu) + return -ENOMEM; + + num = ddr_perf_init(pmu, base, &pdev->dev); + + name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "ddr%d", num); + if (!name) + return -ENOMEM; + + hpname = devm_kasprintf(&pdev->dev, GFP_KERNEL, + "perf/imx/ddr%d:online", num); + if (!hpname) + return -ENOMEM; + + pmu->flags = (uintptr_t) of_id->data; + + cpumask_set_cpu(raw_smp_processor_id(), &pmu->cpu); + ret = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, hpname, NULL, + ddr_perf_offline_cpu); + + if (ret < 0) { + dev_err(&pdev->dev, "cpuhp_setup_state_multi failed\n"); + goto ddr_perf_err; + } + + pmu->cpuhp_state = ret; + + /* Register the pmu instance for cpu hotplug */ + cpuhp_state_add_instance_nocalls(pmu->cpuhp_state, &pmu->node); + + ret = perf_pmu_register(&(pmu->pmu), name, -1); + if (ret) + goto ddr_perf_err; + + /* Request irq */ + irq = of_irq_get(np, 0); + if (irq < 0) { + dev_err(&pdev->dev, "Failed to get irq: %d", irq); + ret = irq; + goto ddr_perf_irq_err; + } + + ret = devm_request_irq(&pdev->dev, irq, + ddr_perf_irq_handler, + IRQF_TRIGGER_RISING | IRQF_ONESHOT, + DDR_PERF_DEV_NAME, + pmu); + if (ret < 0) { + dev_err(&pdev->dev, "Request irq failed: %d", ret); + goto ddr_perf_irq_err; + } + + return 0; + +ddr_perf_irq_err: + perf_pmu_unregister(&(pmu->pmu)); + +ddr_perf_err: + if (pmu->cpuhp_state) + cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node); + + dev_warn(&pdev->dev, "i.MX8 DDR Perf PMU failed (%d), disabled\n", ret); + return ret; +} + +static int ddr_perf_remove(struct platform_device *pdev) +{ + struct ddr_pmu *pmu = platform_get_drvdata(pdev); + + cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node); + perf_pmu_unregister(&pmu->pmu); + + return 0; +} + +static struct platform_driver imx_ddr_pmu_driver = { + .driver = { + .name = "imx-ddr-pmu", + .of_match_table = imx_ddr_pmu_dt_ids, + }, + .probe = ddr_perf_probe, + .remove = ddr_perf_remove, +}; + +static int __init imx_ddr_pmu_init(void) +{ + return platform_driver_register(&imx_ddr_pmu_driver); +} + +module_init(imx_ddr_pmu_init); + From patchwork Fri Feb 15 18:03:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10815651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 81616139A for ; Fri, 15 Feb 2019 18:03:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F93D2FD7D for ; Fri, 15 Feb 2019 18:03:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 633AD2FDA7; Fri, 15 Feb 2019 18:03:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2D1E2FD7D for ; Fri, 15 Feb 2019 18:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JqR1zIS7OPTIRNye+y67nePM3FuvnTMC3f6cZsA11FE=; b=ZAuI3qAfu0XRby 0cveUHL1zk9maB8I0VCFMRkTaNrfjiFNA8MrLwJN1KqS86TG6K32w9XZ5x7yEHqlIY/sVP1OvhZfQ Cjgxfyq1+DuAQOcaE+8+OyeM93fvBIvkPFIjnoEMDnHhB3PJaXFMYttsOxGKOnZOF8cr7/fqc/L3w ZAmYaowezI7YvSIbFkY74AntpMufONrH4slG6+XQVZfpZWejywkPQHAbP+mnam1GE9+IYqpyz/YS4 abU7SHbPHtBtCq9EsbpoXdh5F9zwwZMxWcXGWt3lm9NJh4bML+7Tb3kybFAFOvE6xXveGvAnYOsEk 3HHbyiuGTnUBFkWzgk/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpp-0007dr-7X; Fri, 15 Feb 2019 18:03:37 +0000 Received: from mail-eopbgr40045.outbound.protection.outlook.com ([40.107.4.45] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpX-0007Do-41 for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 18:03:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ukq58iB2j668XCJq0QdXsAtT9VDMSjLpxH4wdNdZt7w=; b=aEvOx4qfcLqxJfQ4j02maifuZFOOiXi0gVRpYbPBqhqQEAOewkaDr182YZgBqEH5AyaUVn/tTco/xN4mKvXw1drCf7eh+mXjyHfv8sHveseYcijtzDeRyzZyH3ppV3YTcMbxqXYRUOmI7kZE33nYkifmTGoUl5otuROvqJyl+1Y= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Fri, 15 Feb 2019 18:03:14 +0000 Received: from VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849]) by VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849%5]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 18:03:14 +0000 From: Frank Li To: "mark.rutland@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "robh+dt@kernel.org" , Aisheng Dong , "devicetree@vger.kernel.org" , "lznuaa@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 3/4] arm64: dts: imx8qxp: added ddr performance monitor nodes Thread-Topic: [PATCH V4 3/4] arm64: dts: imx8qxp: added ddr performance monitor nodes Thread-Index: AQHUxVi4NXFidk+Cvk6w7YFTCH2pGA== Date: Fri, 15 Feb 2019 18:03:13 +0000 Message-ID: <1550253761-26841-3-git-send-email-Frank.Li@nxp.com> References: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0008.prod.exchangelabs.com (2603:10b6:804:2::18) To VI1PR04MB4910.eurprd04.prod.outlook.com (2603:10a6:803:56::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=frank.li@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.5.2 x-originating-ip: [64.157.242.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e23c4fec-95cb-4848-523d-08d6936fda5e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4893; x-ms-traffictypediagnostic: VI1PR04MB4893: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB4893; 23:JUeD+UlNmdUAR0JuoJyOUt6pe3ElW7Km53NP758?= =?iso-8859-1?q?6fhhd8uABydjeWp?= =?iso-8859-1?q?QKPku60GChWlJMtlxm9L+aYS3sjmJ0AkD0E3CauT1Cx3F7w1zdOdUI5sVTnF?= =?iso-8859-1?q?PHtRa+ogaEb+KtJCUcQwnHzE25LvUdageA8ZalnrA0brFYVJcl2puyE5W/d7?= =?iso-8859-1?q?liq66i6bTId4h0JHzbynvCeNprzv8hD3Tb/klsNPOuaJNeUxyGpzWp5We03f?= =?iso-8859-1?q?FCBP7pWqk7yKGTrgH1jfUrrzR6k+1whRh78cnMAG72Yw1vxHNttUeZHcRZp4?= =?iso-8859-1?q?oxReyNprWKs3DGxYNGB+emH6ezGIrBBqY53Ch9/ytDmBQ8frssbEc2oXWP9G?= =?iso-8859-1?q?63yILosf48MbnGuApawvWDqR10vs2PyF5rDmRojfRkn2tqja+3HTT/zUu7S2?= =?iso-8859-1?q?HmH2h4cOWSjmjMl/7zf+Tkb9vl3SLCDPobt07w7yWgqf8lXBrqzD6Be76dZ5?= =?iso-8859-1?q?NfNAculfuNsBBA0ZYHhjBQno3xoMjv2SeEiIkez6LRxrXXuFn6EesCHOnhqX?= =?iso-8859-1?q?uDaXwsA3I3nAn+SvYbKJR8MAL4LziSjiFDpdNX5MJcr99qpDC9kspjBqQmiQ?= =?iso-8859-1?q?pvOwATPo10nEIWlQ62qzhM5Com1WKsgT0z8mZ/pdEnlGTg+o/oikRCsVzpog?= =?iso-8859-1?q?htz3BGo0/aa/W5sdAx3fdfXWPqXbkYgkoLhku6loCwOi/OswqrXZess/rorQ?= =?iso-8859-1?q?7uu1Bb34RpbVk9IFdSGQFvWMUrHYyeGvdjDIXc85s8d+kYXmHXmAMWFZ1QNN?= =?iso-8859-1?q?oOm5GhdIDUyVaFM16HHT0Z+xYYtP2GwJuFHir4iI5vC81ga/Y8l89Tb2E2sb?= =?iso-8859-1?q?KnBUpGmAZ8iCk4D/Kb3uibWQGm/m800dqVbjaqAMZZhq6y5eWWjUOS95Zd4u?= =?iso-8859-1?q?bQhtTaiUpWQ66kw33hwZXAfYwbE2Uiz3lDMAcIfBAlkze86k7B/0e604XtVO?= =?iso-8859-1?q?FdPxQ+I1nNANuJlUrrvA49qvOiY3KOV2vc/nu6bQ/KM16XYp7KoRp5dfW0wX?= =?iso-8859-1?q?zexhJn5a8td2O5RvC5ErGDpCq5vNaYNwJlfmD43lDNB5nqytRtgTwTdsyPvv?= =?iso-8859-1?q?2f2inO5t/ToMWR2i89EI2vySBKUeTu7qbmHhPnil3nqC8Q3NWHqlSk+4xmJk?= =?iso-8859-1?q?vRovk1N6tOeNJbuGTpMTib17kX1SH9ypGeG5sUiXaiduBhxE8t+pGXzyNRx9?= =?iso-8859-1?q?bpsV0LYntVu/Zv0rN1SIaHHKveCKaZKT4u/aSMFUFlhGatcMvXsi3ykClE27?= =?iso-8859-1?q?34uCNziZtMLGc/pZkg9LHDPYJB?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(189003)(199004)(36756003)(7736002)(2501003)(86362001)(110136005)(105586002)(186003)(6512007)(446003)(6116002)(66066001)(106356001)(68736007)(11346002)(316002)(476003)(305945005)(6486002)(3846002)(76176011)(4326008)(486006)(2616005)(25786009)(99286004)(7416002)(6436002)(52116002)(50226002)(97736004)(256004)(2906002)(81166006)(81156014)(2201001)(26005)(4744005)(478600001)(102836004)(8936002)(386003)(8676002)(6506007)(53936002)(71200400001)(71190400001)(14454004)(32563001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4893; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: QIC1zJf6iQSFgA4qjLa2l4nQzIb+iyesSgCZ21pjoUpfU22LZAhI+ygNhNha5fHOp1/CxRhf1N1zaMJ92XaysvQEx+TzHaI5uU10TMktxZKaQCsDI+oH3QW+QWNKMplAPmIsVOdnAOFki7rZhJctSvquT3GoFMprjDYsypOVmqIxGjm4OSKgkEcJQqIBGBmgqWi/5dJmWiHoja8s1cdmwuFnJp24nEmL/KESxagjY1cCj1TlDAuVLaB/gg3htYiCyh0VTpLNcY7eFx3IhcMNbvqKS7GlC5wu/qwev1VsXfl70yFascUTTPrV/kYjdWMXn9ojv2nt7KQlq6qY+ueWD8J4X2W7O8N0AvluiL0OklP1YcHYA+h1JwDB+2Q6idkftaTh9ulUSwMBimO/2Avqo7R1sERliLVfyFHW6HCnmoI= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e23c4fec-95cb-4848-523d-08d6936fda5e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 18:03:11.2626 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_100319_563291_A51B0071 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add ddr performance monitor Signed-off-by: Frank Li Reviewed-by: Fabio Estevam --- Change from v3 to v4 * none Change from v2 to v3 * ddr_pmu0 -> ddr-pmu arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 4c3dd95..ac0691e 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -79,6 +79,13 @@ interrupts = ; }; + ddr-pmu@5c020000 { + compatible = "fsl,imx8-ddr-pmu"; + reg = <0x0 0x5c020000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = ; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; From patchwork Fri Feb 15 18:03:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10815653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95634139A for ; Fri, 15 Feb 2019 18:03:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EBB22DD55 for ; Fri, 15 Feb 2019 18:03:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EE382DDF0; Fri, 15 Feb 2019 18:03:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 242AF2DD55 for ; Fri, 15 Feb 2019 18:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=21xoVggSXX2Dk8ADFK1bFTVhGp2FfwPPDxfypX3kSSs=; b=TTMmYq/MOuJZjP 0YLwath+Taf+IMYcGHwSkhq8y2sOb2FaIWzjsjnttTWjE2KL64uDtz6BMiGiMN90nUpGAma02Bw74 Rwi2JSxn0qoY87CNNX//eIDax0IYbfHWWVZRhcAVWihQNt4erKnK9X2FRCsuEKbcWqd1J5Bo7pyop eCSRa2DGVUJ81pf/9fjX9QB1gnIHC2ZbpwQubUlsI80ZLJlbCTcSK+4Y3jKvQvkJFNkOnQZW2FHP7 +TIlbAMC7FaC7q/3ioFv4gfWj1c4bpahk5rThK0C02IfwMDWxrCzB2RftuyO6O2iStTDyynNgu2cd dORXy7gxC9H4BTxDY8AQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhq0-0007sn-KT; Fri, 15 Feb 2019 18:03:48 +0000 Received: from mail-eopbgr40045.outbound.protection.outlook.com ([40.107.4.45] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhpb-0007Do-9d for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 18:03:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+pTJyMw44M0sSHFMGJccGdyQi7L1OyMt3MIHo/pGBmA=; b=fefV51u7wCFvldfrzhVvG3MshRp7cuKfGzzJSta7bYyaPjx7j2MgvrrqY3mv3wyJ2QV62fT5WPcp9Ibox1YtrNLCUUO+fH02v31AInh3vVDnu3PPic28oHD//lbykvL+yiqx723Rfga3k7AuO517rVUdCO81JLYyalmU7kWWlaU= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Fri, 15 Feb 2019 18:03:17 +0000 Received: from VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849]) by VI1PR04MB4910.eurprd04.prod.outlook.com ([fe80::6cc7:b375:76f7:b849%5]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 18:03:17 +0000 From: Frank Li To: "mark.rutland@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "robh+dt@kernel.org" , Aisheng Dong , "devicetree@vger.kernel.org" , "lznuaa@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 4/4] MAINTAINERS: Added imx DDR performonitor driver maintainer information Thread-Topic: [PATCH V4 4/4] MAINTAINERS: Added imx DDR performonitor driver maintainer information Thread-Index: AQHUxVi6WWuh6I9YoEaUogbBIjLTQQ== Date: Fri, 15 Feb 2019 18:03:16 +0000 Message-ID: <1550253761-26841-4-git-send-email-Frank.Li@nxp.com> References: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550253761-26841-1-git-send-email-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0008.prod.exchangelabs.com (2603:10b6:804:2::18) To VI1PR04MB4910.eurprd04.prod.outlook.com (2603:10a6:803:56::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=frank.li@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.5.2 x-originating-ip: [64.157.242.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dbe1128d-0f6d-44f1-56e4-08d6936fdc3b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4893; x-ms-traffictypediagnostic: VI1PR04MB4893: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB4893; 23:+0w/NCNzZf91Q46DKWSOZOQeJajVWUnIj+L4vvc?= =?iso-8859-1?q?VPMx86eP0KxphNe?= =?iso-8859-1?q?4a8+NPAf6rsg1SG/YuOj8EKK7CaF2DaLwaA14ZufNmP/rhSQZrqM4KcQpIS+?= =?iso-8859-1?q?O+k5vD/Tf6O+IwMcbIFVX0uFfAH79cIgdNYqJHBqpa6GnPMMWh0AFq0q1JCU?= =?iso-8859-1?q?R64fIvbuOo1ZUd4Xmb/Mg2q74Ui11K08sPAH1e93JHgeqfgzExNwbu9o/zOw?= =?iso-8859-1?q?V2uac1JA/wMk58OoFCqy4udSmpvHV6pWhQjZoNP3Jk+7rSIiJstQUmotGRjz?= =?iso-8859-1?q?lC6tkWar/+ikmvhgaMe2QspW74Qmk+FicVaamtG402IPkKU/t0Nvh+kRZjeq?= =?iso-8859-1?q?R5m7c70KYIEvSyh009ZP/2rYHJAhWr5kWBZTeBhL8mlWLA88xRoyVLiRaxfT?= =?iso-8859-1?q?qCpAk497p/6ZFsALP4xXws62H8PA2ywoYeexORio0V3MW7bPzNeFHzvQh6OS?= =?iso-8859-1?q?Ts6+zLEo91VnX8SDC6+u9EOQyQrCGurR6TDLU9VwOx5VVtkoxvnF3wGUueVd?= =?iso-8859-1?q?3hZdPnyOxSz5+2eLwblkLowXdh2lfhmqLpJz4qE37ilPx77+HPPC8PDi7ajM?= =?iso-8859-1?q?vH/juZuJXJ8RAiAIDhz0JCxCOB+xl1v9i7HqvyCuvgXnYdKQWz1lk5jTSAtH?= =?iso-8859-1?q?PamKOv4WqG3vzB8vQs5eeumTRvQg9fpAOYnqqeUeMZOxSGnDVFUUVKMsdw9N?= =?iso-8859-1?q?5Xsv/hCNanTiswPhv+5TlbVBMTyrg8yaT9+NPUEz1dCR+Rg7KK3WJgMHOAS3?= =?iso-8859-1?q?Is50mPH2YMu2YCbIQS2FeL5X83761t5nO7YqHgxP4wQedD3QUPRAaXitgLsD?= =?iso-8859-1?q?BaaGQSTqdP5PV/o/J/3JIs4aO3eoQkqHV+DOOK4RXtu9if2ykfk8fpJh/5rD?= =?iso-8859-1?q?zzkq8DQgJmzHwxWX6GW0Rwk5ibAE13/GzpF557TlzWsASl3A23HH5ayy0el7?= =?iso-8859-1?q?E/fuo1UxS/wwF/ZHlWn/AuibikthxinbE11OA+b2nzEEJbVVIfrbo388PYKE?= =?iso-8859-1?q?bu0D+yT5gt92gNvsu34f5MHDlaoUQ+WhHBa4EkW3/Nz8aKveY3vs5buCCWdk?= =?iso-8859-1?q?7PUMX2SpzjkoCj3kBYVjSHvb0LewN6QF9DRR+8Lktqm+yKrdrp4ak5QduhKd?= =?iso-8859-1?q?UOVasbjDDHAuSgdL3fpaGsHA9vi0fo8oA3Y0Guh5e09WYauRqmHNUCGhBv7P?= =?iso-8859-1?q?KoZBV1kwmwnRlZHHRXt/LpSiiceAaY5aFuvC950QqP1IqPEgALuE/x+Om8kt?= =?iso-8859-1?q?q6j+o=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(189003)(199004)(36756003)(7736002)(2501003)(86362001)(110136005)(105586002)(186003)(6512007)(446003)(6116002)(66066001)(106356001)(68736007)(11346002)(316002)(476003)(305945005)(6486002)(3846002)(76176011)(4326008)(486006)(2616005)(25786009)(99286004)(7416002)(6436002)(52116002)(50226002)(97736004)(256004)(2906002)(81166006)(81156014)(2201001)(26005)(4744005)(478600001)(102836004)(8936002)(386003)(8676002)(6506007)(53936002)(71200400001)(71190400001)(14454004)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4893; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qn3Ebc2P2MjuMM75QLdh5i2IaLZkJg39HGaIf8U6/oOaIENNU9duZTwyIX0HQdlHTxoEGOrmAaf9tPibNj6eK+xZGGbw1kIS8OA21BCwSi2XMuP31iyRK8jTys68I8v+I1Rwn1LQm/2B7Q9AxoUNh5F7kDQeqhvwO6hpSbSm35VHDNwKSec4jdeo5AG9KzWQ22wCEaB/78prWnqj2QTd1CjJ88CGWyck0St9Bm8szU24D8psnUqqWzq0zwTtz7MTEuw+bHe2VK77UvKDvMK9qZ01uf41+LEPx9I/OK/VzTWvn2VOII8kv5RUw7B0d1YjbS7MJySNxyaJ1RSK6NsXuJr9/vAveYobTGMa2dMQNBpB5q6cI3b2mFk72AeeK7AyGyf20xFv2MgD48Rm9e3P3+Dan5NJ22M3nb0cKvr4wBQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbe1128d-0f6d-44f1-56e4-08d6936fdc3b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 18:03:14.3848 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_100323_566144_7343FCEC X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add DDR perf counter driver maintainer information Signed-off-by: Frank Li --- No change from v1 to v4 MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6ba068e..687be0f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6163,6 +6163,13 @@ L: linux-i2c@vger.kernel.org S: Maintained F: drivers/i2c/busses/i2c-cpm.c +FREESCALE IMX DDR Performance Monitor DRIVER +M: Frank Li +L: linux-arm-kernel@lists.infradead.org +S: Maintained +F: drivers/perf/fsl_imx8_ddr_perf.c +F: Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt + FREESCALE IMX LPI2C DRIVER M: Dong Aisheng L: linux-i2c@vger.kernel.org