From patchwork Wed Feb 13 18:12:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10810625 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 A4F9513B5 for ; Wed, 13 Feb 2019 18:12:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F5F62DAEB for ; Wed, 13 Feb 2019 18:12:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 831182E375; Wed, 13 Feb 2019 18:12:47 +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 2EABA2DAEB for ; Wed, 13 Feb 2019 18:12:45 +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=63fKUW+Raxp5e2iSmqYIdeUJCY58lXIPSihcj1shchc=; b=c5iALuaMOTwv0/ DtESMH2U4seu9lF6iSsoRy47bBWIHfdpCk4tQbKfFyJ3k4bPfpleYvcFcUuqfZTBR7D2Kz8vJiAlN xzfrSWX6puL6rQspPKLrYhOy6iZCGDEvolXBngHSITP1ziDsR5S7AnbtPFGZ8rrhY0FR4sI/OfONt Fs6ZWBiEgwIJjn/3WSHsJdhzjq46ewcZk4kYT2fJ3mhvfQs2D+lN2M6nnn84NInjo9B9Fa0ew7Wol 35z1BvPPBecapuAvYcwMQSYOYgR/cmZgwDRa7tZSklwQV9rnY/C8f0ZHDRZ2oWLxxCqsxKjQ6IsGK V02aAsz5NvJDETTu5nHw==; 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 1gtz1R-0004fT-Ng; Wed, 13 Feb 2019 18:12:37 +0000 Received: from mail-eopbgr30044.outbound.protection.outlook.com ([40.107.3.44] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtz1M-0004dy-PV for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2019 18:12:35 +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=ApwFb5/sT5KkD71pIt20eGXPdTDML+CVY9yfHsMaOI8=; b=OiJm/PJ57fWWOm+hpnCuSnZuDLjNfY5XMvQ8IRx+5YWHWICEthEM73+rm78we6qbdDsDG5aaKRc4F2llgqO4sHf11PfGTj4d2QJO9kUvjIJ58RsntZD3JXFpOhfVSc9Axe8rPom4ia+qpjDgm1d+WcryyRDaJwrm3GkLzdtbJec= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB6223.eurprd04.prod.outlook.com (20.179.26.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 18:12:28 +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; Wed, 13 Feb 2019 18:12:27 +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 V3 1/4] drivers/perf: imx_ddr: Add ddr performance counter support Thread-Topic: [PATCH V3 1/4] drivers/perf: imx_ddr: Add ddr performance counter support Thread-Index: AQHUw8etuwfer1253kmEHqnHL4Ypig== Date: Wed, 13 Feb 2019 18:12:27 +0000 Message-ID: <1550081533-25000-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: SN6PR04CA0036.namprd04.prod.outlook.com (2603:10b6:805:3e::49) 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: 19f270e6-704f-4d4c-9ad3-08d691decfd6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB6223; x-ms-traffictypediagnostic: VI1PR04MB6223: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB6223; 23:IC/cAyQKfPOoBqFmSAyyWli/408nztTOtBthii+?= =?iso-8859-1?q?9DH0M/UjGh/Iktn?= =?iso-8859-1?q?F1pIgrBS/anGEb/EDXQeXQkuDlCtauHOzJ/JTBXu7chiw7+qMw9JxLHKg3ns?= =?iso-8859-1?q?2glmhFw002GlZWciFmyPFPGzKL7rhz7j3Y8oUHLyrItdDvLVhaecpBEc2WJL?= =?iso-8859-1?q?LZbyauSUx+Fak3oKMqOii28eYlUEl87Ip8cY9jb3ooLlnJRrDr0/32Hd7Ute?= =?iso-8859-1?q?hZFZiN7Q4R8tFKQF1iuc29nxR2YZjC4fWbw5DmBULjGNq4bQpylkEkJtDzfM?= =?iso-8859-1?q?NDP5PpRzwrfRAYsA0pALODOcNs33ZD78c0UxwJtaGZl7maWdfapft9PXLRgq?= =?iso-8859-1?q?q+yH7cYSCgs/mChQ9N6ax3OB4M/TtgGTH9yx3eXTrr+3rqJ1ChV62dMIt4mr?= =?iso-8859-1?q?M+AM4KgRACGCOvQUfM60tGBmGMpyXTCZOX9qlDTY51GJI7xwmmVazAIknhIe?= =?iso-8859-1?q?/T6XtTeNGYlaBzuVemgy8l6igZNx+h/kGMA4c4Gc0qV3aClFXyAJYSakZKVJ?= =?iso-8859-1?q?su+sBZql80vHSe/Bb4zr0b7Y0szLaFxMx5DpzKDBAQUV0MA0T94xNZ08UjnW?= =?iso-8859-1?q?ei2zbaBEXijXJCx1ajtsqvANs8/tvpXO81qNApcAxLU2cFKX6/QTvcymOJqg?= =?iso-8859-1?q?FRQH5rPn4q98zAnCGzepO3blK/ezIyMaxVxC5+23G1FtMmXcxQaHgIOXHixQ?= =?iso-8859-1?q?/XUnUefvz4tD2vxlr9TXx1TMv2GaKYJrslbdZ1mVPZiWK8dcZT4PEqUG+mfs?= =?iso-8859-1?q?ZtTUos0bWS9WLop0K/2La5K5tRjmu9gSITcnO6bFtGmlDIoEmc44c73ZAQTA?= =?iso-8859-1?q?/NiAHJzNNr3D7+SUYC/zKGmOwzpyEINNmfFIx0A46QcL3kFXMu8m1RUCGaZK?= =?iso-8859-1?q?WtiRDtV+qcUj6+9KXpwwB2rpB/mOAHiXsIwKb0cdk0ofkOshaDQp8h/JNYNB?= =?iso-8859-1?q?rlodTOcs+5YR86m6rSPZjOkw8VZafuUkWwcLkvHuVOhhK0U07J7T4iA8yRnL?= =?iso-8859-1?q?omAPZ5CSOf2XTDEJ6uNrHJ0sdTLdKZZd0dFlKGiWrNnKBQfNVc36sgawfM5p?= =?iso-8859-1?q?D5SiHOgtDFStph1DwNToG5ugbK8mfYF9D9jO0pfss4XJN2H/+rrT4rCeSY3b?= =?iso-8859-1?q?YyFKmLRJ5cRl3RkQLTEHzcvslrzV2uOglbE9KLgpknKg7gGdmq1XfrKocyTT?= =?iso-8859-1?q?iSU05XrWgnqY6fkpCtXT8o4/r5H4VdU7kJhinMoXDPb+jKI50XscvPt1aAWA?= =?iso-8859-1?q?z6/1wFuEr6yF5K/drxYg3o4T19?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(366004)(39860400002)(199004)(189003)(6436002)(2616005)(66066001)(52116002)(2906002)(99286004)(6486002)(386003)(478600001)(102836004)(256004)(53946003)(26005)(186003)(53936002)(6506007)(7416002)(5024004)(14444005)(36756003)(2501003)(110136005)(316002)(476003)(486006)(68736007)(6512007)(105586002)(14454004)(106356001)(86362001)(25786009)(30864003)(2201001)(50226002)(8936002)(71190400001)(71200400001)(4326008)(305945005)(7736002)(8676002)(97736004)(81156014)(6116002)(81166006)(3846002)(921003)(1121003)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB6223; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: Mmwzw1u6oK7WDWxnnbUFcaTYF81HyUIMWvMWyc/Wt7pPxPmco6iadxuWxu64HUqSjgHVl0FSJ9JOjmSP+RUblCHYcPM7L0NyI/JOMZ1mZc1Z41S3tX2GN6j0B8aV/s8t9EkzmIbNLgDzQCq4AdcQVhGHqd1VCTSoFFUwljkWyTB4AsUxEK4C0ozG/B3/Q1XypXRlKhpAusNMyPAVORQ4V0ZNYCKw2J75hhPPEg9eg1B7qCbFobtzvHl5tM9Ps1a23UGp38kTbsQVtVEeL/5GJWrDMRugw+YDuS+spGUi7yckp9DDHdmftPZmo0AxflLYR+/82NMGXc6F0h90l/BrtTXvIof4XV9/kc3T9GGOWHamw+9dTa+0sRus9N48YDzQbab3QVyyO6ytcuPzY2/ARQsYCAQWY5n3ZEFdKZa/mWk= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19f270e6-704f-4d4c-9ad3-08d691decfd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 18:12:25.3864 (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: VI1PR04MB6223 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_101233_044217_0B7E263C X-CRM114-Status: GOOD ( 14.03 ) 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 event 41: axid-read and event 42: axi-write support count only for special axi id. config1 is axi master id. please refer chip manual to get axi master id information. event 'cycles' must be enabled because hardware requirement. Add ddr performance monitor support for iMX8QXP. 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 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 | 570 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 578 insertions(+) create mode 100644 drivers/perf/fsl_imx8_ddr_perf.c diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index af9bc17..6e279e6 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_PERF + 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..f832de7 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_PERF) += 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..a15bb46 --- /dev/null +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -0,0 +1,570 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2017 NXP + * Copyright 2016 Freescale Semiconductor, Inc. + */ + +#include +#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 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=0x41"); +PMU_EVENT_ATTR_STRING(axid-write, ddr_perf_axid_write, "event=0x42"); + +#define DDR_CAP_AXI_ID 0x1 + +struct fsl_ddr_devtype_data { + unsigned int flags; +}; + +static const struct fsl_ddr_devtype_data imx8_data; +static const struct fsl_ddr_devtype_data imx8m_data = { + .flags = DDR_CAP_AXI_ID, +}; + +static const struct of_device_id imx_ddr_pmu_dt_ids[] = { + { .compatible = "fsl,imx8-ddr-pmu", .data = (void *)&imx8_data}, + { .compatible = "fsl,imx8m-ddr-pmu", .data = (void *)&imx8m_data}, + { /* 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; + struct fsl_ddr_devtype_data *devtype; +}; + +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 */ + 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) { + /* Clear counter, then enable it. */ + 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->devtype->flags & DDR_CAP_AXI_ID) { + if (event->attr.config == 0x41 || + event->attr.config == 0x42) { + 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. + */ + 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. + */ + 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->devtype = (struct fsl_ddr_devtype_data *)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 Wed Feb 13 18:12:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10810627 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 F17C213A4 for ; Wed, 13 Feb 2019 18:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFDE62DAEB for ; Wed, 13 Feb 2019 18:12:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D395A2E375; Wed, 13 Feb 2019 18:12: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 828442DAEB for ; Wed, 13 Feb 2019 18:12:49 +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=EAzMTtI83TjZ4dyq2CKBLs+dzfZMISQnZvdrTLmYZ9Y=; b=WV1iBENn3j12oL LjAyCw/opJ5ydumUb0TRSit9LPpakJLunDgHx6JSE2n3idEDTh2fc380CG/ye/m7fqKm9tLA7/4c8 +dPm0ZuCwbASMd1WX04NNbp4rakrnyzK3+Ut1vTu9xuRTpYScjtstRLYNwZSZIVTjwdghYz+E/Beq 6GgbyMX8Xw01DR1ohvZSJmuYusKTutedG0/X4ucF5Vf2Rw+XyxYgnWIKWXMRQ3tBAakVu8ZRX3Czy 5WxDgQ+Kd6dktm/j9MmlrdTB+EcTTzZonF1ifZ+HErYkxqDUFe9KSia3JrXXuPRGDJxKCYgtJ5iQk 0MPVlDyj5QEBRSFCKoqw==; 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 1gtz1b-0004rt-IR; Wed, 13 Feb 2019 18:12:47 +0000 Received: from mail-eopbgr30044.outbound.protection.outlook.com ([40.107.3.44] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtz1P-0004dy-Q3 for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2019 18:12:37 +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=gPHgNsWwa/DJhADfpJLRIY4NTN6Q6Z4J6NQ+oZ8IpiE=; b=AL39GY7sRAGqiK/oKFn6FsXr1vg8lC8g65lAVbPectdAo7yojxt4d4VR/5oC2gse+AoD70cK1sxakuVoHeBlBqpdbGtCnu6d5evaZbNzjBR1GGebn4Q/YZmJHPXRggaJbuN4yhhvxnA7xz7m3sFwt25lqZ902FSk++H+Nc9J5lE= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB6223.eurprd04.prod.outlook.com (20.179.26.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 18:12:30 +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; Wed, 13 Feb 2019 18:12:30 +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 V3 2/4] arm64: dts: imx8qxp: added ddr performance monitor nodes Thread-Topic: [PATCH V3 2/4] arm64: dts: imx8qxp: added ddr performance monitor nodes Thread-Index: AQHUw8ev0RuwG91nDky0zDG0XgUhrg== Date: Wed, 13 Feb 2019 18:12:30 +0000 Message-ID: <1550081533-25000-2-git-send-email-Frank.Li@nxp.com> References: <1550081533-25000-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550081533-25000-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: SN6PR04CA0036.namprd04.prod.outlook.com (2603:10b6:805:3e::49) 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: ab05d4b4-dd9e-448a-5665-08d691ded173 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB6223; x-ms-traffictypediagnostic: VI1PR04MB6223: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB6223; 23:Qg6MVFm3m7f1Btne9PiEPc7bLkYrucoqhy2a7h6?= =?iso-8859-1?q?vtMnrYSgHRzuWCp?= =?iso-8859-1?q?HV/1axXXzL1U9Y8xAwM+DL3Hd9nsyAEaMdjAKuRCXNRgzomz/Aw87W5yXQ+l?= =?iso-8859-1?q?BD0o5YEKoBAALRL5/snAmG8KvQQeVXYjDZAjQ3YSG7GYURqNHdHNhEKU7vpD?= =?iso-8859-1?q?tIK2Hlv8uAI7T0+MMqueU7kEUuGF5K54N9Uf9JJzK/8KNHxPICi6CFB16eHI?= =?iso-8859-1?q?CxCDKdsQS1ZDqRz8uSLlpclQFZuWyqyjHRZULG7zWZYiguwbo2k7FaPhHre3?= =?iso-8859-1?q?1AejczVbTC0gtTATTjdny4gKybeLzcvOmJDirvR8p3ev0Gz41rWaM/Jlb+vB?= =?iso-8859-1?q?8JJIbhe5LSAVwc7KdVsg5hCrH5on7ECMOXbHCoeTDfZB7b6BrtrEfLG1f41H?= =?iso-8859-1?q?sG8YTut+U/SQc/Jsu2AodVZ8mvhzKjXD+JTA4Hyw+fMaY9kJt6JDaCWTyHff?= =?iso-8859-1?q?s0Q/BYnM+8Lr4rHrhQxSG9DtIa3S4pyfDFjejzzomuiZfDuHqY3pm6z8CIdR?= =?iso-8859-1?q?Kl+8aTxn6k9BghDAzRN0atDo3xuX7aGGX/5cJUcWMLbbZ9i1NoLCxq/jxJY1?= =?iso-8859-1?q?1kjSO+BgzWUUHvq/x9gGHF/tqNMICEC1HcqC7fDjRnlC/lNfobK08XLNLxnK?= =?iso-8859-1?q?t20AYhJlkdv8H4uP4eMRVUEuDancjFDThGnJc1qSL2yHhq+xHJy22ste/5XK?= =?iso-8859-1?q?9DHlb/Esr+O9abu9XWfhJ1H+l12jrcKtTcyEkFImzYw+Kan6y03hsRRGT4yI?= =?iso-8859-1?q?fX9fsDPNaoxFqG9fmxl+vcsyctlTc+456Z3wn6KwIXGXyVE/GZdaa+0o1KMv?= =?iso-8859-1?q?znwISNKokqURPl4S9Cl3TDVZP/AfrGfgQqXaSEShISdEFiilZuFR3R3lN0sI?= =?iso-8859-1?q?GLXXTcRIZy2vBj2R1SWEgzaRJvBa/dvSuQeF7312VEmaywnZbb1l9zd9bmmT?= =?iso-8859-1?q?g0pKbbBmuyxLZfAIQd9HcraWSpcYJdYGVizosOiYTcsOajUIACdq2k7pyviE?= =?iso-8859-1?q?LKSvmdw/olL3YhWs4frWZKhUqgjVf2xkO0HkuDdV0We1epuVLtdlJRGaTvDv?= =?iso-8859-1?q?tQd9RY/0t4VnA6Mzxz5IdBTTwOiYY4OTu3DVWHG6gH8GeQD0dMjBA3ZT1UY/?= =?iso-8859-1?q?WBn9Z03CYNhWYgjL5i8LTfKnN9jBpfko0i9h8kR008MCnD+GvxcOtBymBtQz?= =?iso-8859-1?q?kw2FmNUGXa8hed6GHWzeB5W+zBjD3EV1ab7+ub6YoaUb1WkPJumSa4hB07l6?= =?iso-8859-1?q?bSTOlyuCvCGb9mag4N9hnn6yyr?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(366004)(39860400002)(199004)(189003)(6436002)(2616005)(66066001)(76176011)(52116002)(2906002)(99286004)(6486002)(386003)(478600001)(102836004)(256004)(26005)(186003)(53936002)(6506007)(7416002)(36756003)(2501003)(110136005)(316002)(476003)(486006)(68736007)(446003)(6512007)(11346002)(105586002)(14454004)(4744005)(106356001)(86362001)(25786009)(2201001)(50226002)(8936002)(71190400001)(71200400001)(4326008)(305945005)(7736002)(8676002)(97736004)(81156014)(6116002)(81166006)(3846002)(921003)(32563001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB6223; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: hpNJ7XUCkS9SOPEHNlKjrg02PjIW2WtRyXIV5R6MRxKARPofSpOvVZw8/BNZmCaC8na5t9KqjCgStA2BgZa+QGKDOQ+bI8Brja9wfKLCBXxa0w8G733nqKf4Njt/MZ2ro7RwIYOqCWJFCi88gC3n7jF1sSxm6bm6amL0irQiCz6kIpAqu0Yxxn/o7xCQKSsDijFTbIh7O0KKv1YkudkbakoVJfqWo22X1yF5KvjphwxV+KZc0tHzEqX/gG9/QTXC/2l3LRbdALto6owbYkeBj8D8PDZoh/dFFeJmiLrYgNI8DTOv8EuENqsjCDHunVUlVaS7f+eWNvk3NwQEQL5Oi2CJpVaMoRBfyZoUw9z39TB4757rZwr7u3Msma8GwCSkYZ9BXgIJcvJWbJbXbM/AK9QcUT/Ber9Q78aegagrGzY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab05d4b4-dd9e-448a-5665-08d691ded173 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 18:12:28.1113 (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: VI1PR04MB6223 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_101235_842608_F9CBB3C7 X-CRM114-Status: UNSURE ( 8.92 ) 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 --- 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 Wed Feb 13 18:12:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10810629 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 9A86713A4 for ; Wed, 13 Feb 2019 18:13:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84ECD2DAEB for ; Wed, 13 Feb 2019 18:13:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7453E2E375; Wed, 13 Feb 2019 18:13:08 +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 128D62DAEB for ; Wed, 13 Feb 2019 18:13:07 +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=teVQbb5SA+b3pFcPVlAaA4EnmbUfiuHCqpm99Jz+0Yk=; b=qKSBPHP6K0MGx4 nX7BGWMKzgr2Egcdmk/k+wJE4vWbB5O5Lk0COccAO96K36WqvgygUb9N5QDp7Bpj7dLGvuODVNkeM 7xeaNvOC7TV3m2P80//ISKc5alY8toAdaMjkMD9u4iztktzK9+ls9SczDL437uA0Uyj1w8InaG/B2 NPvTKUdukwWxWmOhJmjw4/R7DbwlMNC6BxH/GFAkvbAF8tL9DNBSfg9oJsdr9oPn2wlhNrNj6gzZl HMW/TZbilsxsLgc63LIFZkUYGjOky82z7xitBRFgcVhSI2nW9096I2X4DK23NelZ1RZXDOVa7dqQ9 o5jvNnxIz3zSXQrOot8w==; 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 1gtz1t-0005FS-RG; Wed, 13 Feb 2019 18:13:05 +0000 Received: from mail-eopbgr30044.outbound.protection.outlook.com ([40.107.3.44] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtz1R-0004dy-DG for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2019 18:12:39 +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=As4xPenQ5uzKYQM2LxBSirAp/E6ZEL95HbBUgeHBHOE=; b=uxLRDB187TzJVG7zUcEKnTc90IngY675BQ840dFK/9KP22t9Olk4XeybXHCVqHaiMeXDbGWkBcmqSopibBK3YaM51U6t11Ih2ymnpZIHOjXlLSd/dnhLXg7U5jEyVZaTzBefLhvejBwVmpJsAzgjkVThL0bNwPMo72MxmRDDKR0= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB6223.eurprd04.prod.outlook.com (20.179.26.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 18:12:33 +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; Wed, 13 Feb 2019 18:12:33 +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 V3 3/4] dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor Thread-Topic: [PATCH V3 3/4] dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor Thread-Index: AQHUw8ewTDDLp5mksk+yzpOwPraUFg== Date: Wed, 13 Feb 2019 18:12:33 +0000 Message-ID: <1550081533-25000-3-git-send-email-Frank.Li@nxp.com> References: <1550081533-25000-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550081533-25000-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: SN6PR04CA0036.namprd04.prod.outlook.com (2603:10b6:805:3e::49) 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: 8492fb9d-6b68-44b6-0c1e-08d691ded309 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB6223; x-ms-traffictypediagnostic: VI1PR04MB6223: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB6223; 23:jiBuwNVp7EHGhiMh5Ot5GYndv87+Ul4DpLW8dgc?= =?iso-8859-1?q?DSrPtkbfa9WtMch?= =?iso-8859-1?q?y4t63/YdFKjjxQGAzMqvvjnjga+PNkSLGUBwAdMJy2nkFEou0GloQ+PiMZYy?= =?iso-8859-1?q?rfPPmztbfbe3BLcgxWTtSQzi9BJKI71wj1quUn8+w9zdQfH1gG2aM6oaMAhf?= =?iso-8859-1?q?tbmpu1OexOrA9zRwDusHNAG9aBu6ziVnxoBBuQmqYPsbp6OzmdWgH/kXtCaK?= =?iso-8859-1?q?XRT3CiTimmIztpyaSuHpmNR2HP2P4VZnAN9+0MhYFIo4iI26eGQZb7snqHX3?= =?iso-8859-1?q?HNI1Q75gVu7jFY/G5YBeeGPdE+iSZcUmd4haGEvIerQyjRZ6lqG79jQQzsYV?= =?iso-8859-1?q?VAe4ARiUjeQsfaQpfLZQaKxLBC1OPBX6yplQBxK2D9QsJPUdib5A0Nfr2cPm?= =?iso-8859-1?q?txZI6UiXZDRIPCZyPxlB9cCQo+WTbmEW5+knKQPZbNurUCpDHdzZjZfE5AOI?= =?iso-8859-1?q?I6q6wfzlh08n++nrooevQz4zLio7aS6jVExDFLUc2x0p2fM5iWl97OMUYoHT?= =?iso-8859-1?q?WDTIjOeL00rf98Dl6hbXHl3ZEvzx+AzOCFGrHiFxh2mipCPoRaiCx/DPjSzW?= =?iso-8859-1?q?UcHzSgcFnMVZVa8fS2/we6QXaoGu1YC1imQMHPpQ16t6iLpkoKq9vpyGkwQp?= =?iso-8859-1?q?VwFhdD3KGi75aS9vdwMduJuskMpOakJppB9kBEYeVauMtaMVsNhfLBRl8yBq?= =?iso-8859-1?q?+pmP5Dn6DV2Rec8Ezx5AfsByKBgBygwzaU//+wGUeXvAJZDBsGgcFxFzN8lw?= =?iso-8859-1?q?aHNDwA1uep36ZmPfNgRyBFxH87TVE+4FElc6UcHpMi04A4kzXx7W7yB2tzKQ?= =?iso-8859-1?q?mQ6brC/rN98+oMh02pYSKJhtHyT8dWbvQWmCuiKO8bexYlcKbI89AV270leY?= =?iso-8859-1?q?XBaSBHWfW/oym7WhiumNVnZ+k0obgoLj51WaAvbRhltNVZXXKOizP9+4/TCg?= =?iso-8859-1?q?OzDpSgVqp3sxV3TFUhd7SlIe6/+yOD9woyjmZgCaotfUQSEQgt5NH3iwLdKH?= =?iso-8859-1?q?ehrI+YQRuQzgxMTIsDLh7NWixO9mlXT4NYSY28I66//PgD0IZVmIwtIAgsQx?= =?iso-8859-1?q?H4X6wrYoTgRAjAcu+7WH3667C6uwTOqcVlmCjFi+1YSEWNhQ7Yt2aVvRTI//?= =?iso-8859-1?q?ymvAJbZYQTf2lagmA89jqyhu+L4FEEqBxiw8MxJwRQ1kQmyllmhGpgRQzBoo?= =?iso-8859-1?q?ViAkq1Af/XX+4E1DC/WIL0uAC0xtZuJ0bIOmOhjaHvQaiOwdXTSX7lnJmPUA?= =?iso-8859-1?q?UW8DM=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(366004)(39860400002)(199004)(189003)(6436002)(2616005)(66066001)(76176011)(52116002)(2906002)(99286004)(6486002)(386003)(478600001)(102836004)(256004)(26005)(186003)(53936002)(6506007)(7416002)(36756003)(2501003)(110136005)(316002)(476003)(486006)(68736007)(446003)(6512007)(11346002)(105586002)(14454004)(106356001)(86362001)(25786009)(2201001)(50226002)(8936002)(71190400001)(71200400001)(4326008)(305945005)(7736002)(8676002)(97736004)(81156014)(6116002)(81166006)(3846002)(921003)(32563001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB6223; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: N6MHS4hoTv1A0RQ1PGcqvfgVrFg411IB4oP8GthYtteom3uuHMK8LI/aVQKwUQRD/MYiGk6NuqAfCwOp9Nwne3k4mAEArVnR9zggkXVCVImJToNkfWFBNKIQkk1Zp0X75A9Y3KtoFUJkwa1kQpkEFAH/9UTQ2HEs5MDrPekGZWjB9IT8gD2eWMmCFZXFpMzCs7xCgjchDS5o2h2NC32rl+E3xy4PKfdiTZpLCsEKITPTjbErfvpQyn2YfVV5oZy45+wlmC87G/cFYCi5BJ6wlj/wSwwe+ndoaM75fuoHRtf/ABTlXHGqaokE6kWOjWe6HnyB8zsTpeYtk/1n5cngogE88oxiIPqiAaiS2UvG3NK0+gRr1L5GWfo5/Z5GEkkZ2jBidPRYihQBUz9/V+bE9Evc1T+0i3wt6l7rhTCYsbw= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8492fb9d-6b68-44b6-0c1e-08d691ded309 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 18:12:30.7751 (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: VI1PR04MB6223 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_101237_444631_E976C058 X-CRM114-Status: UNSURE ( 9.65 ) 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 --- 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..9d55182 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt @@ -0,0 +1,22 @@ +* Freescale(NXP) IMX8 DDR performance monitor + +Required properties: + +- compatible: (standard compatible string) should be one of: + "fsl,imx8-ddr-pmu" + "fsl,imx8m-ddr-pmu" + +- reg: (standard registers property) physical address and size + +- interrupts: (standard interrupt property) 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 Wed Feb 13 18:12:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 10810631 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 EC40317E0 for ; Wed, 13 Feb 2019 18:13:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA83D2DB3A for ; Wed, 13 Feb 2019 18:13:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE3FD2E3F2; Wed, 13 Feb 2019 18:13:22 +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 75C762DB3A for ; Wed, 13 Feb 2019 18:13: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: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=Lo0Jgi/K1glPsrAdK14u6ZYp3dz5gjjI6OFjqOZXbJM=; b=W5i2ffwNeYaH9V 7UE0ldzol8vjncHvPJqgiz1NUoT1LMB7fMCuhwt/dbQVt/B9VpDmv/VD7ojsMSZbjsH1AyQA3cqBS meSSAJoVqTK9w5JACq5pyIpxIDHHDwpX96IpHwcAe1o1A2OmhNcO/toMHl7/9PTApql9PlwIJgcZz Klh3PPiPsgXNMWivhKUTb7g1/rsM0Pr2zdup+2jVz3nkFMDsfP8BMYcNNz4v7/iRJpCc5YXcr2m+d DewaA9cjkuc/24hoNtmRYOcc7YHC7nyJsoe1OTQsFwGgSwYcvk+uhV4MfOpu/Z+rVdO387G581O47 2DKaFlI90GLDAJ2rX4Zg==; 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 1gtz22-0005Pf-PB; Wed, 13 Feb 2019 18:13:14 +0000 Received: from mail-eopbgr30044.outbound.protection.outlook.com ([40.107.3.44] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtz1T-0004dy-EL for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2019 18:12:42 +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=IWTPLNbtuf/9VNzWLUjQaPgfR6KNSczRH6WDkiy1Zt4=; b=szyYqyKeOOWzwYzXvq3oWreZMmS/DCYCEOVAoN48y9dAM46ays4Cngheh1LhcRg4cVzmPt2sagQ/O6ODDhSuwIzY1Nl1gWdlJyqPVyzXbv7vGPVCwaf1b2/6V3qcUa27VXz6hJGiJFOS8CRW9xrN3pOz9XROg9fY7aTh4m1D/Uc= Received: from VI1PR04MB4910.eurprd04.prod.outlook.com (20.177.49.159) by VI1PR04MB6223.eurprd04.prod.outlook.com (20.179.26.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 18:12:36 +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; Wed, 13 Feb 2019 18:12:35 +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 V3 4/4] MAINTAINERS: Added imx DDR performonitor driver maintainer information Thread-Topic: [PATCH V3 4/4] MAINTAINERS: Added imx DDR performonitor driver maintainer information Thread-Index: AQHUw8eyMhn1qIna7EuJ3Yf6EED4fg== Date: Wed, 13 Feb 2019 18:12:35 +0000 Message-ID: <1550081533-25000-4-git-send-email-Frank.Li@nxp.com> References: <1550081533-25000-1-git-send-email-Frank.Li@nxp.com> In-Reply-To: <1550081533-25000-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: SN6PR04CA0036.namprd04.prod.outlook.com (2603:10b6:805:3e::49) 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: 11580771-0bac-4bb6-8ef5-08d691ded4a4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB6223; x-ms-traffictypediagnostic: VI1PR04MB6223: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB6223; 23:6hw6V8O+YkKNm7iM8J+JgHi21paLVbLhIiCrdiL?= =?iso-8859-1?q?V4WhEoPaN788bw2?= =?iso-8859-1?q?3tfskGCIflSj8UHQ9JDBHQOfERfy09bdJG3yjTJs+WyLswrfz1SNJXeZjYQt?= =?iso-8859-1?q?RVoFIr8+9bImZcTGLgb+yArOK5nNn0i1d4wUKUzXTr22kewMaJYkeLxS3zJh?= =?iso-8859-1?q?W2c06yo01htBd5bOJdUiA8cGrOp6NJlRzlhoNz8v8l04j8cpndQF5pFAGKaJ?= =?iso-8859-1?q?YLbe2i/SQR1FnY0qpu7l7V6kZksjj5zT0PB1jeABHb8hv3Rr704t39imN6bW?= =?iso-8859-1?q?pNzzsGoVhLAU7++MHkn6nESoMlYYmABcMxDTBHQb8NJX9zyYA90QxH3yoAkl?= =?iso-8859-1?q?+GHT547Kz7/d/BwHxnlwbRhYSmGUYIQqnHvVSb0oq4mQzHjGn1vbqD38qjgq?= =?iso-8859-1?q?j0ZXIoHnmMjfqF02asN+QfttCUM8hO3eca9Tbzbz/8Oy7/v89SUuxrWNlUQT?= =?iso-8859-1?q?8Rxt+IJV0/CkrJrrPehbgHQlnpPZ2rD4lI20AMn0liDCb4Hec4pTfYc4gFeK?= =?iso-8859-1?q?Pki9CPrkocvCkl90UmlGFmMuRunWRdYRWtHZHR9nIkRt8TItdt1qgDHeAj5E?= =?iso-8859-1?q?W+l+HZHwfCOT+68x3jKi58g16jtrI2nkrKylH27cr9CEDXidCoEI1Tcp/kCV?= =?iso-8859-1?q?Rk4Szf1pg8pM1w4uPqop6BK3WorZ+tKOK0yrkhmWkwha09RyfE7qvjpp4tlq?= =?iso-8859-1?q?t+1cbM2svblujaDtGd3FwDSN6iAj6+Adyg0NqdH3gTznc3JpbH0AN1+ndZYP?= =?iso-8859-1?q?3Vt3JiNPchxQstpl+FdlRQ+NrDLcmX5eWwG0BXD+uy5NmLDT9+Kk5UqPb7j2?= =?iso-8859-1?q?lvVGQBYYQqZY+HFEt/qPCyn8zyhFDs6dFI6n26Wq4+S4f2kbk3A8YXxdf4Vr?= =?iso-8859-1?q?Ma79tOpIiFIkVFOJB2uwnroQrOsGKAVqaTNz9TJvk5Anlm7VcHQGrn5M4FvA?= =?iso-8859-1?q?4OrJxZ2XmOrbWpO+Y7htuFLCUen+Opc4EXL+YgAWIpYlP3brsBAiXMrZKyZy?= =?iso-8859-1?q?HHijNO6KwNnEhleCvDFmo3VA+D8QlLAOOWGzap64ls4iu0ikCxD4giUWJFZ0?= =?iso-8859-1?q?AYnSGMI4T5/8C0zb2yzpS9gGHK3Njlp2FnrMip/j76m9la/E3U7hbdPYC9yw?= =?iso-8859-1?q?OQ2OuLXmuM5JwsRY1M84I/oVkuN458gT5ghFDN2/JxX9lMIvqndrHwPSF+mw?= =?iso-8859-1?q?u4y4Ov+cJtPCIKqotzwkceU9a4EPIzXZjZR95cbygZ2ZIkiieB5f6xduQYfl?= =?iso-8859-1?q?RNyrI=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(366004)(39860400002)(199004)(189003)(6436002)(2616005)(66066001)(76176011)(52116002)(2906002)(99286004)(6486002)(386003)(478600001)(102836004)(256004)(26005)(186003)(53936002)(6506007)(7416002)(36756003)(2501003)(110136005)(316002)(476003)(486006)(68736007)(446003)(6512007)(11346002)(105586002)(14454004)(4744005)(106356001)(86362001)(25786009)(2201001)(50226002)(8936002)(71190400001)(71200400001)(4326008)(305945005)(7736002)(8676002)(97736004)(81156014)(6116002)(81166006)(3846002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB6223; H:VI1PR04MB4910.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: iEbjFnXoN0HDHE18kN++qXuexpx5VW2FXKk6pgBfd9giFcOx/zfxUCNIXtgjZfiVoA5HT5XoL+SNvY34I0pnQwm95pcU5mez1bbWNMPtZB6w5/goieuUgQYpRYQEPYoscHroYnktDgoA5LFgHaTOAFBmgwutRnn4AYBBoydswg2LDZJxBeLZ8RUhc9ApkOqk3n74iEaMWerPWXyDAFvCyOl7dlaNVLsardL852ywRNBwZEw+sDRr7c0cVUSWoGV6EfpW1e+7Vi7oX2AwDVjDElz251ttbEKUqNqcgHp4+D3U5JORd/nvVXz2MJJjqWVROatvlbgooLm0rm9AH/TTiI8r5T4DTkLEwUzliUDtZx9sUAoe7JAciM7mf0hbCos0jEx50DkrBSTGTZQpjp7dLfe+SZCnPXFMJpzkAoY7eZw= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11580771-0bac-4bb6-8ef5-08d691ded4a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 18:12:33.4710 (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: VI1PR04MB6223 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_101239_680930_D9DB846E X-CRM114-Status: UNSURE ( 8.29 ) 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 v3 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