From patchwork Fri Nov 1 08:36:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 11222607 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41C05913 for ; Fri, 1 Nov 2019 08:36:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1DC5F2080F for ; Fri, 1 Nov 2019 08:36:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eUfEmeAP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="S5ir6G6/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1DC5F2080F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=dYgNsdaCEkcBidajsVo4cfsFnrxFVnXSTm7fXgXEosk=; b=eUfEmeAP/id+rp YOBMoI4l64yASfDTFVIwyGoTR7I3x4+yAMYViy9UWvrwmOOHiyWpmQCX0Mlwo/RB66cyR5GZEMf9W T7r9KIjGfi/x/KyNmPSoYJDYzOqk5m6KPdMlR93PGM2N19LU49lgUi11LtDUmVGNfyX/gX/i9IcWq ZEhQGICoKlLRXhKVwMMIOF5q9QteVnzW9oDhXqPUOxilqycMrO2Za0bPywA+FkZSyCaa2wptoHrMW ebCTZZLyvH90YtC86CM0xOCfeCWAgz36xoBb5R0rLxBOym6O3O69tc/PbiAWWnkjg7JCC6w3gKkR4 9Npm3E1l25zvtlkx1WHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPp-00059Z-L4; Fri, 01 Nov 2019 08:36:17 +0000 Received: from mail-eopbgr10085.outbound.protection.outlook.com ([40.107.1.85] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPm-00058h-Cp for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2019 08:36:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkNecX0BoeTP4LoytKVUeX6jBL7l2rIDYCZUzjkZ9aq1DQr5UIP8AGCbCopUf7CjABniccbek0qgiGoCfI1JMmo4nn7a96L5Z7phrEGPEEUiP3qQhvaRdaeWmBFzVb0MkN3lu4GsqO81ULFR4gY5zR24EEsQ1Iy3on1Pkjs3uCvMH8G5uAFcfoazPoh37e7hALjldFzsB+XYOkboojyG64zWrXZAQruR9x2EucTu5okcCZ/w5ioL8VHUIw5lgeirY7o91rIZ5oiMjErm0MNtp/OhkEsv4UgFDb4OI57os/Go6p2wqb2tXkzc0cZYBgOdZ2ZJsdiMvgi7x/ZPrx4VMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WL1A5fcxcsaLb327ePmqfW3R4XxlouLMMh5f/CNWngw=; b=QCRazVLlFaH36bdNLlxwQii4v7kMYZA91CPGNWhZi2b7M4s2j0udkEhliRpIw476OgHaqAk0vawtb0sRNiv6X6TCRovKFFEraJ2YbadVjebLI+8dZwC1cbus4zm8KqcN2dBXV47Bhr8IPps+TCkW6WwXIJOZnRQU9y8cVaXGtSO+cndCmHmhF2u8/lCPp+KmMPbDso0WPI/QQssjoilwlW7HPqQawqfKyCIGk65R/TrABCe4h/mlDTWepyiPBJ3MlmBbUyO1YepuOOxhC5RiUpiF+IeFh3Q+8xM+jkodAnHUqhEccX7ASv2JCvbuZzUUasP4dPZoLogeYeyBT1MQfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WL1A5fcxcsaLb327ePmqfW3R4XxlouLMMh5f/CNWngw=; b=S5ir6G6/0Do9MMarDtqKFyoL8DB7S1BhNeHhrP+TqbqcTweudWVlofBV4vZNTl/qR3ydigRyks1dt0aNS91msZWLnhjwMs8L874BRb5O+jJIb+MWEmnf5BDjW4Pr9Py2X2h42lfEq1bVRAKOGF8u2HTNXGhJz+Ze8iKa5gDMu0U= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.139.151) by DB7PR04MB5948.eurprd04.prod.outlook.com (20.178.106.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.24; Fri, 1 Nov 2019 08:36:10 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679%3]) with mapi id 15.20.2367.031; Fri, 1 Nov 2019 08:36:10 +0000 From: Joakim Zhang To: "will@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" Subject: [PATCH V3 1/4] docs/perf: Add explanation for DDR_CAP_AXI_ID_FILTER_ENHANCED quirk Thread-Topic: [PATCH V3 1/4] docs/perf: Add explanation for DDR_CAP_AXI_ID_FILTER_ENHANCED quirk Thread-Index: AQHVkI9p4K7tGFD97Ee5sgRPKHNZiQ== Date: Fri, 1 Nov 2019 08:36:10 +0000 Message-ID: <20191101083317.29510-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR04CA0156.apcprd04.prod.outlook.com (2603:1096:4::18) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:38::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b1e88953-3c66-4c53-3ef2-08d75ea68bd6 x-ms-traffictypediagnostic: DB7PR04MB5948:|DB7PR04MB5948: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 020877E0CB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(54534003)(478600001)(2201001)(66946007)(26005)(4326008)(3846002)(25786009)(186003)(5660300002)(486006)(2616005)(476003)(7736002)(54906003)(110136005)(86362001)(2906002)(256004)(6512007)(71190400001)(2501003)(8676002)(66446008)(52116002)(81166006)(66556008)(8936002)(316002)(36756003)(6436002)(305945005)(50226002)(66476007)(64756008)(6486002)(14454004)(1076003)(102836004)(99286004)(386003)(66066001)(71200400001)(6506007)(6116002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB5948; H:DB7PR04MB4618.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: BCL:0; x-microsoft-antispam-message-info: JWLzngMmrcIPLHoKT4iOiBZoubbjufJZQlJn97pX+iwxwaskXVYBOohbwI4mSYbeY9QXt5hci21XMEstAaeB/DkunAt+0pLyC6mwmZURzZr4TrnDsTbGO4F/5fltRZ04c2kJPzqx7cBjO49EBuJeYpPGWtsYNWCkN8siO5dfwbOa3MMV8o1g1bHzVA7SBjC90Bo5pmlODW0g5RJ0xsU68rRvBiXI+E0PEN8iFfFP6b2emE0lZjqAx2JFG3dEQai5y3vxzlxSkaXg63t+HSi5bSkTcL44IEfBwMkNNpOyJRqx9EOsBQCzwx1/YW3ojAcilW4GGAsPcQ/FAi3/KohVHtCpDO7LNZ0xdE+7bHQK5gqbCoiWqwj63H7RfGPoM7xdPLtZiFB5M56yw8QBdr1uVtfF7UqT+rGxWmFJQ2xGNMK0zPWUnHOEmkZn9rs1KcuQ MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1e88953-3c66-4c53-3ef2-08d75ea68bd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2019 08:36:10.4417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mx4RKo01LgGqKmdCk4oGFbBx1hB8vmrr4bOKVO+uOQQE+FbVnjwi0e1+MxParr266W4qmx8I8kAQytiAgn+w/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5948 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191101_013614_438780_EEE68E8D X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.1.85 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , Joakim Zhang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add explanation for DDR_CAP_AXI_ID_FILTER_ENHANCED quirk. Signed-off-by: Joakim Zhang --- ChangeLog: V1->V2: * improve the context a bit. V2->V3: * only need select this enhanced quirk if HW supports. --- Documentation/admin-guide/perf/imx-ddr.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/admin-guide/perf/imx-ddr.rst b/Documentation/admin-guide/perf/imx-ddr.rst index 517a205abad6..d1347928ac39 100644 --- a/Documentation/admin-guide/perf/imx-ddr.rst +++ b/Documentation/admin-guide/perf/imx-ddr.rst @@ -50,3 +50,11 @@ in the driver. axi_id to monitor a specific id, rather than having to specify axi_mask. e.g.:: perf stat -a -e imx8_ddr0/axid-read,axi_id=0x12/ cmd, which will monitor ARID=0x12 + +* With DDR_CAP_AXI_ID_FILTER_ENHANCED quirk. + This is the extension of DDR_CAP_AXI_ID_FILTER quirk which is only support getting + bursts from DDR transaction, i.e. only can get DDR read or write requests. You + can select DDR_CAP_AXI_ID_FILTER_ENHANCED quirk if HW supports enhanced filter. + Enhanced filter means that it can count bursts and bytes from DDR transaction + at the same time as it implements another set of data counters. DDR PMU driver + always return bytes for enhanced filter due to it is more meaningful for users. From patchwork Fri Nov 1 08:36:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 11222609 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E549A913 for ; Fri, 1 Nov 2019 08:36:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C20782080F for ; Fri, 1 Nov 2019 08:36:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W/J7bhKp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="TUP8ZngK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C20782080F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=Ix6bWFtvlQKJOfDCxhNwQ0fEnEQcflxqHezhxFIFdXo=; b=W/J7bhKppkJDLy uPlIXHrrjv+BAVCZrYls/Hpi1TR5A2Ns3ZtfisWL+f5rlozw7SCpEReoxUA0nAZ0myJKaFpZpYdFu JMt3Q3ZKi9s1ApWOYv/ihly39Stx5C/e/kJqIxdEKvS6dji4x+yWjZ2UYQa7H8IQ7DWGuGVKw+Ffc zqjeRj4YTq+3/w3GiTvvyHDGCKBLe5SHV0OdAvxVit2fGWmKnDZY+ke89+Hd2jIcRAyoZdnX+Lthf nPsYOaoTbaVluq2r5KkBkzOfZGFhrb7Cmazh77AEvMhUg2z6vs1Fc9aawL+6oV1sAA/JfTMq9ccu7 MueZ0ljtsmKozXdq23+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPu-0005GU-QJ; Fri, 01 Nov 2019 08:36:22 +0000 Received: from mail-eopbgr10085.outbound.protection.outlook.com ([40.107.1.85] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPo-00058h-8q for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2019 08:36:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QzpLIIqyzaPrMCWDoT5KwEWdbKSseVzs9geuVKxCr6rYl8JFCrGHyQ94GITJWssV+pjg1jrWQVNhvvmy+2GWcV4KdB1LJTNtMqAZofLkklfKc1Kh6xkoMWFF0ZbKSTuCGo0h5tMTp7F8ylNerBa9V4xrWOQ9KAU0QM2cCDaVtmiImnxDVAoHS995Zmb2xv2QtZse82b2fTkixXzzjen8zDLmxekFGATzhOoASanWGMh+7jmYtWp4zLGkMaMEZQAO79CwEyPI7XMaw/hMRLXpLttSamJ6xK3hcnMr88SowzZ8hpXcIfqGbwZttgU+D0PdGwp9OvV11WmfxVHFxNE3uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bAAg9dFVN/hX6j9VmFpFYPcEXVUs2FlkWHkAN5a3ToY=; b=PWiy+GiJ4JdSewMGfHw/fyqxsOJTho+JO1w7TNVhl4BlX8NIyExRf5dIVfhdt0qV95RAoGK/NI4NavVRMiLaflsU+R8djhK6sZczyZkuDVhkHtkDmTytTEr0v+XIdAvVFFtdFMra4M8nh4DL1wD4oKJy2Hy3GDmrNWqa0qXH/u5PtV97z+ousgEDs/G0icywnOALWKsBmiQhA35ny+pzJ51IcBfKZ+fMsVQ/xQTcOh0Wqfoi1Tm5rpH6NznUupZ+X7M/BNRoqWZ9uSv/i0yt5uAAOf27KctQtrUiKIM9hVTcGxj+5nkYXTU++6mkajl/5ZhoNxLcHlWAuQxVoT8jZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bAAg9dFVN/hX6j9VmFpFYPcEXVUs2FlkWHkAN5a3ToY=; b=TUP8ZngKZwN9HUSbrhkmeoLz3875V1FhxZH0/zUuzRRFUHrONH6/8IMrviReNuMdrxNwx3ORmIcxOkcg4KaODGy7nE1oRDY+Iyzz7kFxKQOFnT3vGj8y9QVCFmAM9MHQVUDvjvzJjpvH5/FpAJV+OpBFS+6nro35gyQLGJHcY2w= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.139.151) by DB7PR04MB5948.eurprd04.prod.outlook.com (20.178.106.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.24; Fri, 1 Nov 2019 08:36:14 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679%3]) with mapi id 15.20.2367.031; Fri, 1 Nov 2019 08:36:13 +0000 From: Joakim Zhang To: "will@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" Subject: [PATCH V3 2/4] bindings: perf: imx-ddr: Add new compatible string Thread-Topic: [PATCH V3 2/4] bindings: perf: imx-ddr: Add new compatible string Thread-Index: AQHVkI9rvl+5igGDNkCOwe4G0+1kpg== Date: Fri, 1 Nov 2019 08:36:13 +0000 Message-ID: <20191101083317.29510-2-qiangqing.zhang@nxp.com> References: <20191101083317.29510-1-qiangqing.zhang@nxp.com> In-Reply-To: <20191101083317.29510-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR04CA0156.apcprd04.prod.outlook.com (2603:1096:4::18) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:38::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 851f5384-7e2c-4b6a-c308-08d75ea68dda x-ms-traffictypediagnostic: DB7PR04MB5948:|DB7PR04MB5948: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1122; x-forefront-prvs: 020877E0CB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(54534003)(478600001)(2201001)(66946007)(26005)(11346002)(4326008)(3846002)(25786009)(186003)(5660300002)(486006)(2616005)(476003)(7736002)(4744005)(54906003)(110136005)(86362001)(2906002)(256004)(6512007)(71190400001)(2501003)(8676002)(66446008)(52116002)(81166006)(66556008)(8936002)(316002)(446003)(36756003)(6436002)(305945005)(50226002)(66476007)(64756008)(6486002)(14454004)(1076003)(76176011)(102836004)(99286004)(386003)(66066001)(71200400001)(6506007)(6116002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB5948; H:DB7PR04MB4618.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: BCL:0; x-microsoft-antispam-message-info: 3VkAmBLFyzahBs2WVkuZBj9wWT2rfKFfFOv+fmyajAYtPvqvYusw3hVo2t/whOGPEbYvSh+FqaSvQF7RAlWgH85tXzyQqt41U/wSvOFwTjS6OvBVP20BL+wKiNXISMl+WMAIaAO2SSqY93jXeiV8TwtEDcNEm6MtB5QJ4nKTHciIwk4m2cF1CS6sB/DWaCl/CdrD91OTA3Q9A6Iyi+2r1aEzWzhP0DvKN4rgfYtuc5eiqQ4B2kIdFCNcff1JpFotR1ZKt2UM/RBFqUWlQoR9L8kUdWOtFpXXFsNaEYaaH4rd6VEfDV/pnnfhDYtkHcmce2wEzK4Ve5+MntKaIgQjFbuG+jRQxwt3aV8OypMyXnt294NWQAVrNxeBTD6273vum+sHYOid82A+VgP1p9SugiXy06Ff64AREF/9KmBBv9ulFvEULgTAJGF2liMLcJBe MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 851f5384-7e2c-4b6a-c308-08d75ea68dda X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2019 08:36:13.7898 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bGjybtydiGrJt0ZUJjsTFtAqj5AKxfYnaAjALiZUdJ8WiLOj4Eq/uEn1nroTjzM7hMVLU2k7+gbsU8Twk0G58A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5948 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191101_013616_309123_A75B18F8 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.1.85 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , Joakim Zhang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add new compatible string for i.MX8MPlus DDR PMU core. Signed-off-by: Joakim Zhang --- ChangeLog: V1->V2: * new add in V2. V2->V3: * none. --- Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt index d77e3f26f9e6..7822a806ea0a 100644 --- a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt +++ b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.txt @@ -5,6 +5,7 @@ Required properties: - compatible: should be one of: "fsl,imx8-ddr-pmu" "fsl,imx8m-ddr-pmu" + "fsl,imx8mp-ddr-pmu" - reg: physical address and size From patchwork Fri Nov 1 08:36:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 11222611 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC0311390 for ; Fri, 1 Nov 2019 08:36:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 968002080F for ; Fri, 1 Nov 2019 08:36:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="phPeLbtJ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="TWzEREHu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 968002080F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=nu7SkMt0g4NZwbCpPYux21nToSYQuv5WXRatYQVTRtc=; b=phPeLbtJXgrhr8 fxP/LMxV0C3uex48uFBFYBt8fEdRkhAikb4v4EM18wMF3qYCyiDpwQ8+07wNkb8KeU9qEkY6b7H4S BQNT6suSFC3USi76AsyD0qSrT/RmIrIZMyOAGnQg63C0Kx4A2df7f3N0NVhi09Svckej3iyq4pWFq 6y592Bl/NG2mHM9mNa/Ikl4Hkc177wnkDzkq5qwJlMjPnprbLyaEXcz1HmPtdG/88qQprswErTOPq l40ospDSkm5h1jz5VPDEqDz7koc5KmJ9RMgQ+Tx2tvbHz4L4JueRuIUH5RB6F9aFgQGBke2TQrEsH BBxjhHThzV3GYrZH2jAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSQ8-0005Ww-AW; Fri, 01 Nov 2019 08:36:36 +0000 Received: from mail-eopbgr150051.outbound.protection.outlook.com ([40.107.15.51] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPs-0005BG-Pc for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2019 08:36:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jv/36Dq4sC9eTat8LQtmvWXqyOH8GkXQEUMTw7x7MRPyUhCG3etRFG5pjabmkMIPq05VY45UdgDzes3vCq4OMnuw5Swq4kwVdF+5pt7xbTJOnds9llgjV6pBA/wgWINUkPpR403MCt4gDQ3K/0IMZEydGGX6wH71BUEslEZhQcKPmX9kgASSrtds69FxL0CbtK8+1GGuBf6DqOkFbhYNaP1meH2TGKn2U+5nZF9RIifSns13Wb2BwA1kHfxyLFI1g26sUAgMAak/GzgP2KuTHsYAt82ltjflqrLQ+PzgOkldvijmCTPh818peeNEGZn6Sx9UthUgFGWhpeXft/YOOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SKxWzn0a3BBvMq+CafuIXl8+bWFjmlHs+kq5mgTtoNE=; b=Y/UaEUMHamL1GCv/JXmQAxn0DO5UZy6sFTEBUaGZRRNlArYuo2z6xSeNBg/RcMf7+K0JltDE6Mh6g/0He0OrAoWo5E10XbHSD+Gsvfn2tAvfNRLr6ALfoPQ3JDl9jJyOaf8F4exq+EbodiPWYAm1pdTEF+qAvEaiAGvql0BVm8HU7FmukTQCyNQXBvHtD+hrxxyZ8Rb98JHCNSNd6dTEp53Q5pfg2cbCLQWH4S8fIAWkVXxRb6VyOAT2KGRGy/u2MWmnXvgw6Ev0YW5Oivsq+HRDqkXqGHrs+/ofXRBFXyInd8oJWt3dUOmbqL+ULm1a/ty551IsuyjK/dEhImcR/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SKxWzn0a3BBvMq+CafuIXl8+bWFjmlHs+kq5mgTtoNE=; b=TWzEREHu/8WbbjEpjh0Sj8DRVTUMq094yVX/wL2dIXCDf7CiOPXT3aHAGzibbjw5f6yjg+3i/VanuiI2yoldNQnAz6oWM153dAmbUpaxnGpHVqg6cnBkwAKqkNTv7UGkXQDuJeYWiyxw6gzHebsFrBz6NxEHEfzKQ7rLqZJCv/Q= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.139.151) by DB7PR04MB5948.eurprd04.prod.outlook.com (20.178.106.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.24; Fri, 1 Nov 2019 08:36:17 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679%3]) with mapi id 15.20.2367.031; Fri, 1 Nov 2019 08:36:17 +0000 From: Joakim Zhang To: "will@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" Subject: [PATCH V3 3/4] perf/imx_ddr: Add enhanced AXI ID filter support Thread-Topic: [PATCH V3 3/4] perf/imx_ddr: Add enhanced AXI ID filter support Thread-Index: AQHVkI9tmOl/phINXEWndRHoKw3IpQ== Date: Fri, 1 Nov 2019 08:36:16 +0000 Message-ID: <20191101083317.29510-3-qiangqing.zhang@nxp.com> References: <20191101083317.29510-1-qiangqing.zhang@nxp.com> In-Reply-To: <20191101083317.29510-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR04CA0156.apcprd04.prod.outlook.com (2603:1096:4::18) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:38::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e792dd91-2a88-4315-0202-08d75ea68fdb x-ms-traffictypediagnostic: DB7PR04MB5948:|DB7PR04MB5948: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:773; x-forefront-prvs: 020877E0CB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(54534003)(478600001)(2201001)(66946007)(26005)(11346002)(4326008)(3846002)(25786009)(186003)(5660300002)(486006)(2616005)(476003)(7736002)(54906003)(110136005)(86362001)(2906002)(256004)(6512007)(71190400001)(2501003)(8676002)(66446008)(52116002)(81166006)(66556008)(8936002)(316002)(446003)(36756003)(6436002)(305945005)(50226002)(66476007)(64756008)(6486002)(14454004)(1076003)(76176011)(102836004)(99286004)(386003)(66066001)(71200400001)(6506007)(6116002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB5948; H:DB7PR04MB4618.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: BCL:0; x-microsoft-antispam-message-info: JTeGgu5aUXZQmivs/eJDrqXvQmjvEvUQGE+ql7AhORw2dZ+JW0dJzY/JT72/eYJpI55+FfA9Fbj707Ni124i09cY081c4tDdZae9T19H1XXSGhY/2+ccRPek4ENGwI4xISWfIMY9s5dlESrO2TifvQHktbL6oh2bmQgUg3WD2eacgQ3Qov/1N8HSY0zaRho08V/rdHGH5K7uBPUcnYmIoeTwXSyxMIbddcHYTPT4t9k1ybRL+Qg1cfvZm+Y/8M/9jD30aL15tnvFminv9qVExadw3qKs6Tm0jD4Lm1TBaYgQ0cMfIe1xSSQVXkwlWVs32g0p8nyudVta44ZShrozSX8Uvp12PCEzGmiv1keEeJzqhaxMWHPaCyVslQcUUbT6ZokRV+ZtRdihwjAdfK9sDpI6Qczv32a667MzUp5rrHPudX72+9t5ZNMs/u7+mmXu MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e792dd91-2a88-4315-0202-08d75ea68fdb X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2019 08:36:17.1608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7JSWhXKa4pB0B8C0JuOBboE7bZGMG1nVNifnP4HdvOoOfAevF8xxFe3qHApA/SaXJq436TJKuBIzTq+in1hocg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5948 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191101_013620_860038_4B073371 X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.15.51 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , Joakim Zhang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org With DDR_CAP_AXI_ID_FILTER quirk, indicating HW supports AXI ID filter which only can get bursts from DDR transaction, i.e. DDR read/write requests. This patch add DDR_CAP_AXI_ID_ENHANCED_FILTER quirk, indicating HW supports AXI ID filter which can get bursts and bytes from DDR transaction at the same time. We hope PMU always return bytes in the driver due to it is more meaningful for users. Signed-off-by: Joakim Zhang --- Changelog: V1->V2: * use ddr_perf_is_filtered() helper to simply the code. * improve the commit message. V2->V3: * change definition of DDR_CAP_AXI_ID_FILTER_ENHANCED quirk. * add ddr_perf_is_enhanced_filtered() helper. --- drivers/perf/fsl_imx8_ddr_perf.c | 63 +++++++++++++++++++++----------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index ce7345745b42..2a3966d059e7 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -45,7 +45,8 @@ static DEFINE_IDA(ddr_ida); /* DDR Perf hardware feature */ -#define DDR_CAP_AXI_ID_FILTER 0x1 /* support AXI ID filter */ +#define DDR_CAP_AXI_ID_FILTER 0x1 /* support AXI ID filter */ +#define DDR_CAP_AXI_ID_FILTER_ENHANCED 0x3 /* support enhanced AXI ID filter */ struct fsl_ddr_devtype_data { unsigned int quirks; /* quirks needed for different DDR Perf core */ @@ -178,6 +179,36 @@ static const struct attribute_group *attr_groups[] = { NULL, }; +static bool ddr_perf_is_filtered(struct perf_event *event) +{ + return event->attr.config == 0x41 || event->attr.config == 0x42; +} + +static u32 ddr_perf_filter_val(struct perf_event *event) +{ + return event->attr.config1; +} + +static bool ddr_perf_filters_compatible(struct perf_event *a, + struct perf_event *b) +{ + if (!ddr_perf_is_filtered(a)) + return true; + if (!ddr_perf_is_filtered(b)) + return true; + return ddr_perf_filter_val(a) == ddr_perf_filter_val(b); +} + +static bool ddr_perf_is_enhanced_filtered(struct perf_event *event) +{ + unsigned int filt; + struct ddr_pmu *pmu = to_ddr_pmu(event->pmu); + + filt = pmu->devtype_data->quirks & DDR_CAP_AXI_ID_FILTER_ENHANCED; + return (filt == DDR_CAP_AXI_ID_FILTER_ENHANCED) && + ddr_perf_is_filtered(event); +} + static u32 ddr_perf_alloc_counter(struct ddr_pmu *pmu, int event) { int i; @@ -209,27 +240,17 @@ static void ddr_perf_free_counter(struct ddr_pmu *pmu, int counter) static u32 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter) { - return readl_relaxed(pmu->base + COUNTER_READ + counter * 4); -} - -static bool ddr_perf_is_filtered(struct perf_event *event) -{ - return event->attr.config == 0x41 || event->attr.config == 0x42; -} + struct perf_event *event = pmu->events[counter]; + void __iomem *base = pmu->base; -static u32 ddr_perf_filter_val(struct perf_event *event) -{ - return event->attr.config1; -} - -static bool ddr_perf_filters_compatible(struct perf_event *a, - struct perf_event *b) -{ - if (!ddr_perf_is_filtered(a)) - return true; - if (!ddr_perf_is_filtered(b)) - return true; - return ddr_perf_filter_val(a) == ddr_perf_filter_val(b); + /* + * return bytes instead of bursts from ddr transaction for + * axid-read and axid-write event if PMU core supports enhanced + * filter. + */ + base += ddr_perf_is_enhanced_filtered(event) ? COUNTER_DPCR1 : + COUNTER_READ; + return readl_relaxed(base + counter * 4); } static int ddr_perf_event_init(struct perf_event *event) From patchwork Fri Nov 1 08:36:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 11222613 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 503AF913 for ; Fri, 1 Nov 2019 08:36:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C4962080F for ; Fri, 1 Nov 2019 08:36:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="etam1act"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Od7VwqHS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C4962080F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=a563sGw0ViFBwB/cckuzfJgqt75nzV/+xDf3D7t4zGI=; b=etam1actB/UZyO ssMFs/DeJQY/CYG5WndH0KyeuQfaH7Wj+BEmUT3uKxmCjcADwS4Wb0ykP2ma9QzwgEjbHz8qEfXjb q28/TpsrBD/DrdjFYVtnrVzFji9qBy7NV2UKRUxqfB1JnYWxMaREs82DLZakHCyfw6Ksurk9CJXNs WWgwMxrxjvTKIMOsmJk0MrCCgrAQxjDvJCcK2tXeUMVAFercbRx3+kZgcn3WxqpTmQ1rvZaV/kkXN ZXtu7LkTWFViuQ1wuQU+O8W/VHY7WWGmxSVw+eZh27+AyfyFYsIBW4ew6aj8H5mVnK8s/uAf+7HAP 6FjYJxpBrLN5fUKVk9Ow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSQO-0005ov-N5; Fri, 01 Nov 2019 08:36:52 +0000 Received: from mail-eopbgr150051.outbound.protection.outlook.com ([40.107.15.51] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQSPu-0005BG-Rx for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2019 08:36:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GX/iRnvvzvdxzt24V9XjSJjiVQlNGv9smdmCs0CGJnQFPmZldxS4ZWWs637DbqYKmtg8GbtWp2y493iaXQwUhsfjxegs5COpViRJYf4WVxaQLqcxQbPQxIpctrOEcno0998FplajmVhRq6ihUnieW6xgJUvZ1Qj2vDvVVZULken3dkgmdPFq6lOE6ug4Rp/omhcVI/d1qLoY63bJd+v5pumZdOs3jmLSdSC6J0WZCAAfhsyj0G2X8dPnXUXqyQyL+02onf9Kdi7uv/7DWm+kgLcHKz0ezzqv+JvEpyImsNv7TeFDDwnNUfak+bfplsBeloBIkDQiQqWmef6tIvl0vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vAyeJN92LNQcn29C6mRPqr3YXPFZ5VzJXqMKDAfDTP8=; b=nBZOu6T70yQuFVNZUOi3wHCRkdh6KqcOJh0cw21oKFD5u+Fyq0gJr6EJ+i3XAlXN2y20oBeVy3EOxiB4V6ZVi2MmccISnrbLAo1zooMgNR2xcVQyAwSOKJUEUbQlByoXl02O/jqGrWAKb+3WXowONAyoWCWjhxRKiwAB4NU8+++sKFNmwpXExWIO6NXez0LoSV86SF/VDxZW0wMWoLP1eamg8vhTMYHtoVL/4jtHiEdc1yqVzmzrLvJEzqZ7Sd9orIibQB932rxuz4iGcPMIqMWoJaP+UQJTVmmgpT5yHLsRiFxEaZ5PdgnpIgU/TkTjMKzq2W4y/J8W3fsoIf+xEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vAyeJN92LNQcn29C6mRPqr3YXPFZ5VzJXqMKDAfDTP8=; b=Od7VwqHSwPddkwmu+rsJWlmlWbnk9hNce09UkqzG8knSNsgKCzt+2PPHqyCpkgbfmwOkeajmaQV6ZM+AI4tVy5niEJ6z3cvYGKfCG3mYlkuuWKWn1u5TkL36kwUxqB9M1LoMrJkEpn92I2kgxugzKDwiSwvylFhUtu721xL0wyE= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.139.151) by DB7PR04MB5948.eurprd04.prod.outlook.com (20.178.106.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.24; Fri, 1 Nov 2019 08:36:20 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::79f1:61a7:4076:8679%3]) with mapi id 15.20.2367.031; Fri, 1 Nov 2019 08:36:20 +0000 From: Joakim Zhang To: "will@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" Subject: [PATCH V3 4/4] perf/imx_ddr: Add driver for DDR PMU in i.MX8MPlus Thread-Topic: [PATCH V3 4/4] perf/imx_ddr: Add driver for DDR PMU in i.MX8MPlus Thread-Index: AQHVkI9vv4SK7CRzBUGqIx/n4cRLXQ== Date: Fri, 1 Nov 2019 08:36:20 +0000 Message-ID: <20191101083317.29510-4-qiangqing.zhang@nxp.com> References: <20191101083317.29510-1-qiangqing.zhang@nxp.com> In-Reply-To: <20191101083317.29510-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR04CA0156.apcprd04.prod.outlook.com (2603:1096:4::18) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:38::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2a9d8d78-8c04-405d-8195-08d75ea691e1 x-ms-traffictypediagnostic: DB7PR04MB5948:|DB7PR04MB5948: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-forefront-prvs: 020877E0CB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(54534003)(478600001)(2201001)(66946007)(26005)(11346002)(4326008)(3846002)(25786009)(186003)(5660300002)(486006)(2616005)(476003)(7736002)(4744005)(54906003)(110136005)(86362001)(2906002)(256004)(6512007)(71190400001)(2501003)(8676002)(66446008)(52116002)(81166006)(66556008)(8936002)(316002)(446003)(36756003)(6436002)(305945005)(50226002)(66476007)(64756008)(6486002)(14454004)(1076003)(76176011)(102836004)(99286004)(386003)(66066001)(71200400001)(6506007)(6116002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB5948; H:DB7PR04MB4618.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: BCL:0; x-microsoft-antispam-message-info: VVvJbTB+S4CSmlHf/26fB4S3R1HDFgJVoTpRrh09iX8602NfYuL4HlhkSB8hZkw8QjIQT4hqVK5dHPXMxkQfuav2P1uABXTorgMec1YGJwNQXf2nhi0sWsHiUClNYUe6jBc0dzfX9NmXwbXgtQLN080a+qxQ6yLluWjnvupuQBhRXY9pJoUy4NtJfQCpNemuUThw7XuJEzwbV2EBNIEV8cIYwhGFneN79jJgNmF+uD/hlT17NtcT74enHQkA/yQDlFoJI2Q1lrIM8/D5IIzLS6tzsQKFO9qiQL/8rg+gtmrIdlaqWMOSyXUrCuhtrW3oRCd3fg0gnty6sjl8VFeOhs/Apq+6Sbp97cNgj7Vvbycg5XGZcSxZulWTkl5upaACnXA2CeV8p04sBE9PnpPzjQIfpbvF/LNjGAxO6hVezvF7ewaV9FMVy/9SRBVdkujp MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a9d8d78-8c04-405d-8195-08d75ea691e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2019 08:36:20.5389 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EwVeR1mP/v6jlx875Mk9aU4Fvhhg9ntK34wYx0CcRvbQnv/7ymkHEdROFyakLy02xDsfDiesSF3qX23qfvxHNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5948 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191101_013622_914160_31822FB3 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.15.51 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , Joakim Zhang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add driver for DDR PMU in i.MX8MPlus. Signed-off-by: Joakim Zhang --- ChangeLog: V1->V2: * new add in V2. V2->V3: * change quirk select for imx8mp. --- drivers/perf/fsl_imx8_ddr_perf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 2a3966d059e7..3bbf806209a6 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -58,9 +58,14 @@ static const struct fsl_ddr_devtype_data imx8m_devtype_data = { .quirks = DDR_CAP_AXI_ID_FILTER, }; +static const struct fsl_ddr_devtype_data imx8mp_devtype_data = { + .quirks = DDR_CAP_AXI_ID_FILTER_ENHANCED, +}; + static const struct of_device_id imx_ddr_pmu_dt_ids[] = { { .compatible = "fsl,imx8-ddr-pmu", .data = &imx8_devtype_data}, { .compatible = "fsl,imx8m-ddr-pmu", .data = &imx8m_devtype_data}, + { .compatible = "fsl,imx8mp-ddr-pmu", .data = &imx8mp_devtype_data}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_ddr_pmu_dt_ids);