From patchwork Mon Nov 20 09:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13460988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 098D9C197A0 for ; Mon, 20 Nov 2023 09:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=38kIjg2C17MLGzifhzljwqlbLMZGFRvx7AwEZJmxJUk=; b=khWQnvM1EDZLxy i7/yzpYYpk46glTRQxmWdDZ9aODSC02TtP0t32duDH5cHjeDjYruyHsGz7yDOfnkQ757r5BznNLaq BBYX1b0QiRlXI5tLlZH7AH5KX8Tj9c+3fJmwQQfdIOqVIwVCvVKcPwpBtLqKIUKrxZhxjtTFdJBYY k+zwnDz/Q8iqcs/+F59AV+MAwOpC/6I5Q+Jo1qSl+fkHN2ak0zXV43JikIIVLhUO9eZfQM+9H1l5/ PIQg0VRpXsTkMN6fnrSteIl9V+lFARMDExUYg+STxrKCkcEVRxuoko3rGeTh/oJ7Q77aFQnYWHniA GIJP+JKMdSNfI351uULA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zg-00BeFz-25; Mon, 20 Nov 2023 09:28:12 +0000 Received: from mail-am6eur05on20619.outbound.protection.outlook.com ([2a01:111:f400:7e1b::619] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r50ZY-00BeCF-2G for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 09:28:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kDJ9Shelnq2ineeN5J0NfvVdU9sl59cq4nvpCNGegFNm5RqEBtiC22OfUYvm4kEIvtUDgydZrI0TAfnyCRG+FrHzqNO0KvSGEfEnEMCQdTUCkImb0cLLj4mLWKbpDSErXo4C5eB9bzbEESvp8NXRFfS9Agjr3fBZp5b9IGTe3uz0EdnRvc3ke84RxF90IcDVGubPsByGv2JIupnKKceY1MIeAXp/txZzxwRmOkfrsWuJLrtCeiAerg/WWxDqf3pbn8V+4U5NkTcKqEflxC2qsC6wY9SquUTIj7F3O2FecAp4Vd0XxH0ueDu752L073YWBTbYYeJJN8TEQD2jpQfyew== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=a6VwUUaL91crPIwCDg8onHKyp0UjCE6mjgyDzA07xu8=; b=CJbc5R1qJvcGBj3vHrL4RiAPGdK3FQrt2lPNnug1ZzQCRu8e8Iij71m7+sf3qjf0A13KzWzeqczULWwsIPoOGIo69QWYSxBzmS/7a6Os8ifDAa2HNRHcsaSYKySws9nCL1lFDtnZ2xIgBJIA8941t0sk8OWCeDSgaR9ksZFITH+POSzc8kCjtmWtegdjyYNKDz0EEKPdwuptjo35WWy/VdOcuAKEDSTxMWKr2llnKhTaMCIyEEf/hjxF0Wh9wCc6AD22KmxIZAhmJtjYKMvFHqmN5Gfv4nKPfx8qBX2wb7x3AhuA8y0LCXGuyJeyL4rmQN79v11iRBRp30IZgNpsgQ== 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=a6VwUUaL91crPIwCDg8onHKyp0UjCE6mjgyDzA07xu8=; b=UDh0CHt2GMkrCWpEXX5pLRllckZFyQfIaWicEyAKtZXK3LDmuI2fFru2eXFFsC+0xiQNn+C+wM5LHNj0NureXrbzHrCKg/NYo1mqUEbKz7yBXPgeQuE4CPmv17pr4omlDR/uSoQ0EKvoNTPYrr2+zAXI1oqRQj4sH78Zmvc8NWw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by VI1PR04MB6880.eurprd04.prod.outlook.com (2603:10a6:803:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 09:27:56 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7025.014; Mon, 20 Nov 2023 09:27:56 +0000 From: Xu Yang To: frank.li@nxp.com, corbet@lwn.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: festevam@gmail.com, conor+dt@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com Subject: [PATCH v3 1/5] perf: fsl_imx8_ddr: Add AXI ID PORT CHANNEL filter support Date: Mon, 20 Nov 2023 17:33:13 +0800 Message-Id: <20231120093317.2652866-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|VI1PR04MB6880:EE_ X-MS-Office365-Filtering-Correlation-Id: d0f27763-74d5-4635-e43f-08dbe9aafaaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tl5eVVYDbGU5AlKA+BDZXvGPy5JbRwE4TlYNUfsiQi0MkjCFnO3as7PDt0BiUv3ovGo0FPBwds79C97YG+/HNqBHJUR+G0v7QzmkgRqVNIGwvWlW520VelbSF2mwk3UD5igSqbokiPdBFQq5L9BKhp3SC0rWqR/PuV8E9WEXaJHWbmavnfn68X+/A9PvRuJAjYXwUJHnEJfc5XrLcjGzjXQaffNLWctVwNJHZMuJRku6RBUEXMSnWlZTh4WQ5y4oGHFnS44R+3gXDeUAW/SWWLwNkUz/edJ4OHFR0dTUf3BPhzD5szuK7C2vlVCM/cOrSsXknZEsNrwccwOgpme/09/bONJm6WIB+5bYfS85ESA8iBa+6pf2zcW0hKKF1sd46ySVfep6v+2ajckTkm0JmTKWZPreCJtSRzlEMGi2OOfWbvvxjKrZdoJHbMTmwnu2WlndQrxiBbtrIlRUAc2jD65MDEtI1IgFY1AJDWwTSBzlvG5rRjSI7dcH7TNlDzPOExDq0UYorYlcOBuHrsLFdVMX8ZMH7LIYV8fxV/acg9q+5C7MsDFz9JL2jXYcBbEqdjd/40aP2paY0HVNG+zlzH5Kfv/rI+jejXFQxCcMabRwDEMMAAf3LBFvyIDnQ1Qx X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(136003)(346002)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(478600001)(6512007)(6486002)(2616005)(1076003)(52116002)(6666004)(6506007)(26005)(66946007)(66556008)(66476007)(316002)(86362001)(2906002)(41300700001)(5660300002)(7416002)(38350700005)(38100700002)(8676002)(4326008)(8936002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0ch9AzUSGH3m/1IPI7K17Akvka16zEg0ZHiqb7GbIiMwYaeOATXOSpiWy4alwTJkEbUu5VapsrECFkUB33iWksSvYi7yv4xmIFjSKrU1xdjRsDRMi3kDnR7bkdiV0f26GsrHq8np4Xr3Md2hlLpqNT148Et3cQwpRb0yAMeYu0UowgjSisVKS16Vwzhqo92sviwLPvFCgb7HIpRavNOgaMfRkOdGGLSTv+mmr8fMHZvSkusaTLwPy3l1XuvvQdC3v1JyBfSkw5mt+sIrnsj8uVpKvJvZJ3TTc15kVFN96+ywBQUjshFWRtPR1aGC8bc+bawXiGrXd+0WChBymIsk4CP8Ai/H6K0+KO1y31Y+hTjDOf8b1R7v78QEke88rK10j2koz4qrq3x2MI25y0KXkJoZbeEbSecPaB69w+h0GQfFY7OlGgRMM0Jpf3Z8og1o5s3z9k1FTrC8ANlIrCB+AXG7h45E0Hh4/BFyrlpR02x3Aj3S2G0DMkaYpzepFmSCnCq6UkZTWmK7U5SxeF4KBVtMFo16frKZjORt2wdm4vBnfIocsyTPRg5wzBYLVamyhZnzniOJGazHUjueuZakXiNpKuculQLk2N0biTWr5P7VhuvasqAXnGOxk4wilqdUeQCedC8ySq4QSfddLx6YGd7J7IjjsClxr6QOod2TH8Eh9pvkMfx6mflX3+4TaEW2brkGybSCkcwCc9Ahcc2Pt2mvR63vwjan7iAzjJkPlG1F8kuWksfLM+L/DRKM1gtqZZpRCOYNWuc4/IVwxDzpj7IHW+xGBG2fz2jwWUHfPNdzsF7DO9pdpeZR61JNVwZTGoERM7JfqQ4rkxfYBBFliCa0s4h4TSmrEvhvXJ1prFwvg6RJQpD8WW/PSQcRxPO6K61cnC5DV2rhZ0ibDPckKL/MhP4sByRpw9foFhNMVR0eiyAy4EmlKg50xF0Nask7CaUzIBsQxWPlADrKa6fryRJ6EKr3TgDsnYq/roacQQBNK+3tFNphVq2X1TtyDnJyJkd2ITSN3I6npxlC+ZoOab3iJX0hNZzJGdqgWrUFHfnuENnVeMYOL4CSNDxprMIWIVXyf9sBIz88j5UtDXthyeK+CTIZwm5ZnKchlKukj1CL72kK+jfH5VrrAnuV6Sf27mM+0LYdJis5LbMp1hz8VFIvG37GSs/Gh9QQNI4lH/EcbpML5agQ347P4sFkmVI/gBVpYu0BwbVvHPjo5S+TB9rgUIJ08ibdda3waRtmM4di8OiKCl0xV6oQrroj931b5WF72VyUC6lHRuM3py50QiN1olQ2BW12aHxnIvgiD7J/4Ybmj1ZBoq0tErQgPoI0feJdiWp+w7So0rudMiTPvd7U1fOA/dOonc2131Jc739yfaMpqhO/QEGIn8MpkKs00/XTsYlx9S0LkmA9KECULGj0t9d/zgNzRJ4umr+IQ3Tsb+ZdHeKMPg0GJQDlcVuw5PE0e1TFoLUN+TJ9YFmkjl6ZSA4YDGRYATRwaONMyrT5X8PZ7mlHWqrKDE4XPFG1LtRLNQxSw9cRWO2yDpHWRnGXhfw+d51GMse/Gh2fq/p/ERv1N7vW8fxae/JeAAcc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0f27763-74d5-4635-e43f-08dbe9aafaaa X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 09:27:56.5318 (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: P0WzgPmsvrPiDw2oA0ku88R7j0YT+lD4tuQlszpF+ejaemWUAZN5ovGEDDvJpd4rwX3wlmmNWP4QNZZSCl9Qyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_012804_761775_FBEC15A2 X-CRM114-Status: GOOD ( 16.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is the extension of AXI ID filter. Filter is defined with 2 configuration registers per counter 1-3 (counter 0 is not used for filtering and lacks these registers). * Counter N MASK COMP register - AXI_ID and AXI_MASKING. * Counter N MUX CNTL register - AXI CHANNEL and AXI PORT. -- 0: address channel -- 1: data channel This filter is exposed to userspace as an additional (channel, port) pair. The definition of axi_channel is inverted in userspace, and it will be reverted in driver automatically. AXI filter of Perf Monitor in DDR Subsystem, only a single port0 exist, so axi_port is reserved which should be 0. e.g. perf stat -a -e imx8_ddr0/axid-read,axi_mask=0xMMMM,axi_id=0xDDDD,axi_channel=0xH/ cmd perf stat -a -e imx8_ddr0/axid-write,axi_mask=0xMMMM,axi_id=0xDDDD,axi_channel=0xH/ cmd Signed-off-by: Xu Yang Reviewed-by: Frank Li --- Changes since v2: - no changes Changes since v3: - add Reviewed-by tag --- drivers/perf/fsl_imx8_ddr_perf.c | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 92611c98120f..d0eae2d7e64b 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -19,6 +19,8 @@ #define COUNTER_READ 0x20 #define COUNTER_DPCR1 0x30 +#define COUNTER_MUX_CNTL 0x50 +#define COUNTER_MASK_COMP 0x54 #define CNTL_OVER 0x1 #define CNTL_CLEAR 0x2 @@ -32,6 +34,13 @@ #define CNTL_CSV_SHIFT 24 #define CNTL_CSV_MASK (0xFFU << CNTL_CSV_SHIFT) +#define READ_PORT_SHIFT 0 +#define READ_PORT_MASK (0x7 << READ_PORT_SHIFT) +#define READ_CHANNEL_REVERT 0x00000008 /* bit 3 for read channel select */ +#define WRITE_PORT_SHIFT 8 +#define WRITE_PORT_MASK (0x7 << WRITE_PORT_SHIFT) +#define WRITE_CHANNEL_REVERT 0x00000800 /* bit 11 for write channel select */ + #define EVENT_CYCLES_ID 0 #define EVENT_CYCLES_COUNTER 0 #define NUM_COUNTERS 4 @@ -50,6 +59,7 @@ 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_ENHANCED 0x3 /* support enhanced AXI ID filter */ +#define DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER 0x4 /* support AXI ID PORT CHANNEL filter */ struct fsl_ddr_devtype_data { unsigned int quirks; /* quirks needed for different DDR Perf core */ @@ -144,6 +154,7 @@ static const struct attribute_group ddr_perf_identifier_attr_group = { enum ddr_perf_filter_capabilities { PERF_CAP_AXI_ID_FILTER = 0, PERF_CAP_AXI_ID_FILTER_ENHANCED, + PERF_CAP_AXI_ID_PORT_CHANNEL_FILTER, PERF_CAP_AXI_ID_FEAT_MAX, }; @@ -157,6 +168,8 @@ static u32 ddr_perf_filter_cap_get(struct ddr_pmu *pmu, int cap) case PERF_CAP_AXI_ID_FILTER_ENHANCED: quirks &= DDR_CAP_AXI_ID_FILTER_ENHANCED; return quirks == DDR_CAP_AXI_ID_FILTER_ENHANCED; + case PERF_CAP_AXI_ID_PORT_CHANNEL_FILTER: + return !!(quirks & DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER); default: WARN(1, "unknown filter cap %d\n", cap); } @@ -187,6 +200,7 @@ static ssize_t ddr_perf_filter_cap_show(struct device *dev, static struct attribute *ddr_perf_filter_cap_attr[] = { PERF_FILTER_EXT_ATTR_ENTRY(filter, PERF_CAP_AXI_ID_FILTER), PERF_FILTER_EXT_ATTR_ENTRY(enhanced_filter, PERF_CAP_AXI_ID_FILTER_ENHANCED), + PERF_FILTER_EXT_ATTR_ENTRY(super_filter, PERF_CAP_AXI_ID_PORT_CHANNEL_FILTER), NULL, }; @@ -272,11 +286,15 @@ static const struct attribute_group ddr_perf_events_attr_group = { PMU_FORMAT_ATTR(event, "config:0-7"); PMU_FORMAT_ATTR(axi_id, "config1:0-15"); PMU_FORMAT_ATTR(axi_mask, "config1:16-31"); +PMU_FORMAT_ATTR(axi_port, "config2:0-2"); +PMU_FORMAT_ATTR(axi_channel, "config2:3-3"); static struct attribute *ddr_perf_format_attrs[] = { &format_attr_event.attr, &format_attr_axi_id.attr, &format_attr_axi_mask.attr, + &format_attr_axi_port.attr, + &format_attr_axi_channel.attr, NULL, }; @@ -530,6 +548,7 @@ static int ddr_perf_event_add(struct perf_event *event, int flags) int counter; int cfg = event->attr.config; int cfg1 = event->attr.config1; + int cfg2 = event->attr.config2; if (pmu->devtype_data->quirks & DDR_CAP_AXI_ID_FILTER) { int i; @@ -553,6 +572,26 @@ static int ddr_perf_event_add(struct perf_event *event, int flags) return -EOPNOTSUPP; } + if (pmu->devtype_data->quirks & DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER) { + if (ddr_perf_is_filtered(event)) { + /* revert axi id masking(axi_mask) value */ + cfg1 ^= AXI_MASKING_REVERT; + writel(cfg1, pmu->base + COUNTER_MASK_COMP + ((counter - 1) << 4)); + + if (cfg == 0x41) { + /* revert axi read channel(axi_channel) value */ + cfg2 ^= READ_CHANNEL_REVERT; + cfg2 |= FIELD_PREP(READ_PORT_MASK, cfg2); + } else { + /* revert axi write channel(axi_channel) value */ + cfg2 ^= WRITE_CHANNEL_REVERT; + cfg2 |= FIELD_PREP(WRITE_PORT_MASK, cfg2); + } + + writel(cfg2, pmu->base + COUNTER_MUX_CNTL + ((counter - 1) << 4)); + } + } + pmu->events[counter] = event; hwc->idx = counter; From patchwork Mon Nov 20 09:33:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13460990 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9159CC54E76 for ; Mon, 20 Nov 2023 09:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lXhCMgjpoXi74MajVw0rbnxxIQaQxeQN76Qui4rhnT4=; b=aO9+7RXyocIrwG wpyJ4mq2tHrgeD1PRCUc/xcTW+ycA6YWNyKvPEYVmcbGB6S1nA36HyjTPWzOYDHynscL4ulwuQzjn 2ZgVMmG56uO0DTwoIGHnhoprR9B4oQi39nYwlITbsOKOwI+iHohkEjE3rvmTui9a1tzrDpxIvXZxj EfsD5GCE38w6E1ZRps4YRsjdfvbx6StD8xZJpWYnGunkx4TGUeT34C0GllmdDXLLlQvlnE5N2yVOK bGtWN+ah3LWXvJqINL0p5pLmOE4nx2Cj/BqXPSGfxrIPQcBF1EEm2i1eq2fVNVrh1X5LnuKQzow8c 9SnQw7OyZPqEpF1j1fKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zo-00BeJk-2s; Mon, 20 Nov 2023 09:28:21 +0000 Received: from mail-am6eur05on20619.outbound.protection.outlook.com ([2a01:111:f400:7e1b::619] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zf-00BeCF-0d for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 09:28:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aZBZ1or5fnolwa9h1/8soIQZgFJjaY70QVDbE0Vf31FFG/SCZd91CHFbOas/aO7v/J4MSx+/RkDWNfivfg6nx8NaSLhh9cw+C7y2LS8BmcsfkcdUK/i/YQd9T1l53bDbEqOvJS054xhOGBlka6vMchcB8C0v7OKofHuoZAxPjHtLf1OQ0endsOpd9akrvHxIumBNR0NY5p5b1Uru2Ae4NvDvUX0fHBbhGl2INrq+YwUmHBI1iHq8DC6f9QNIS2q7K4BHHcbRGoFWryDth24ki0NA480lI9aazrdEiMAMcwhazs4/0qXv04k/HbVCHqv8Pm0hcvNxt7EU0OMrUDdf8Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Fhd5cza3SB7hFnwUJRgO4IurqBf+Mlp5edS7WbHKRN0=; b=BBYU4pf7Tz0OLKMfSLd4x8x0jmYLB+7MZ0AiddWJahzijXITgifUGYKkoJ4+S58zG660/TEmq1GBYqpr6Etm7NVJc/kAyX4Ozhk/Duw65YdoQ81/p78TvzMY0faXDgNLX1dteZSOybZhApeqrcRwtTqb0HbwrBZjEI6Fe+ILGc02ctEclai4KN5tg7FHxpmXefPwIEhs4j5PNlWkpcMxkCleGTDyqNFAzh2I5uXhmepvH2w4eWxwC9wu1QYShkXgai6oXkTN/lluJXNNKXtl5Gz/5ryq/Vq0k3CplkgEyTRiOH2nJY4wVGCMXnXJfSvscFL8XBK+zTWbAiF7oMx6Yw== 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=Fhd5cza3SB7hFnwUJRgO4IurqBf+Mlp5edS7WbHKRN0=; b=Kcy2zQpaNWCcVWDR/jupYr8l6z40SoWhPDxdgL8Z7qNE7niUW8oIPq81UTUq+G35v5PK/Lrb88BIxoHPYcQ8dzF5OzAMOh0J5PisXzogBs2wAP50ewTSKwxAk6RqHwIFvGrYrQmElnBDejd9MXF8EwhCcxYocfmTukrLYmcMsmg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by VI1PR04MB6880.eurprd04.prod.outlook.com (2603:10a6:803:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 09:28:01 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7025.014; Mon, 20 Nov 2023 09:28:01 +0000 From: Xu Yang To: frank.li@nxp.com, corbet@lwn.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: festevam@gmail.com, conor+dt@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com Subject: [PATCH v3 2/5] docs/perf: Add explanation for DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER quirk Date: Mon, 20 Nov 2023 17:33:14 +0800 Message-Id: <20231120093317.2652866-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120093317.2652866-1-xu.yang_2@nxp.com> References: <20231120093317.2652866-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|VI1PR04MB6880:EE_ X-MS-Office365-Filtering-Correlation-Id: 83d26cb8-f588-4fb3-22af-08dbe9aafdb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E9MNUpN1YxjBHMxKzRmsunUA+1m9bqUJre1mM2AY5udYm0DsW4F6gfe3uPRC1FsVPkg6Z1BqecOYeYHQipwa7jXi5XzksLzg/j9HFYOzXPdUOU0ceUnGW/IJYXruJQFjrXPT9J+Gr+Mo0xtSUbt9gtJ9x+foQzriOj6qJD3oN0ilsLekaQo99pfhfnmCheldV0UjSkkpbqD3uZ/3wgbdkdnawtaSPEJOhznHExf+9szNKV0kbcv1y4IKxQ9DjsAakTpuLkIs/eLBYALRBHdN/l9J4t+MEnQChlA4et/Gr1zlgcxz8KS1VwPST3rlaK27W0SK05xV+iGEwPqkmZxwa9J7LUU/CaAOrOc1C4VHRet3XxohoPwC2jrIfM6QlGWYQ4N5K63pGR5UVzCcAM+Rx7dlu1M7waUj6Op3JgvvU2xDpPGxXAcrkY4v6uxuHlpifHVNnp0EQQ41NWMxyBiPrU15krvXRv5PVBOiRCCaQbtN1Z3XldpQAvWAr1ETcIQMv/akBEPcbGmG79GSzMUTv0et7U9WHqMClOfbFTSOXsUmve7BCyeM6VSlWDGIe9gp71LXzKvwtxZVmI2nnSheU0bxp3z192CBKxgQz6eOoLmTPRbM1AvjScFXVGnaTg4l X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(136003)(346002)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(478600001)(6512007)(83380400001)(6486002)(2616005)(1076003)(52116002)(6666004)(6506007)(26005)(66946007)(66556008)(66476007)(316002)(86362001)(2906002)(41300700001)(5660300002)(7416002)(38350700005)(38100700002)(8676002)(4326008)(8936002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NzBEQH83+MfAlg+Af0ytFyQYVBpBEimPqQlL9YpbGlbj1s13gfKGNphzFXtowbN+dIwe8v3Z6l/nOlfh4o6/SrZ0FuBbtHW/C4KmoVm0T2tU9uU35/arVIE66MkPe7YlgZf+qNeK/PAxMW4Lvmm896QzZPKyp/my0FNoGrGHR4/dcOXbn+i/q3raSR+Ol0zzfzGE2pe69uzYg5/rCdWNL7y0ciqTd0oe854qsxAWdcHQfgJhBAeC1OGkUIkRtu9pK8WDnAsS9zEyq4u43aTM2OXwG71drDrBjbQlGUFOnzbHinnlXeg+BtrAaOchGxosHXE9oJ6U47s52fy3qpsBaYv17eh1A/8gr7ByE6EOgebIfy82yFEyKweMLYNjNH+sCMDrb0J4rJvN56NDgVJstHOQOCvDLstmZqosl7vVad6y3jrEbRqT75BHozlugW2zMlXxwViMoBUCbUlC1cLFEtuniNSSfIo6GsO962O8iBqQAbgeGzDD9Bjdj3BNHPb+6YII1HH+UWfZ4uCGMWLORzi15QFngvFf5oMgE62Nm29Z6stpeO+rYbCwZNoftIAapAGDsCaWbEd3ZL0APVqWhqeGL7ryN4O3lodOViSS4+Xx7LA0XjDw0Gpn+7+nfmQczy3H6Jb5D7dqQ31wZG7Krb7EFvYMg9iXEAivb++C6EFWnCMthvqNV9kgr7N1XEj19z+FsB+/pTux13m1lN+yrGP+TvzM9PrmqJw1GqCZM3WoeghbNvk0rvVpaKUgqia5mKWVJdLFdv1v9mn5OqvaUv6E0xRx/ITcuEQ0hvhd7XNDePWdRjtopOgdXeY0ilaaT1jiClOgSWgTV9Q7tS5fqAooNHkvaNIPbnxEqhmRVPypv1pgfOicmrigSNZFYt9kPvXnXeQF48VVWDvP9nAfXn/BRFdcR5qmul2HK2bDqrVZ9oElld6ahNLU0AndtQOQKIFlHj8/xKcqv4qjnXj12O4OMd6MR8sy1jW4UsdGgHRg+PD3jqhZ2TqUwiq/YA1QWlIliL4W2r8jjSSMQ7Q2o6xwKDeFBJp9lWWo+2h4oQzjX/+dO/q6csqtWlpJOXepIkQ52q9ECQQQEVVOqk0P2RLOv1QWOMVR3JPdQi8itN4gmjGaqwpZGeXVhnLxZLIdhLifMVdXI8U+liQECw7picCAJKq+LRfxpztVaMLIMP93y5Thz3koll3gYRhPuTKlhugPGHM/8taF59U4wbNJX3WR5KOcOvcLaLVoBp+/gZfbuu0LduPtKEb4ACFpY0pIB0dTDbe5X15nnIM7e8HFMj/pCCrtzG2omjeTrGfkMiPvxzGDAvKfroitySLZZqDzIOJBXh6tsCktzEuOjIPuW9m7IbCzq860lYj6k2qLDwKlvgX+9QMiwVls1sEKqH41JAM6yR9pPdu8GkFBH5vGGs70tuuLN7x7kzT5WYGzQmk9jrzPmmA08GkWZ2DNmwNi/jdPIAoNlOXB5SZBO9HCq1yQb15KKsG3RtUsUJeIjKpJK3lGkdNIJB1JDj2tNCugSDdP4O0uqDY560nCD9a8eS4AAwcpAcKK47PFAsyM9J/KvCXicMlU1hTNvsnYv2bZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83d26cb8-f588-4fb3-22af-08dbe9aafdb4 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 09:28:01.4959 (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: mfXKKtUZC5HLw1C9Gm0pyFasdoo4qsYVJpMIkEYpcw+oZTW5gjaONFI05jVxzf/fgU7dN1UdClygHiAzfmoaQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_012811_333206_204967DF X-CRM114-Status: GOOD ( 18.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add explanation for DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER quirk. Signed-off-by: Xu Yang --- Changes since v2: - no changes --- Documentation/admin-guide/perf/imx-ddr.rst | 45 ++++++++++++++++++---- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/Documentation/admin-guide/perf/imx-ddr.rst b/Documentation/admin-guide/perf/imx-ddr.rst index 90926d0fb8ec..77418ae5a290 100644 --- a/Documentation/admin-guide/perf/imx-ddr.rst +++ b/Documentation/admin-guide/perf/imx-ddr.rst @@ -13,8 +13,8 @@ is one register for each counter. Counter 0 is special in that it always counts interrupt is raised. If any other counter overflows, it continues counting, and no interrupt is raised. -The "format" directory describes format of the config (event ID) and config1 -(AXI filtering) fields of the perf_event_attr structure, see /sys/bus/event_source/ +The "format" directory describes format of the config (event ID) and config1/2 +(AXI filter setting) fields of the perf_event_attr structure, see /sys/bus/event_source/ devices/imx8_ddr0/format/. The "events" directory describes the events types hardware supported that can be used with perf tool, see /sys/bus/event_source/ devices/imx8_ddr0/events/. The "caps" directory describes filter features implemented @@ -28,12 +28,11 @@ in DDR PMU, see /sys/bus/events_source/devices/imx8_ddr0/caps/. AXI filtering is only used by CSV modes 0x41 (axid-read) and 0x42 (axid-write) to count reading or writing matches filter setting. Filter setting is various from different DRAM controller implementations, which is distinguished by quirks -in the driver. You also can dump info from userspace, filter in "caps" directory -indicates whether PMU supports AXI ID filter or not; enhanced_filter indicates -whether PMU supports enhanced AXI ID filter or not. Value 0 for un-supported, and -value 1 for supported. +in the driver. You also can dump info from userspace, "caps" directory show the +type of AXI filter (filter, enhanced_filter and super_filter). Value 0 for +un-supported, and value 1 for supported. -* With DDR_CAP_AXI_ID_FILTER quirk(filter: 1, enhanced_filter: 0). +* With DDR_CAP_AXI_ID_FILTER quirk(filter: 1, enhanced_filter: 0, super_filter: 0). Filter is defined with two configuration parts: --AXI_ID defines AxID matching value. --AXI_MASKING defines which bits of AxID are meaningful for the matching. @@ -65,7 +64,37 @@ value 1 for supported. 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(filter: 1, enhanced_filter: 1). +* With DDR_CAP_AXI_ID_FILTER_ENHANCED quirk(filter: 1, enhanced_filter: 1, super_filter: 0). This is an extension to the DDR_CAP_AXI_ID_FILTER quirk which permits counting the number of bytes (as opposed to the number of bursts) from DDR read and write transactions concurrently with another set of data counters. + +* With DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER quirk(filter: 0, enhanced_filter: 0, super_filter: 1). + There is a limitation in previous AXI filter, it cannot filter different IDs + at the same time as the filter is shared between counters. This quirk is the + extension of AXI ID filter. One improvement is that counter 1-3 has their own + filter, means that it supports concurrently filter various IDs. Another + improvement is that counter 1-3 supports AXI PORT and CHANNEL selection. Support + selecting address channel or data channel. + + Filter is defined with 2 configuration registers per counter 1-3. + --Counter N MASK COMP register - including AXI_ID and AXI_MASKING. + --Counter N MUX CNTL register - including AXI CHANNEL and AXI PORT. + + - 0: address channel + - 1: data channel + + PMU in DDR subsystem, only one single port0 exists, so axi_port is reserved + which should be 0. + + .. code-block:: bash + + perf stat -a -e imx8_ddr0/axid-read,axi_mask=0xMMMM,axi_id=0xDDDD,axi_channel=0xH/ cmd + perf stat -a -e imx8_ddr0/axid-write,axi_mask=0xMMMM,axi_id=0xDDDD,axi_channel=0xH/ cmd + + .. note:: + + axi_channel is inverted in userspace, and it will be reverted in driver + automatically. So that users do not need specify axi_channel if want to + monitor data channel from DDR transactions, since data channel is more + meaningful. From patchwork Mon Nov 20 09:33:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13460989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59B20C54E76 for ; Mon, 20 Nov 2023 09:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2Kl/bME7mvJubACQQxQWDwjYFppcS0rhxzYh5QUioDw=; b=KZmBkxt++a9LXF NsmyMr1aWzTfDjDlwbSOUyVjPqcqTObfdo0iWPdvdVuVjh8AvdVLK/mOWH9ePSvamYHcJ1OfC6bBt yK5E18kUYYUOr/r31ms9FOStc/8uDS4imFtIgyFeYl7RSlKllaFPBlWOOTpNjAcD4IAIIBZOFd6k5 w8ClEzhUMtP4hyGNuwIc1PODsSCMFExZiKgCBNnwHkyMtBOz8FiAYXlDAlYvzSQJWHwm6bMBkjTSz 17HphXJ1a7quSby2EpVR7nhlJHl1GrR3Ve6WZDcdukqw/NCN+eDPZMVDuNxk0Tqxu8TKk4ApQYluW QPlqu+m33IN0EaA/bHxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zp-00BeKI-3D; Mon, 20 Nov 2023 09:28:22 +0000 Received: from mail-am6eur05on20619.outbound.protection.outlook.com ([2a01:111:f400:7e1b::619] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zk-00BeCF-1J for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 09:28:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J8hZo2IaSYRhMU4eKtiVlXpqRRQ/a8J6eBFd7Devmt9PMnwmvWfpayDqryyxriWK+f/lvfvve/6cx9lnxuqSEsTayOmss7xdHVo9to6dLS41/CF7wy+jC07hwineQpZ1XBPC7tHTq4aJKIEUUPd37BpxJ25iT2EdRbEUplf7ZUrJeO8STVRDsQX6fZkF+8Rieo//DTqFH9PerjdDGxxie7IVp76K6GKKCZpOX+MfvK8P6C+PnUEpXU6J/p6birHw5DCXOepzWPupKnAw5EY+1O1CH1Uz3y8drDK3/+ahLEvFtdIjeSY2Y2F0kuzJysro/kE+d5IZDDRSVAqYqN9TkQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KLRXMGx5akvmNDvSE8veCHJpPe80ZAEfmvA3GvqNthA=; b=BAFg/XqSUe38sMetMikca5csWMdXpRkaWCtZ9O99TPVGrSX/56hCp+hsDsqHOCrsRFLXHTn8i79hHAyMhrAs++7mghThQjGq35aicZB9MvThQ+aA++v16lmcfmOMHOsIUavWwCvn5kdo9fJ9fPSkMzFiznImU4Zvt0jnJL+677HGmoJ0JgMXyMgsW8bDyAFDXGVtRLxMVdHvT3YD/8YzvnTZsOlblT247245zqHwk+i22/3F0uU2nqWr+QvPEktPy8LUHmCJGfXNgnxoGO0x/ZpYcCOQHTS6OeYdBnrNEn2YU9DeOneRWEbsKlRUfiQTloHqBb3rMg06FSkfszzKbg== 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=KLRXMGx5akvmNDvSE8veCHJpPe80ZAEfmvA3GvqNthA=; b=Zs80TIwEm2pV3iTiQ14rclqZyvMbL9NydkpdfoSKC1atsrxrp539nyBc0tCvxdv1tT4vKEuJPljDHeWf7QKGeASa2Eq5BVlzFPCk6ZKeWpZThgQSllDwDseafT9MNZMECOqq4y4sO6ed5dCuDkDU0/J6waDL0Uw6oRt8mm7JdT8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by VI1PR04MB6880.eurprd04.prod.outlook.com (2603:10a6:803:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 09:28:06 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7025.014; Mon, 20 Nov 2023 09:28:06 +0000 From: Xu Yang To: frank.li@nxp.com, corbet@lwn.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: festevam@gmail.com, conor+dt@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com Subject: [PATCH v3 3/5] dt-bindings: perf: fsl-imx-ddr: Add i.MX8DXL compatible Date: Mon, 20 Nov 2023 17:33:15 +0800 Message-Id: <20231120093317.2652866-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120093317.2652866-1-xu.yang_2@nxp.com> References: <20231120093317.2652866-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|VI1PR04MB6880:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c829aaf-2af0-470a-2685-08dbe9ab00a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QL+WKbXNVfht8e2Q/dJxcz74vDXnWA/TZWqNqKY3eiQQpumvbfrDuS6xb5vNqQjBNmeS5sm5MuN5B4dgMC8qYyhiM0/ypTXaONmEXomwTO6artdNzFOdYDPT0/UVOfMFq5o7AFofT13+hm18IBFIENXESVB846XGZ34nWFfNpHCjiP9tUz+Sg09UOfBfJvxA3RkUY2TyCqUgnxm28VsyHsE3izUZDCokdg9lMIPzNoy4YFobZ4/KM8rh6Dbqu7+43XmTsWr1kdFu8wuezHojQQolZ/xgVXTI3SWfbwyoAa3rkSym1PRWm4tTGSY/ysHbBKLapBSaW5Jm7ZnglczR41MvsG7T+XM25OgINlVW02xy5CQY0kRW5MlI5sH0gIsm1ijdPGwUED/EKZUi5sBCMjefFPOW1DWim3Muk2uOTPFsi8hBuNkbsDVzMiXTZ32+UMgLSnPcavjKzTZKFQW6P9BJR87zokh7BktVDfTHs6R5gmdGslO135lqeftYkinUd30sQ6rYMVH37cokw1nrGP47ktWi9LMbPBdIhnqRaGd+GdcCFBhERaISSnGrw4SrTmNxdtgd0KOqoaERr+hGHpAiwivkM8UCOTGCooLtBaAS+/qIGsLslgO1aQ1rg1jR X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(136003)(346002)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(478600001)(6512007)(6486002)(2616005)(1076003)(52116002)(6666004)(6506007)(26005)(66946007)(66556008)(66476007)(316002)(86362001)(4744005)(2906002)(41300700001)(5660300002)(7416002)(38350700005)(38100700002)(8676002)(4326008)(8936002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NrIpimrE6mpS/6NSLy6ryFN27NP9+X7WEm4EeRjHu1FkFNWSQSs5PtxrVqEPwJEqYSzLNd7BUMxpNaOTCZ4d+RL8Ujee1Y+o/og8abq18qs+UeKqn9OBiErMchYkn3B7d1P1Lw6dG6qub63YMTmYCKTNOVroFtBfMHnhHiqDXoF7hrc0I5zS15yzSMhUhRmTTwA/x7evzU2XASJ4/bEl2nl9fpoRzRNYc5UXo7yNzvuJkpIh2aWd7sG+GDMVkBAh6EzvC4qSQbSSENRRAfQQ8YoipmsqKhWZYaDrv77dSghDmsLypwx3DzrOgeCzccQQ8w+U7MJk6BD0D5uVC8nQwD2DLEwk0SyNrp5mE8Ac6fZ3BHgG1PCnh0r1bfGDv45zZ+F9sOzDuc3M12cvyZRdusIJCDX20J47liQhlXM30GwUx49D5KlLWfnSCwZSkTObn5bzmsVMeSzJvLBMUqrYuz9UmXVIMHXrmQibBJ0rKjQBZrtJH8pTmuS0ByW9Aheyal4KHIZWjWhPBVHudbGC0YRH2NzGQ734XVqvvm0l3MXi5MrRfrQFDDQZKynmPGDVXLykgTYs44BOKtx+Nfue2UWzxVHUbh7cX6xGTSXQK+Euh7bTGFOVl+U3SOh2AvyEUxrO8N+tW5emR/O8PH2iHfC3PEOj79G0+OY8KzDC3JPLD9igr9Q+0rs8VVmPS1qBlw0RazpnUQZpGIhzoAJceHAjUcp5JRVOVrizbVO6vZ/VUVhl29dBLShZ8XfKDy4jMIEnJb7KPoKRKxKZWiKmq7NfdSihfaPLQbSE4o3A/d6zIHOcfWN19soY0D+4GqjoGyTNwZbVkVniMHhQXgkMGJDQiHK56YF32E/FhGlXTWKwzdjFXLZ+DAvZmr9bfQVvszraO/ypk0OcWYB0NLkgErdjlBVLhbUphmIoDBY9VZjUe4CyfdrpVWonBhmg4qUApd3al55Af8c2zJVOWZ30NF2Vgxv0ewoScLKdqaubDykYi0UJ4LFa9dJV62FHpOPC29j8FrCyxiCgfbozxxxZMnsD67wEOH31QLlv0CtgrjLiICBk678dPI0qvt9RqfL8S15YqMJ68QrtwfZljR1QwI0K5vcUvyglMBLyx73x+EwNDEBWgS7hhQftB9n1L25KCqcsNtRjKwuzmHBH9J5ZaEjP5G4EziLYSH1FUO6laTMV4tMxLg+MbKb28v3KFbx6c1Bkne5TqL6djwjWcV1Z/pycQb9jz+1iGpRh01+CapCUN76m+NRS25W/RDN4FO7xfczl6yKG0Oib8liISpWGc41/zINnTHQtSvsj1s+bJnRwu+EaUr2cv+x+8KIn7zxE8327ExWTxwuxgTtA3j84YsTblefjh8N9AMTVh3fYNYp+kmVQjJEXkA7Ona+5FP2jQ2W6z1npFMlX0eCzKAHaMCeaAFataDTYG+jJKWzBBhf2x0Yh9I1QR9xsPVx7VdrHvP0/TroR0YhXu0JfgmU6h07ymsMZAUAnVExCPW37+un2iFkS5LujF9cEx6svoLqLUVSWNydWx21VVweh5hhdmoCD2afbzzQCUNPjoHSqMM8i4HFPZa3tr1Cv/6Kvm5ef X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c829aaf-2af0-470a-2685-08dbe9ab00a3 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 09:28:06.5480 (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: S43t6+CKZdxQOtYPzPehhJ0GZW+/zcDXI58+WDfyv+tF34leW3Eml1mrat/0B9sD/fZpgJ0uPxMPM28pR89fsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_012816_558517_F7F7C8A9 X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a compatible for i.MX8DXL which is compatile with "fsl,imx8-ddr-pmu". Acked-by: Krzysztof Kozlowski Signed-off-by: Xu Yang --- Changes since v2: - no changes --- Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml index e9fad4b3de68..6c96a4204e5d 100644 --- a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml +++ b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml @@ -27,6 +27,9 @@ properties: - fsl,imx8mq-ddr-pmu - fsl,imx8mp-ddr-pmu - const: fsl,imx8m-ddr-pmu + - items: + - const: fsl,imx8dxl-ddr-pmu + - const: fsl,imx8-ddr-pmu reg: maxItems: 1 From patchwork Mon Nov 20 09:33:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13460991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9FE0C54E76 for ; Mon, 20 Nov 2023 09:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y17KoJ6aFQMMftdiYBrbr5P++S0PtyzO/IlWPXSQc4I=; b=jYjMqdW2hdme7M Pywyldpct6tajyB4SLN2xl5n4yAFZc4JhQMu5BX9W8Am7nbAtVQDRirCLYFh0LqP16R1oJmSqi3FJ K+B0V/x/GaEwh9iU3VOG+P8zamtAA9OncsdalxZazgDl992fnX87ms1Jir0aaLUL/qm5AW3kLg3FI C/QJU4VR5WkDVaf2o9GtJwHwMTrvucosHR7w5H+0w5R4jgku+iEEspruXmf3PS/xJ+kTFyXWgabXC g/Z66vhAOMsmmy1UnZpOSejVkMiJXPKXpur2hQyelIRkZU9fqLuXJc7qpP5tkGjmAt3OGImH/Nk3J st20flqodrLsuAY1534Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r50a1-00BeOb-0o; Mon, 20 Nov 2023 09:28:34 +0000 Received: from mail-am6eur05on20630.outbound.protection.outlook.com ([2a01:111:f400:7e1b::630] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zv-00BeM0-2g for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 09:28:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W2TCpt5stt5XSgSyOLz3pxc65dF6ZZ/Z3wrAoF3/AxDEnF2YsWQEs/YCDDGcWaLkJfe5S0bKpLNcGZ0PP/O/aitg9E6fr6TYuhup0l7IoWMpb+LH9QkfjvfGFF11Fa5iNPjPbU+JeVZmP67ZFWtsdXwxDbnQRHF6DUFEMymmj259KZohMX3u9qIiWe3l9Y0hgl7pWhZwuC5q7bdv2sSMO2iyGR3XleK+5QzDePib5hU6h6fygipnls7w4Xbf+UOOicy16SQ/xl+zHjVM0bbHil6gaVNyOhxaPKYI0ORT+6Ghes4+G+X5GAdX89RDR9RVQOmIYNR80mjHp9jifx5sNA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YZQtnIIf0m98UZG90cDdzUJe/d6g11iqrj+uXH9pzm0=; b=JqN33JKV78O4T4UJ9aSLND7B+WdVLI9Nh6ADI6ofcYxTTAn8g9GnWgBapIJVl7+qJqeaIIC3SHJ3Q2JrFVIYjfy5q5xcqFnuW9VHIgqe87jXiHfD/u3WW2zmO1CUseuHSt9werCQPcfGvycLDKQE3hlu35YudiyC6/2UdFcElWiK4+52lrvtVh3CEA1Xy7UI+z+5Rszi7yZMZL84WynUhARS6xE/3h5rh+S6tDeeac9yAUJtEaSgJcIdX/3qpOTBdXX+q390Gv2Im6RO7zNut1vAKKleAPKg2rX0Rsk+o7IfjZWBjviutMKFCZokzeHrfXj5BNv0vl2B/NEViK6vmA== 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=YZQtnIIf0m98UZG90cDdzUJe/d6g11iqrj+uXH9pzm0=; b=fCtMFGYYZQ3l8M55Wzz+r5XH6FnYcxbkAcvr+rHNRQ/CxlxOG/ZzjER1CVCggUwAqgYtPzthqV962ShP6nwqmE41Uwc8ih1QiAWTo07mP9d+eGiUDOjhF5XmB001TuuioIv+HNiUrIjQ8HbdNuFkF9G/06hnlLRbLYgyXb76jTA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by VI1PR04MB6880.eurprd04.prod.outlook.com (2603:10a6:803:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 09:28:23 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7025.014; Mon, 20 Nov 2023 09:28:23 +0000 From: Xu Yang To: frank.li@nxp.com, corbet@lwn.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: festevam@gmail.com, conor+dt@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com Subject: [PATCH v3 4/5] perf: fsl_imx8_ddr: Add driver support for i.MX8DXL DDR Perf Date: Mon, 20 Nov 2023 17:33:16 +0800 Message-Id: <20231120093317.2652866-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120093317.2652866-1-xu.yang_2@nxp.com> References: <20231120093317.2652866-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|VI1PR04MB6880:EE_ X-MS-Office365-Filtering-Correlation-Id: 41e2aaa3-d247-4588-d7db-08dbe9ab0a78 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aCMY/faeWTAs5UW5CDqaR5eCkvE65QsBuX/ukwtI1oj8lDjVMbEnXdaUx8x0mNScrCCCe+luvTQKYhgmh+v13wjVdbVZvbiXM+bdeiG3LLLy2uQSHwCKz7azEgVFcPaGrJxuVh6di9/s8YQtQByJeMMdi6kASs3YxEUmv9iAC+aLoxihYSrmHk1GOrvNhkrnoTHLpTbm0H3IQG8IstPETnhCYouYapCU0OHw1wuW75k6vg3Lh1gY+0GuhpJ1gfJ2Ofx/zeVi2fJT8MZPDl0KqHRcpFSf3JCH6bFWldaPCSbk/tFnCKP65r78pfRPclRh7Xi3WKhUuam35i/6q6gLeVO3tN+sUYY5N8Uq0EBQ+18V8BsuDZ0xv+GTDzLkrZnnfm4HbWOPXQCg2xcWyMKurGFWMxGGiHRLxigYN3LIFKVO2mmVTIduOgDarLtzwETBoaF3+G0/JUTaYzvVT8dDfUmszernwwSx9xWAwhm2DSg+812lLCRZ6zOHTVLfR6Z/3IHSNjOTWWdkymYP0TLTXMtjqiAugrkJ9rKoOCySQ6YYmnYoPneyQvEWk/KdpSPbY4P0Abdn8oVAmaFa5hZ59FjB9sdMkr6KAM/aU1+l9wtKCCoxuoSUmPRdKl9NC/e5 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(136003)(346002)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(478600001)(6512007)(6486002)(2616005)(1076003)(52116002)(6666004)(6506007)(26005)(66946007)(66556008)(66476007)(316002)(86362001)(2906002)(41300700001)(5660300002)(7416002)(38350700005)(38100700002)(8676002)(4326008)(8936002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R3f3+rskltJkxZSu8N4SftR7Zwm7VyeNSGzLuPSuHBP1G9f+bBMXxrE8wIi1oUJU0ZWJ2T8LqdZuhDiVzsygSCZCQdm6ND1/uS87S4q5y5pb6QwJMPJWCXy7vqaaiwUmoP/mShBpANJ4RkrlEYGuVYrQMHZ/6uTEeyb6AwH336astmD2ui6AjTIayzNCZjxT5B/gG/hPwp0ykRAx0eBckQDif93dgx/kK+kiY3JkSFIGMFz1h58EheGAgUfBuckcZUo3oFAFcr6rrw0VNLNidVthfWt7fqv6iL/Fk8igrA3tH55Nm7hyVFHF6qyv0zWCgG27NyRpJENDJF/K0NuMlXPlfSTU7TxNeWJMW34n192zwPNxU3M/f8i+Ulr7sMKsF8VqZRbNVVnEXz+WqV3CCc2JmQDWsRAiJdJE/Lur9TLvzRFNTmXDM0jP6vJoHtsDkcfnyvrG27aXlUXJasIdaaAt+z7J9tljHj9JXOsZMTqmoI6NQSrrYNvsrnJFGDlXHc9OJ12wyFzRIwo/6f3zpyg36MrOLSY9IPIkfgqVLaYHWp0BNclM+fOaYCfgHim0TvBdg5s9HBwfoItFZqmtK6rMQkElewYP0hzML8LvQcPS+AKlPiEA1hN/2ZJ1qEle44/7KkSILI6AZ2WfdrIF50tvpveTW3QsamvYD6GZHyZFU+ZpyrlpkI/fzbWWiRdtK56tC7K5GZXDigJNcH24zU3t7a7ZGyJtcLRE4OTyuO0ZeAbap/wfACEj6q5CDXlzTPV8VMbfpwpXBKSEJXFbPWPoQXdQ/aeTWKszQR9HlBxrUDMQmHsfhXsG2HdNJbihlIi5PEXfZ/0mN5i1sxWP7MXfzP1aMUuFBVtmPqQcMGOTb+TSnmeMslmN5XHM5gzOILo+j9ctPIx/4xM54heTE0WILeZB4v3fK6s6070w7oNHjmwM+kEsJ6Xx/7+kCxfIX9/coOD6YaNmoQ7LMy6lb2a0v2kjGMHbxMX6S1G+ZtZM9TOuDpELjPsGWHoLrwwL8lHo1IJXz99E+7y08HPS9tmC96cnjbPbtg+mnnVw0UEj6tld6Y+o4LvvlmM1Ez4TubLCm2PEYtWA02ykjo1MrP3i/PIJHO5L7G6HuA/NCM70zLj84QfdRlv8t5c7nRK8Cl0G4cCIuW4PMrEJXBGwlM2XzURm3ZKC6ypamiYfpwpmschYm7fM7bgzGwWZpbiRtjH0HZOn0WemLO6HbJMLD+wOxjwsajwMJGFXFzurs2Lx2CRGi1t1GsqdyTbbY0yBLNfS+iH5t3X9ULHHuVGqFwo9FH4PWLsUZyq78FgOy7M0EiT7yPjoUnziEtuA7mkbTMwHvMCIf7FcGSRWUOgTJ0b9J6KrIMexmGiN9OB0gcfnyPptYjZoNm5blv1tWG5ilX7U2JoN+wSS5HNfAm0BjnMiKjwNn60lh0fBNq3hU3OpdAGKMoIEDnyJJBJrZ1Vnnkz7PNOSRc6PNmGKKbLe9sgBHxDgdp4Bq1Jx98gtK9PNuCuxYp2fJZIzeGcmATaCdFMUrgZxRmqp3oYBkL9kwKykeBYWhs7ZV3FIz7wgWeQK/HNvmJ70b1Sn2FXcy87T X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41e2aaa3-d247-4588-d7db-08dbe9ab0a78 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 09:28:22.9497 (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: icclBscCucSfIDcHr50GP/DO9P6L3M87z0C7UIc1VadYvEURn3MU+XXsLwVeAFYlScEK4ZTZm2vRmEM0uK/2zA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_012827_874803_45A866B5 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add driver support for i.MX8DXL DDR Perf, which supports AXI ID PORT CHANNEL filter. Signed-off-by: Xu Yang Reviewed-by: Frank Li --- Changes since v2: - no changes Changes since v3: - add Reviewed-by tag --- drivers/perf/fsl_imx8_ddr_perf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index d0eae2d7e64b..7dbfaee372c7 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -92,6 +92,11 @@ static const struct fsl_ddr_devtype_data imx8mp_devtype_data = { .identifier = "i.MX8MP", }; +static const struct fsl_ddr_devtype_data imx8dxl_devtype_data = { + .quirks = DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER, + .identifier = "i.MX8DXL", +}; + 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}, @@ -99,6 +104,7 @@ static const struct of_device_id imx_ddr_pmu_dt_ids[] = { { .compatible = "fsl,imx8mm-ddr-pmu", .data = &imx8mm_devtype_data}, { .compatible = "fsl,imx8mn-ddr-pmu", .data = &imx8mn_devtype_data}, { .compatible = "fsl,imx8mp-ddr-pmu", .data = &imx8mp_devtype_data}, + { .compatible = "fsl,imx8dxl-ddr-pmu", .data = &imx8dxl_devtype_data}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_ddr_pmu_dt_ids); From patchwork Mon Nov 20 09:33:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13460992 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0F9BC54E76 for ; Mon, 20 Nov 2023 09:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SyIknM16S1I1+du7vqY2z14DPHqfPB0UEjRbkBq7hcE=; b=ixSYTB9c2Sk6Zi z2+n6ptKkjJb1rQRIC9RvoWC3hfM/du5gvmgecuxnuEE67oAYL3ZBEu2QdmIHvELvA17mSexXrVvw 1tCcOWq8uYbyTudfwt0VAeRedTQX/ntGv5Ln5VxRzQMCbvFdzG2vVpsCgvea082kdKa7t2l8xrINX K1fmGkMGlXmis0jGnP+WlRY2CVeBuEU4ZRmbsJ9knk8b/yq/c6V+4zTAiCLrFcPY5O4dO34tGLAOA X1yiYzwc6Uvi7zzerQWu4GfMD66VsIpDf2vzTp/KmsGeLNv5/ZiSmN00pc3lj7EIHuKn0WG+XRiyd umiijJ9YK9nqa/Y9Klww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r50aQ-00BeaD-1h; Mon, 20 Nov 2023 09:28:58 +0000 Received: from mail-am6eur05on20630.outbound.protection.outlook.com ([2a01:111:f400:7e1b::630] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r50Zz-00BeM0-33 for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 09:28:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HUl2bxMaUDtcrv43MlqWvreVACc2a2nLaSRo4K+hC98KesfJxVKsR2jICmGBy66g22pG/ZiMNwXuTDb7yDzJlTon8K8VkpZJ8oyjjdgwWqN2svOy9AxkJy9e8cAcbze7aGsLAmzGzqtiatTpKTk/tC9gd9CU8Z8czMrd206GsLlzoEM4E+55yHzsTGSGisKqMKgyjYzGnpe+VkCQ4f1EqHXenlhF5z0FN5MglFnrL7fDKl2qHnDdj4dLMgql/xJgED4gJnMFJEMIbTh6hgrXxmT2eAa7J13YtH/vZpuxCPnoZxVWLJoyi2idYgsPsGf+QCR2+S716OgczLAd8Dab1Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yKBVDhtpxcL4cmVIcfnpqKpGZa9abExu8mt9ktRc9H8=; b=DCaTGrK3VcJYIhCxygoPmILayerXf3Y4hbvQk1cktYAitvnjpnzkufso7VRfSqD/oB1HOaEbMfZLKogv2o2muMIZ9ZC/ruwVYCXYuLRVzPh6m9JeGoKw+5ZEepp3kLksoV1ZV3HD1BKwlOrU6QznAOxsK3VYUST0QcdNyYq6V4RVgT9sZWuDdW8ml4I5GTFtSGBg+/a1kFetURnH74OEpJ5yamDTXYjBR8FRyFiSwQBj2f/P3GsDEZn63shhAE8MaXm4ZX/B+q6BGtiMKyMnLdoB7s+hO44KdJZZcoFy5tvvdD/afpZUT++Ua9LAqqUJX69s4z+8znp0CW4GSDvH1w== 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=yKBVDhtpxcL4cmVIcfnpqKpGZa9abExu8mt9ktRc9H8=; b=S2iYYDK/+gT7TWQWiJZNfMvSIrjXGDH82ydtlyEM0KW8smm4Ty8oWbQvLuGbFC1LEaXkqqqg5xxR3JLuwJIoldtQD0d62RWqjBz8g/u7YDrjJXAi+3VsGdy5wf9fpnZmT0XqG//WysBvWOprp9JTdvjc+Ep7d21ERT7ZcgycoEg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by VI1PR04MB6880.eurprd04.prod.outlook.com (2603:10a6:803:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 09:28:28 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7025.014; Mon, 20 Nov 2023 09:28:28 +0000 From: Xu Yang To: frank.li@nxp.com, corbet@lwn.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: festevam@gmail.com, conor+dt@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com Subject: [PATCH v3 5/5] arm64: dts: imx8dxl-ss-ddr: change ddr_pmu0 compatible Date: Mon, 20 Nov 2023 17:33:17 +0800 Message-Id: <20231120093317.2652866-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120093317.2652866-1-xu.yang_2@nxp.com> References: <20231120093317.2652866-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|VI1PR04MB6880:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f3e370d-e524-4059-7533-08dbe9ab0dc2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ikks+9au4zjC8noznqjeI66AfIhTTSbX8LCexwtZ3DOrwJ/3vfaMYT41rZaQzzq1tWd+vLJI5Ki0gNx7UmMtQqZSUW6h9c6PIH6xp5LRCCV4C8TbGSWQp46XE1sqM1j9GsNgxyolAQD7K1hr3iqsWiZaBloKKs01MT2TLTMucHfyg+nYAeAuYf2DK0lQfxnXKWf6HZqTWsr7eRMEvnJuesESJ7h52LG0Kv0ikrSyfX2HYWce3x0rzXb+MJjtDEC7LzhRXTk+UOnbdgv44IGezOPxuoY8k5oOD9++1E8QXbIfevBsm0/ozT2H2vY0X93M3km7C1a+vHtlqqV74hGMQcTENZ1upvItb3mhnyn5j4DpEQG1y1BnUTKYKV17gkv4Fw7eCH8mTyNl7BEqVRxG2QUa5Xfqet68cNiJSxbbH4GUhClbFOWbzcsKQcZa3wh0wxZccQOIfuxmXLH7gtcgZeW7PnYFNf5XTW0Xc9J9yQ0/dSDp+QKQzuaLoZllFxgZoYRkp7VW7ufTJ5aeBSNTrY0kRjWPYXTDPKp9tyAVCTMY2GQjEIPxWdWVB0GB0braSEoKHEVOxkFXFPG3PdvJSuRAyirj2NFuLeyfEV8AtFsoJySDwAbmcsogfLWeM/Ki+hKeM9DoMpiyy0GBB+OnSA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(136003)(346002)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(478600001)(6512007)(83380400001)(6486002)(2616005)(1076003)(52116002)(6666004)(6506007)(26005)(66946007)(66556008)(66476007)(316002)(86362001)(4744005)(2906002)(41300700001)(5660300002)(7416002)(38350700005)(38100700002)(8676002)(4326008)(8936002)(36756003)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IeNFGmL4xrfV3dmu8pG0VdhTySrdIjLw+2gvpvL3oDxSWdB6dptchNYFqaj8gagdAisMIL/5z2jv30yiH9A65vqMuW2UY2WvuyPhXpIwqikGuvO0p2Q2zmOeG3PQA1a1U4N/F5dH8F4dt0sm2a0BcbsbaOHFgmnx3kya+Jt06DoM7ZB/BiDfP9WPzMj2ZOr0kypiP8nkZ4gG+u9XM49bGWDaTW4h7gTO0W5J5qv2tZEKyFspuCboV+U/U0GAUg71tCRIaEHAfiVALvzEoBEm3aMEgzhsadS7vsH6mR4YwwJfuJT3J2sYwTO/zp2A2bams9mHuD6tW7RgERt7Cv1opTApcS3TM3Vyi+ri6o+9X6rLa3QCtioRcxKRzPf+hLAduR/FRuDjkWKSxZmyj0H9wFKVGTqqugTcy6RbYupQz1N493VzmsvW4ZxPAUrj0C1AUE6zVK/UZ6WkLWozZMl5ITIQZhCOxwbZUEMB/y6IylWEcGCUbqetOgQC7AQsha69Jb0iwiXBrN6gtKX2ag84yoI78WF2jtE+fGfKirL9053N3Se3EZBs2EPU5+6ERpZvam+WIAdfmXbSzWAT0qqnAHkLNP/x2ubHAwxHbhL4ARro1rSa4EV5zsKN8Ds+ffRzPyG9gQPyCq9wpxnv+PIBvfPdSWJrJiSc1DrWu2qnKy2Unc4WmLuFLIOnVaSfl/6aNa6yPqmMBh508Zj2iOc8bDH6UWZZHPAG0PxHCTqbshs4wd+Q4lsjROiaPZBjuO1TO3sMqmLYv8IgJuQNPhs/+fjwOqeusIfqTAr2WYcl7JG3XLiuVl6UPX4d9c1Do3PcGZmTqEhBNMG79WWF25S99/vlYoegKImHcXPld9mWMJB52Fup5i2Cd6TGXFXIYUv7QBUKVpwjFbJJXxF8Z+LTtamlNlR84302Gm3ZEQzj0lHRcHxMYnA/UCCjuJTVxC8fe3NBTNyCNHFVWvadEdEQ4p5r1/j6Hd0potZKYfig0erYJT74dL3X+Oy0eCoFze/mPFmM40sGKlD7SfOI84uMguKEY6aQnuiWlufgqzE5h3YsTr51m5WlX6/3e3vq/5j7tJQgOIicdvjcUxoD5QYfwixJ+a6cz8wygrVF3jCW/w2+VgN4JzZVR1FL/r8zW6pTL/5n6L1UtexA7jmXdZMB0VrFnmu3Y1TPRlC+TZcyWBawyu6ILTS83WeO73O3vrpWduG03HhHpINJQ4yY/0MIsHm/AB0q3zsQjTcZ/d9e3KJ/XG3z3NXjVOlikNqcjR5RMI+lrcsjTO3TXZZ0zJhT1iWn5SjgBTzyd+5+JOpzg/ScjGGq/k5Y0IBJowjJY7SZRwfQIQIwmg00KpLzcCtw1D7M9wrDKu6L1qRQ0nrdc5YCz8Pm8OQMitWFjL4WNq/vTnpM6u8U3N4nDW2z2pDRjIbff7YwEoTUgpV8cSdAwT/xBUP2xN7CMZs7HABmPucsnEIJe4JxEDQy3xN6oUNJsWQ8jFEft5Ip7gNoUeR/hI3Ed5FUCYP35KXA+PjvKzgnWQ8jBVAeF3tUsBAG9yoHX5VnO6IwPx8XBlIHZwmLvMPFkj8OYFsxuHzpkNaZ/BRQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f3e370d-e524-4059-7533-08dbe9ab0dc2 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 09:28:28.5693 (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: 3SN+qXxg8Ix4SjxkYd+yzOn/botQsk9I+0HPqj6ZZmzN83LzR145DyUyl6QKnfLhe2LRFYmymKe0/IQvtTuZhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_012831_997072_3E430C6A X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.MX8DXL's ddr pmu has port/channel filter capabilities, but it still is compatible with "fsl,imx8-ddr-pmu". This will change the compatible. Signed-off-by: Xu Yang --- Changes since v2: - fix topo --- arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi index 550f513708d8..3569abb5bb9b 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi @@ -4,6 +4,6 @@ */ &ddr_pmu0 { - compatible = "fsl,imx8-ddr-pmu"; + compatible = "fsl,imx8dxl-ddr-pmu", "fsl,imx8-ddr-pmu"; interrupts = ; };