From patchwork Wed Oct 11 06:08:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13416582 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 25183CD98F5 for ; Wed, 11 Oct 2023 06:04:30 +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=JUGrh2ENYPawBigHoLxMNlNHKGVLCJNwrms5HptLJ7I=; b=gpq0ymlVqWm3SW TqQxZCMXqFvdHC3TfMW6htjHy2BL0WD9lFt0hEIgVwMLKVt0zo3wYnSETS/mjxVvV1GtNWMMM3Tus LrpvA7sGybXVIVCcd7XXmeyN3y3+t/6m11dZJwp/HXdTcwnWzC7IHe/k3rkvlb/4rbEwhuQTYFTDR glOCR3Lhxs7eaplVpcvZykSVKy3VhTjbclrz/7OSpdBxXOdZmXmxPXthNXRKtiOOwPrZe8/NG2nCQ wENMocO7VUzUenmWPvmmrpyQXN1/lG68/S+8kncN7vHNcpGO5PO6n+R5MtsVKMEfx4EpC/Z+9bBHf FEKbpaeIBqCB8u30vRGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqSK5-00EtEq-1J; Wed, 11 Oct 2023 06:03:57 +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 1qqSK1-00EtBf-1J for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 06:03:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XauLG77oZ0HfSw6EEUmSX02olkJF5DWgQY7hmURsIJHzxHufEN8/0sYlz2BKwkBRqVztz3KeQWmCB0akDKDcsY6fMybnDGEVVgSpccUQ8/5vGD56FFEudm/Da7Pd10g00DjtfmZb9l2ZTrvU7MRyhSQCSyQDZmrlKJJYpRBqAzP0d7YmedsLjVHA8lcuYjtFEZ0kO523tyNLqYom0mAsokt0D8cW3woqZz0okMEv+2iCKU3TVAgpwgRG+92NIiRtGoqZfDUgc7YCWQeMaQlX0fY9gwMhOGHRqARlOYNwdDWHL5Cinre3SIhElz3CmgK6OZzypC4zhUt1yKLOv4CIog== 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=qYlL11TIzWe210uA3ZUvgc5U6pa6dvKkt3SfkVv1RE4=; b=LUBvPLCIyRNAwEoUn55NNZxjGG+CqtGgwU5uvKKe4kR281A/rIrVuy5w44+EbJIYVI3I0UQRZYsDksxje6Xen4T7vKzKlzrD3MF7zPTZbzFEOvsTK+l0gUMpZ3T6kdPvqINl4b6OIWCFh4PpeJeTJ6kGfZcussjJkRovtRtjiyVFnUNvif56yd+Kr9WeQ7BC7y0COahd4wR5k2pmCa1pm9Q048GqK6Akj9CacNKlmNv4ouyXiCvAYBeDGdYGiKesK5zUYCvNDOCVKqfu6HcoYdIDapzvh6IwFuxlFI/GYbW2Rkk3DW1otV6+oA1Nf8vlEiGRNbQh8U41uZTkwUpZkg== 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=qYlL11TIzWe210uA3ZUvgc5U6pa6dvKkt3SfkVv1RE4=; b=WHYxmELUY+FqsfVkhWvadjDTJU9mHcWSZVwnZyJnpfRvcYtRKTvlDdAkvMUOGAOUzciq7in9vtwTNgQlRmyLLASYyz6rYJyXxBMq6XiNR5BLzMb3v3jiXqtBPxv6cbnLFj5PuqVqsEaPkwaXgPinWeJFgyHkSynB4OpGE6hP85I= 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 AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 11 Oct 2023 06:03:41 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 06:03:41 +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 v2 1/5] perf: fsl_imx8_ddr: Add AXI ID PORT CHANNEL filter support Date: Wed, 11 Oct 2023 14:08:34 +0800 Message-Id: <20231011060838.3413621-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|AS8PR04MB9080:EE_ X-MS-Office365-Filtering-Correlation-Id: 71c7a141-8aec-44fd-a6a2-08dbca1fd1a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F7zSJinpyeuhA4ddc2kiX1+R4Pewnajdb3dzN9fYzykDV4+Lf0EGEUi+ZJYrom0cqvGaot50MPCld+5DWhbJsyYjScM8OlRcwr/fGQS5VQGq3M6bT95AU1HyCl/BVCF0IMYwOCuXL/AjMpUbTuCq8xiV8jvkDbFBzJtErpQUCYI3+Qia9zNCLJe34LRRSrtVHb1i+vE4CPeiBP6S3hZ/QD5n22U/ASM3kEdC0vN/cAABKOdHIhw9MRJXnrCf+QMEh8z/nKTbrVQsgTXNs67Oa/q8exUOUlPoETPhNon3NXmND34J1SydQomCDe112s27FHCqhtW0CFysUJ6pJsUc3f31t7zvC5so3KXDGhPTWMjLeG7eheXIt0Pba2C1i7fyFrLo3fYkZxBvA0reBrRN10Xq2zGQnL7jJmng5WIOIlFcFGd7ROkOsldArncgj7468ceI2Cpk9Jbe0tWT3m0y+SxK7JXv133/Noow/5+ZzE0P8Aua2MTe2DBB4g8shmB3oryG3rA2PM/8N+6odhbZy7BdEP3f6iY8Lb4wyvOUXT6qSer5ZLQ2rejmLcGMUncVugIypuNOTnBPU4nO6BL/TRrB6Y2CHHx8wnXfzwY4PiBUo/tjuSmfnRzK38E8bkfQ 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)(39860400002)(346002)(396003)(136003)(376002)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(2616005)(1076003)(26005)(316002)(41300700001)(66946007)(66476007)(7416002)(5660300002)(52116002)(38350700002)(66556008)(4326008)(8676002)(8936002)(2906002)(38100700002)(36756003)(86362001)(6666004)(6512007)(6486002)(6506007)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vtZV+n/0kCj+MdGGAYS+PYv97OQd8O4cOd8xaCMRBRvwtWJ7rmK8qlFyVh4jqPsYauVGbn2uooS8uRpGwk+k4JDZsffwLpkOWtn89zpB99SfTkOc7Qzsm1zeJOCJjX8kDS6C5BnkP6/s9EMA+306/FeS/Ga/DFePA/D4882SSThXfXVx2bpG6Lu0YuSRk4pwdj9IQB7GWLhEOjWDhT+QHawyCb9OHMJOZXVKNFMfgzR5vhEQ2OSopyHAtDtXizyBYJnNHs4OOKB+MyEtPtw5XASQD+n1fGV6N42+ZOLj8yeE66Ri+q8VHtL+7M7muBqDhwm+vdjU3jOWPAkGVu8J/7Flqacjaqxn6io7O68qqQQrFHst33Xi2qsAziFOA9jAcf1KIV4s1fNOBaVE9h5bErY6dOneEKrfda6UXN9ZBGurronGmr4QpB7MglzqMUU7OuCqc6OhglOnA2A89G7g4wi/WUCVj8QXKU6kmf43wdvxPijFxTPUGuK3ScXIoHRFqngncDAt4TojrSa4avJnetd8AGYu8JGuyhqp1GFr8wer4aU44+F+3eObwa/T7OeX7/V4pIZ4a0vH0MfMfyKl4TBgqJpIz/HWMdkZHV/Wt3vmy3HVOI1lCNQD97Qq75ffIUv8IjwvK//txYUPL5DJrnyTNGpS3pFsgRtD1Mg0kxcLrJu3YEIExsBAP1nfaDDFJX1zstQDI9N5JgGl7R0hHFeQGYHseiicO4ktpKb5SJSwZo1un22lGcPjiVHckc7v8AcfryqETdyJxAug5+lXqhAK9a1PbVXpasNDLxj4qCqdXi2l9aQE4wn6pcdT7uiG6LwrPhxlftuIg6meMW2KoTNqNy9hvqGsz/LJADUAvA/YnCoWejC4SOk07rJGScQTLjDXZy90RnhEkAM64px0DSMvQ3KA2GV/7CA50B2qeFE47+LlPhuqfJaPDAG2UqJlmRy4CzTw7EzUUDbKteH2t95JiPOzDSsJRvu5nzXD/MTvURgT9P5q0+co5jXcztJynW8mPyRc2QRhIQhGVp0CgQTDqFXkp0dyQ8LZFDKqE5GbffmUaB3Fl6jjjvvAIk8sPHtbWeBOp0NXGuSzmLThR7BlNb5Py6k7ouAn1HErxecIPA1Y7wkOTqrEvEr7eMm/TbdUkbnBcq57v527SH0lxoAlEuQy/uqacY0OBdtuFTlyUoL8M+Csl7vFGOxQrTQ8EOro9w+MY8dxeP6HTAPTaYR4lo+X71JlZgt9FXb237Z6CekhiiMer6/GnfCrHq5cC2CfECdEwXyRZxm5SY0l7PWhYdNQAHEFaUNXlwFJaXamwfIzabBU1wzRT4vHdg0qeFwS3tgQCIPEM6+bN0kbPk4rqO/BuemL1QRiV6edCtJJt1ZEF3j3TkcYL6vfLYT5HU2Ya9SIjP7qTBPmZbhpOz9rl8Bp1MUpaOfZ1eMA26LNyE7q2RTyX01tfGmqN8l6GKiBf/hzDFMXvzhY7W9xHlRSHkqbdatmg3LLTcP73q+2OUDFzfEWSj0UGgepmSLl9rgDIMksXAATq69Y7BK07PgsIJZ5qFCI0H/RpsHn7b2RLuFv2xEFdC6YpMduBIOq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71c7a141-8aec-44fd-a6a2-08dbca1fd1a8 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 06:03:41.7010 (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: AMJv1ib8z7FSSZGSB2WHCSNpsVzjfE7igITOgjDwD5VywkAwpJ2298QJ4Rw3lyZLy02m/O5eZLoHlagUb94THQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_230353_449728_74837715 X-CRM114-Status: GOOD ( 16.86 ) 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 --- 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 Wed Oct 11 06:08:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13416583 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 EC57DCD98C7 for ; Wed, 11 Oct 2023 06:04:31 +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=y0WC2ymifykHhQ ZybZ4J4aLkJIcVidGb0ApSmUGRoDyJOEKllX/L2jKb71jvlBR2SsWPUNkoF4Ch/LiPFzR8idZEamw Tw+Y+np2ylv4wyeFCgC9wb+wdRF91tkK4bj+J2VbEdPEgDJv8bBQzbuR6zkIdCu1KhEEPflLpeu1s +RsZzhg1yNtaCm1OAQwSNzGAlF3c6ftxqhWfJdcmKY5fyEdrU55D+0cTLbbG9O/vDSWCcQ1kA4iNi 9Q4uGaQ4TlxQPnVWp3Ltt+SEWf/zayKCvLXR8YMjcoXtrW/6Jd98fznUY4X/GN+Z925/vkoAWMJQZ No9p2P4abrBwVDbdOxNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqSK8-00EtG0-0D; Wed, 11 Oct 2023 06:04:00 +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 1qqSK4-00EtBf-15 for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 06:03:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+z4AnA9pUULQDYER5Luq3l8OZQILoDIDL94GAD6/LDc6gkDmaZW6WDUWpIVynE6JiVkYnxmQ3ICgSOBggCvWcfw07ngY1SlIjbhhsnkHXo1JfK/glpCgz75/2ZxN/vpUp46k2URNnsup+TzbXI6Cb+w8MJvrqbM955qzAnbOoy0IEfjubcx4plsgQwq3jMWAzXe8yYO0HrVALdsoPAWoZxQdzmurXVikJp063S5An2TXLNjCefx2T9k5x4wziYUiSwl0dgrGNzkhJFW6D6/3pbJQTg1SyiPbU83lIcj12D/VGdqPAfzUGeZhJZ+3cNfZOvkHVCb+X5NknYP1sBZOA== 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=QB3Qlr0F70Co+BX6R+jBTAdyiqnljw4id2foWO3GEbmEXOSVNNo3K8X++0rraAiHePUN0QS+8gqQZXhwVTFl8K/qCokUuOv0A7x5BWL2YpA0mk00ZCGyZs1AKLFBpT2eBwCv16TrFL4bmKaBhN9BPFlVK9IKWkzDMrtn7UE/yDqabCTK0gFLTG7LAzKJGY/E0dmFpKS+XigWuzEqrfKQHElAdtBECNeNlyOrYmxG0rOu0UbQpeFJ4pHfVl+M6G7kR7AxTrLaan8rFaHn75yNK1oC5AE+a7lUw/lhOqB+xMlsUO0sgL4wn99lLWJ91M2ueZ6T0qmNQ/abmnsXqGMQ+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=Fhd5cza3SB7hFnwUJRgO4IurqBf+Mlp5edS7WbHKRN0=; b=l/Yhi/I++Dcbb46NcesidTWfF8Hg9y+rOawW9kg3y3oY4+/sC9DRZAzMDEcUPOFSdmdR7WtU4k7yg4Y7bFB6180pfv6/ZwHTJIPMoO3a6JJ2kGzstW+v8xixKKbGpisqxorhN9PGDIxW5WS4WIiDH+KvaxQB44cYcpYm22PqEBI= 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 AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 11 Oct 2023 06:03:46 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 06:03:46 +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 v2 2/5] docs/perf: Add explanation for DDR_CAP_AXI_ID_PORT_CHANNEL_FILTER quirk Date: Wed, 11 Oct 2023 14:08:35 +0800 Message-Id: <20231011060838.3413621-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011060838.3413621-1-xu.yang_2@nxp.com> References: <20231011060838.3413621-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|AS8PR04MB9080:EE_ X-MS-Office365-Filtering-Correlation-Id: fabefba4-f040-46da-9de1-08dbca1fd497 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VXdnTB5EpvD6eXmcLX8z6gfHOhsDDsGPRQPvIwyCE7RxuvpICGBYRMkEXW3n6ex43fpYi5BfH55XHFb500Zac+q6BObMbSS27XdULQ8YXH7Vt06owS5su+2FXBOaJV8wjEsN4zj/w2WQtPtwKbrs3aDyKSFJx2la+4keCFYXH5RB09xP2mZzKwou4Db/QGv5dHBnNGDNWF5B2uuIyEK+u5lOR8L9Ct+ez3NDyWHO9rDyQPT7SvxA3cd2z2P38eUAffiRfC8cyXxbMALZsESxNy8BgngERfWuz+uMJMDz5drOxhbw0n5RcGwI1pMKA1K699bLc7HkpJktk3iuVfP+qHyYdmUWmW29QSCdYljpIpmgCTQz6Wm0LzHr4Z0QCKgv38dOmhiWMpbzxnSMhatsXg/IODS0TOxadQFfw9bQYwdf5afqHxv99wnPZPXTXd9xNUGv83ubRDdQJjwy21qqtBA6lPY9c+U1v4gMJdlorPbV/uCBU9cSa/Fs0wei4Jh1MWvkMSDww8I0Lyr8PsufURasBsC40DDwdkj5Pe/qHtYmzIPUe170B4TFOEnJLaiYODkrG4lea2gcZH5UYsKysNGg8Dk45F6qAm7pPx9ufFeuJ3WKi3mCR+rqfnL2TLM4 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)(39860400002)(346002)(396003)(136003)(376002)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(83380400001)(2616005)(1076003)(26005)(316002)(41300700001)(66946007)(66476007)(7416002)(5660300002)(52116002)(38350700002)(66556008)(4326008)(8676002)(8936002)(2906002)(38100700002)(36756003)(86362001)(6666004)(6512007)(6486002)(6506007)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eEpnU9rhdC6MWKCvM4xES1K+CFAOB/nz06CMLMDDFwkzQy9Vau7NSqqRWs9s9oIR2RxtafOmc4+tPmDifLziLRRospL2/axjtNLAm3AqCpQ3gviTOV8kluFjG629+3B92Ez2dBPzj7UoKayHIY+TeLztXLfkTGpausnIELitsVLjvMcFu5Ko3h35urvuM/BeA/3vVBwqQC1ig4MHtVh/BCAKs/gVm/izWjmqbHxDkdquk2SGBx2P3PnCoZ05hn6HqiatU770oNbJ25nZjlkFauGg6hoC+CkJP820eYtTVKVlfSRDYn7TeymOmLiLWqAWaDuzjBX6f8YdJAvY6NhycYt3bhTAiYtc4cvmx7wxTroXIrVHPAms5OfVFslmth6Z4R5dNEP2V57PxsmVJR3Wbi6YIEXCaVUaLjurFVJYrcPP0S+Y/9XBTIs0JCAp0wrg+WztiVlwc3dWSHZlNzIQS1LMMSPmf+rnnomk5l0WHnqFvI8V9KHunRrwHKmF083jf/t/8f8PeookR4sz2id4xmenGFGBf4LHB9TzRnUrUzTs625IMrTe65DJidF1H1P9UR/6PzRO9rABa6/KIoKgtZ7R+ZAieMrQuWZU0TX4pIXmhA5P/GbF1d7e4y7ONLX2rF87tBzced6LupdwhtX8vYSK/hXmbIaFzCC+bP5jdfh5w7pmsamW9poyeZH8Ro2u+wytFa7ifTXoR69eqb99p+chbcJC3lVfBZtT11I02gg/0zRJSOUDEMVyRzoGhHNc1X/JDrH1uAapMKahQweQqypwGo7PHhGNJywlk5n2dqdgbKp+5CYQjhu3esgv2Fo9SeVea1OvpRWImn6hLS+Zw1Dl2oAT66uzawlPaZNB3Z2I3zAIV/OivTMflhWlNaaiK4r2XQquBt18wGX0s5a6lXrqEwtkpz1DLPHHK2NDixjUVElCeA1cOXewvLXv+gaCkvJqsFk28+XxrS96TXXC+sWE075Ieg9+C7duHpHpwFIQ+U+7LmH/AnmDee239HbJg0MIOodSjXHbwwffyhJ+yTaivCiR0shT+FrtVatSnhFEIrP2eA2AL/68bI6bIyHDy9Wgzg6WUGVp0vtGrFIRd/krHU976JmljGwSVpdtA5pSlyHRLWrP58w8KPsQo37gOv+uQsThFMDtDHxR+2zkpdkJYxUcmRjQ1/i+aqba6vT+OuwASupWCcL65VErBXFBrJfXFiLL+q8zyPn2sde7a8X6f0qSdE/48hpraGnFBs2bHTm/N8oxvgu+td0c8ojTM3SD6d660S9BzaNHFc8rfcC8QL6unsySJ0q3sLbPGD9yJrhocfOH1O+3RxBN3OyVA6m6gUsdfU4A90lrZmwB7H/dK5ua0W3OfN1Wi7WQGeKMFr9j2e9g5A2poy17M2+6LogaocdtFUp8vEpVCONEFgWsitq0XdaSbPlXGiBBIqm2/XHiWr8WkxI+SUikzt4w60Bntto+Yh/0RiH8CECFG6NBnXfHgHOsBX86lkk8102lwS6kLbkL8BkugTrvQM7o0HpZdV2Rax6IEIL575yUgjBor0giQH/wEfRa2aQaLrLHzHbuw3uB22pqT0U48VoH X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fabefba4-f040-46da-9de1-08dbca1fd497 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 06:03:46.4550 (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: q7vJ2t19cKiqUrDrxmVnCeK6WU6TcPYShFWgi6LXb5rd97IqtB7tFTcpY+1pohkxNys6qQx/5mhT64h/oovqmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_230356_460400_DAA009F9 X-CRM114-Status: GOOD ( 18.34 ) 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 Wed Oct 11 06:08:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13416581 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 2C6D0CD98F3 for ; Wed, 11 Oct 2023 06:04:29 +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=qieE+VuGAeoDnl xgTrVzC4YibHA2InPbM6ZmSg0qx2A10ifjOm3XwYQutcHB48hdIGqU/32tTSTkDIfGJ7K35a6kFuj RG+pQIhi2IheX4jwGZHNtNY7Rm5o+7WJqiVloJQveDaQY6OfcMHpkywcFHeMauFxWPivSuYl3xxKF Hl+zH++kr7RJVyAoZmCSUpfdcQBUD6GYdsvEEDRAVElnsPuDMVzkVMY8s2+el/cQbkM6xCrgw1rWB P6/MEZHUVWlOHfOmYzqBs4ZceygFLuxScYOnn5aai6scjuyTopSMj1AgNGewG5OTdIJLA/vTy2fHC Qf9Vi/S/OGPb3uamICNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqSK8-00EtGb-1v; Wed, 11 Oct 2023 06:04:00 +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 1qqSK6-00EtBf-0f for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 06:03:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BQSe/pLsjdZ5kBh69M9G36/6hPC5Zwzn0Jc0jEc6iXFbQepnsi13QFn/pK/dZYhOa0sGmcI/4+cPIxFZ+vLIL7oJYv4q41NKDa8Da3j671OhcIMJMKsIQRv1IV627viJYkt4h9/JKMImIv2HOigr0wqNJgnKlHtgo7U3XEKpMdEXpMUPZi1xZ9Xy1mzQAlN3t1zkGIxxos2e63q/aZKwyar6x+ZVobmnfK+IhU0H+RJNe6khFtjLrBfyF0uCF0R8QUDqfelCWYKl1FJDRYXoKsqd5QrTjs7bZywo8pxiIcU1YqOoEj/nWr9Womf6s51yoVu0OYmrqZ/qXIdlwjRjOA== 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=GX6/sV5pgXOFzaHSavP/n2XIRrtRVcb9ZWAEc6Vw1SXwrzjXcM5cKoywy2xFI9gwLVGjjuNdjnbyomOtN7kUUEDMQ8TgQ7ThO2MzeAf0ZsOkAO0ruuJc/K7W2I79DekpIo+vGPfz+utD3xWN6T3TDNZlOkchf4zrw3bG7XuxvjZb1C/uE3XWxZ2+g52tGAUXjmJDrYdQuAaIIWYFpi9WgzzT0FmLeRy90EUtkRCtq3u0GrJR46rhJ3PPWPcagb7aeEwAlDYJ62YcLecaT0FzaKxVbNGKxCk03Pi+25EohCSaHX1ekALm+RcQk4+T2vf5PDPkMjVMggoRKB/xarax/Q== 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=nNPBPxKLqe8Cpl4srOWzApIgqmudWni5MRSaEAI33/oJUDjowxUgK0qAkUeEKJ6+kgW0czmjH9/SLyce9VQuEL6sMslwBpD7r7dxmQAXkHfwIAIoMWuGGfZJX8T8kySTjTIad4/wueZNlwivaUx5YWy9sAtp1cOvc+S8Y0aI3g0= 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 AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 11 Oct 2023 06:03:51 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 06:03:51 +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 v2 3/5] dt-bindings: perf: fsl-imx-ddr: Add i.MX8DXL compatible Date: Wed, 11 Oct 2023 14:08:36 +0800 Message-Id: <20231011060838.3413621-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011060838.3413621-1-xu.yang_2@nxp.com> References: <20231011060838.3413621-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|AS8PR04MB9080:EE_ X-MS-Office365-Filtering-Correlation-Id: 13afd079-56ee-4749-bc08-08dbca1fd78d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AUQWNmCx8LMy5aJu2Rl+1KsZyW1IcdKDME+262QKkpCX55YPTeidmrCr3jIQMgm9+cHT/7X9FDGOhr03bATgNDELgtZzBkoMIICU2eaufajft1HvXP6Y2gu8eYMEeuay7D9OgM6wtBjlD/6OuaHHA55InYug0Q/thteZi923gLmaHrWqspnSAWcSVHH6C5Wc6+L3WRzt9fISYFvHQErjpPAPMOSOk6unecMcPFZW35do11eEQOESSlIZh1oZAxlKYxV1zoTLH+ZvwG2Nj8GzW1owzWI6WdpLrQjOgX5NnlRqypQNxQQvPDYqSwTDh+3hhdUp0w+Nz8f0Tltj6ua9OP9/Ran/pZX+xL+fiNmqC5Uav1xZz/l0UieH2bvMhb5gx1gP72qvxeXJCUNxqnN7aHXYDAPx8ISAPpldod5lrpDH+9wn0dWjlTIDlk8uvQ4LqZSGQkVaHG/NfZYsGKjpPa88ZIpSxv9nLtFxcCYkONBoU4f39u7mptPPN6ugyw7vRyb10jyTfiizzf3GznYiEaRaZF5a2B/mYehgHYlsNkysj47hUVSmWbXMzkX0EhhG7JOkQuas074DD7yxqwxVscjPM66fPt8q0b+t6EsH+ZnmEMftrgio0J6TAGSh9JWr 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)(39860400002)(346002)(396003)(136003)(376002)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(2616005)(1076003)(26005)(316002)(4744005)(41300700001)(66946007)(66476007)(7416002)(5660300002)(52116002)(38350700002)(66556008)(4326008)(8676002)(8936002)(2906002)(38100700002)(36756003)(86362001)(6666004)(6512007)(6486002)(6506007)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DQcLEOPiSxl+ZnqPQ3ME6opPcOil0zmFNhYb71xR5cKFaJm2eNP+LmM+uXYMfwkYw2HOnK2UG+JsEkNb1MWsbSnyBnqnqZFU+0GEnshn9vCWCCDVwZJ6Nh5Ub7LbNsHiTWtN5VWAXOEztt+X2wzAycuMW0BdE+au11I0FYYdiAXboOa+fLjvQVy7Gmy+pJDsyZ/NgSxLJTjoQFyqpIPaaeJcEpPl4YzFrxMNFg3JMLXq1jMWIQvkla5OYHazxiVzACZG4E3OfltbKSnGREYuH84PRUvR4bvZhxMwHbuP/5aSi4cZ/iX6MgJt4/6n4gnXHpToJw6L/YnIGY+9wAM6390VyvP0SNhok7H0QgB8DVr2Jlo1tVXfyeZBdtBWD2SVPPnyG5wt9BwBSUnZC4p/OMmaA56z5fxMaqmfdNhYuduiJiltC0E09px/43V3X1eIfJSzkZHdM5HWH/V8+yTlQegICoSOoPDKC53YKJHRSVw1hidagIlMmSjDcq7zoUbTcOG1x11hZdZposWHSEZPZL19AXJaPnATVmMzEfMFFR+6ASbX61vGYSnPHwKj7QrKpmsiai1QoO9zJl2RTMR6OuJ0EbfrZwQnoP6XmyoZjOrNu+bwmj1yIufi5g/x1sOuWgNelN1vEdRvhWTCnIIlN/dW5erUVW2RsBav5LkUpUlWQH76oD5iYfSEgtJWy/rlJrGENgOoy1ebeFZxwE4TgLcqk7RVL27OWPWT29E+fr+0OtHRmq8+rg0c57HyFubuNNPr8ZDhM2/mUMkyAz0CIf8Mpcx0ca2r8O/ytOu2+y9ykGcGqmbWjFsZ/9JydF+XUKi2deRuNNcaGbo3BlEZvOXlsNfDgUw79iAjmprcq83Ul7QFoByQGsmx/u0LlyKLdVXANxfdu9fnomPSCMJZTDoDy3gnkF7GWXR92Yfjwsw3rVenIJYUWMwDdSBi8mGv589LPXUu9/BEs7HDPVwfTHQ0bHC+wAfrdF8AA+JOJw0m10iocECRLmpeF0Lh8/00ClXRzbVHU7fm5F/bNjaHHibTd/rjiGVdpKKH+hRaRng6dikzaqaUp2t8zwZTyU1lwIo+MmrsKwiM75KJ9eBsoRPvIZdVryd+ZTVWhbumA7tXeMMouIXcKO/8w5K6KkKecc4hayNjTP9pGoAPGNtaicWXSj5O0rOs1UHBquH/nfQGNHd8yXDsOfYOLTPK7L1yYFMXE5YY3oKWkNKQG/MbZEipxVnqKgLgHo0g8XQXWKLZbVOpEq4gN43X5/E7qDcev8Q5kq/zKq2czIG0BaGxVFo1HNkZx9lYFG0jZZm3bmB5DtjDrYU+WYooIeOWPVAa0lPDGWwZqVfoZ5CF2KauGOhc4pvXdLsZl3AxVp8icXeYTSYkb3TqKi8MPGEDfZm7WD3KbS2UUs4qX9ZxPx+AarkdvChxnc74y5UEfxnTPecFqwH3nl4YJ1k4P/VQHyUyasJ+OTM6RNUTkg+qDtOSlKxwdFOC+xZK/XJyfvPbj8ASrQZyJvivN4bvPvPrk6sDsRZ7E4rXq6PcI75ZhUlzc6cq2kS3OKVOHxsFPUfJfXhpsE+TK7ivJoqbUemG1Ig8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13afd079-56ee-4749-bc08-08dbca1fd78d X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 06:03:51.5514 (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: sq/cd4EqR7j4LQUvN2d7dXKmxnI3pVjYYUS3B7XRNZuq5fkqKoHNZI6vLs8RELxOyqNvQSeD4LlCZXAYyNHH8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_230358_248304_A353738F X-CRM114-Status: UNSURE ( 9.39 ) 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 Wed Oct 11 06:08:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13416585 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 704A6CD98F3 for ; Wed, 11 Oct 2023 06:04:35 +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=IWRINfIddAfCb3b6iyoeHmdKL15e3GIFVcmgZETCIsI=; b=AxrRTJBIfM1W1u AWF4GVyci93RvCO794laosiwg/zuZxWnch+cHndkJ9YjtGkcsfZK25xCTsGpqEQAkEaZQKa77Jduc p1QE6oj8qmUR5iU2rM2GBUxPo7feS0oJi32r9fy2gmpGYMDj/upDcxNBtuSV/teAZMRWhJrUJDGGg eQOJF/IsO4M4yJf06Mrqjf00fh+DEaMe2DBJQ/3F925+7+cM7bGeHtD+4u1aihhbormyzrENssrbe +FAEmDJUy+P8iNYlo7pn0NrTHkD/R81INlT8YYnNm6LbiOz797WxpXXzJzwMYqtpwHR+U1/lW0BqO tkPPOZIU6Jj5fHDxsO8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqSKF-00EtKP-0A; Wed, 11 Oct 2023 06:04:07 +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 1qqSK7-00EtBf-2H for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 06:04:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LUhldSns0mMcNDAEZPUS7njVbHUEekxXfU5L6koE3z+VTrZpiage+SEUMspShACUFb49JRlkN94GByPIg94JDSplTKS2VI3D4EXyH8IqE0oAioVeiJevwJ9jA3fpj90aMNwG4TvXs4Ex97ibm3YAZ4XxlfCe+cH3SLAjf7MYNnugx4+TRW3bsfnLuXOMRapKCv8JS+653AIl5T+Td+rSElGOZy6tUW+SDQOsDmShJvs6965vgnOlvBfD1HwDVDow2/2vrPLFysHtcq6BK/GoCSUAZ5tP+kENyxr3dVNymuaT9TKnxGUuRk2SfvTkvW/CONfEFCCHUWsc70X4j2WRaw== 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=oLmYxZ9xCSzfwY6fLjl/i77tUVP1xJXfCDbO6FmeDjk=; b=AhOH+7yUdJebQYcvuQQ2jFYJRw0Hotk3jmJROpA4o+FOGmU+BC5UHP9wbt+DqKh0AK10o+5fpO3VCRX950w+9jUBMHgekUkiHGdF3FNHEYUkcjpeZ3Ng0Sy5VwVNYdCtqKcmREGMiw1l2sbZaXp8F7iJf3ank+JTlXkw8RHTxuh/K0LSd69Z11I5T9yDGDlkDHQIgu1tEJXwzel1CkT5e83LBXAYhGDBfaq/CxAyEYwjKjm0+el7q5dFW6SS26IUaWn3nHde87exfzbRmZsWX31VnNyBThTolu3p7ypq9hHVx4EMIy9NAFeO2r8LoqTTPdnkm3HzmravFWxz7928zQ== 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=oLmYxZ9xCSzfwY6fLjl/i77tUVP1xJXfCDbO6FmeDjk=; b=sugaoD0BHXUoZWeGewX10XQWvKcJqq00KI2P1Yi+k1cSCbSST7BbYGqO9rBO+ynJH3+0XyWg8L8EN1Fy/WiMYLznU/AymmPfk/197BaDlKk+O+185J8Lf0jvkUDWj2y7XIG98yTMa84n/NtUnA3qbabOz6P0DqMdZI0tdetBurg= 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 AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 11 Oct 2023 06:03:56 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 06:03: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 v2 4/5] perf: fsl_imx8_ddr: Add driver support for i.MX8DXL DDR Perf Date: Wed, 11 Oct 2023 14:08:37 +0800 Message-Id: <20231011060838.3413621-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011060838.3413621-1-xu.yang_2@nxp.com> References: <20231011060838.3413621-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|AS8PR04MB9080:EE_ X-MS-Office365-Filtering-Correlation-Id: 32d8d4a8-cf7e-48bd-657a-08dbca1fda6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /mwalncNbknTWT8dNNQnmfWCW16vClYZMV/djp+6hD1Yu9rbZLxhCl+SHZKLgvjs2ZEs01EotVBZC55M8rKsvA1ovtYtmaXoH0rFaDTPOTsEc0pmONTD77oAGdgBPcFfb3sbpchitOTBtS+hszDjouQ3inxqV8sJOtnIHGB7ORX99Wq/Y9neObq81fTeZkqOXatEhp7mdUIRhsYvR2KprVLMPblPk3kTxACua0jvZ63071eX6uTUfg5uJPabD6TGykTnktZWb9HUH4uC9I4T1JkREDIUzU7GESULEVxg7YpyJZlQhYylCyFWEK5ytF8kar27XqlcOadJPz5WO23YvGx8hu+uKg6sFMlSQdaQ0ySyW/17YwAxtvn3i5aW8E8h4cmaetOFIlfLjGs3T3vLLTBnjs7uDNPzombc7aw1T/6v0l/0eqt2zwtLLtva0vbEym4KiZAAbipPSYsHiel2Ra36yzxfxPqEurUxY6og5KMEqB035Kn3jOR7GkGrfbCJcDUv+sxHHf0tWGvf6cxEPuM7thFRdqWYClkeA8TjTsdP50QFtWMANGgifRd2rPArlsGrT6vwDaFryqwz98pO4fqSAaTS3M1jtY+JMqEdDSBAw7myxPozVSkQPnS+FuM0 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)(39860400002)(346002)(396003)(136003)(376002)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(2616005)(1076003)(26005)(316002)(41300700001)(66946007)(66476007)(7416002)(5660300002)(52116002)(38350700002)(66556008)(4326008)(8676002)(8936002)(2906002)(38100700002)(36756003)(86362001)(6666004)(6512007)(6486002)(6506007)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hg9mJr2v3P1p8M0E48LJVVKCC6oebSKCrLYMCqOnP4Vx6VlaZHbqBDxdkdM7CNbzykM4bH0p04rVibRjKFofGlKOXofOsDLRSAeDS5qGLPID+vtYkZ2yDYMUy2b5fxHlGfqfSf69MFxOvC1TQRlrmke61af3SRLttxI49pW0ObdYPWioHCiuvmEHOqGfOigtBX4AZO0EG9BTMNbuZcX2w8587pZ9Q88CcBK7172FfVmXdmQX749p+rYCjhpacpkDqOJ62e4qzy2+o8ZHHp3JsvrW5ZyD6i8IvMISr2rst757+AWU/K8Svmaylf1XdfPGZG869FEe7Bj21X+MZ9wYgncPQteyv7ta+eqHLfCR9j8ATCGXemUH61dw6iIuf0pejVOKKdGs97foemeqEJI3coNlznefL4lpbwcMc8l/pYcK+bv30l31KuV9YgkP6CVvVa6sxmf2QcXZCFWTQdJjkgrdNYOhEKfz5LgQ3AtD6Hjiz/6g7dEaQxyKBrsTv0m8V3V/xKNvCraVZHHp3kkjcH1KO8ZCMm3uWydZ2yd46kROQ89lR7v0B08YQ3S0nv1slIWE7NclE+3wAm3SENlRQ4KQsnokMnqs98WgZsb4i/kd8tOSE3XqAJE0UmWyNZ7XSm+XAm3XCwXbCwYYKTUsihAia+V487GWL2EFWYpO0cFzSToyUR/TL0eAeaWFGhHy472sbRcnxhbwbd25K9XZ7ixbNvUWQLYYuH6zQT9DwRA5XjDgV7QZ9elQovE4lX41mrkpcuKNKVAQGObVeh85VwdGx9KY0PSreKtmNZLDtIpW8h34EpedI+9R453gy1tHQrg/zsHtytsMWwZ99PuOgFWYNctuqUyeRTgzJJysDDmH2ndBVSVS3nUDPSvPzcB+SvYMQA7LAOT4QwKC+mbAIKr78bnQWtsRAJdtycLk+KQbwE/bozdp5wz3PY4N3igfSpOxNIrfsa4JKJOrSltmOecL1HR2rQ99+1bpoGw+QiozKpGH6t+ezwNaZi4Iipgsoyg6d+/HszyfFO9YUM3d/ArHGmRokSyGOvmof6FNfOBmH/uZ8QUkDs/P7202kwMw19Lw/lbiqx7zHYltVptcExVR3EhytwY/s6zG+DxvBVT1F80sW5iyTv4idQBBoJL4DbKvM4leNMDjmdldfqdfATb6rZk2mEjGa1Wc5/pLlTuRQ1cy3m56psprnOQyGg0CKZ+C4/NaTzzk48k3Fpei70NG4PQZL7gUXXTdZtKmDmoQpKi15CE9MyPIY8mz0udli2ay29RbNlkE7T45OomQ+oCzljX0kdwDzIJ2QhhHMhd8C1DBDpgLbskZwwP7Wmpux0XyYD2fAU3msHY6b3IGcutX9xDzafI22hTaWgU+NwQy9Ecv2DWbR+rcxRS4bygZn5On/+P8m3GreIpRk7Avwr42ROgk5idwU1/hJ6ofnbarFvTWW1Je6F+eAnJeCYSwijJ6d/eYkMls0AW5JiWvidspARnGg7Z+Bwyj+fv0GFbqYxB5+05nB6B7bOCMXMARI/9wo3LxikG5RxqDgQX5+IGxBc2Ef9/iOZiddbdZrSqeI09kdXSXsMD3VEqSAobM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32d8d4a8-cf7e-48bd-657a-08dbca1fda6e X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 06:03:56.2672 (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: MZfc+nsdPNa6Fh6EJ4kbus1N/SHkMyOb4Z9txQmmnPYdouhGn7Bt/fjDrpg3dLfbxPuI3NBiLviULcpTqBYEbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_230359_750008_B4F55B84 X-CRM114-Status: GOOD ( 10.76 ) 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 --- 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 Wed Oct 11 06:08:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13416584 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 4A558CD98F3 for ; Wed, 11 Oct 2023 06:04:33 +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=hUqlNqrYGUeGTG bwn96D8vK8BZhgQbCZdR9ukaAdwsZo0PkkUsVyJHxdr0b4ZJ3nLbAjVo5rk8GvgXgNYJHmiTJ6rhe 1IBpuYJ1+zNCj9DBM3iWACvN3NqTVSDL4JldlNCUtWznPhWceB6oX5TWlXO/hhuGE7O/WQbgwZrog iWcVABF9sMBIHaQ9/kkTlcTxA7Py4GSjPrb2fkb4WNaqFqOkJ5zsU+zyd3PAHD9EdsIrgW7DxC1+a bZAsrtLV+kcsoPr5uzBFVlu0WYG6OjqWQbe+r19+Rk9UvxLxoAWybC3mxLguzA/DEMYgFMs0I70Hn Rna6MTUcZFD2wtt7nieQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqSKF-00EtKq-20; Wed, 11 Oct 2023 06:04:07 +0000 Received: from mail-am6eur05on2060c.outbound.protection.outlook.com ([2a01:111:f400:7e1b::60c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqSKC-00EtHv-0S for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 06:04:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jlfw2y/7A7drmEP7UXmrWe+oWjLhhZ5rEk2dughsff8CEgbC0j0Ht1dKWreovm8i+DiS1QdfYE4SBURaC/i//p03dZVLqmRvlVYoaE8hggzAWJurFnHzCY8aZ1oC47qXJ9V6N11gNYiRWU76BKFb3hwn3rMW7eYBspgI8T4RT37DR+7b7PZteUE3uUfCIU5CBKnFfaAEYlyWKqWxgHceq/Lj7DOKufgYg2rBpRPZAV4vTXxHI8gyUIBpzG5F07/B5TJA9VIKlywWl05WVswXhya6VxediTcs2o6M5DVRnQm+EsqUAXv0GF5IYSoxoBWfHTFJ408pAs03OTU8XfiOUw== 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=e6Le2lrc1pTXcHcBzko6QFdhS+LgXAURFs0POt88KgBHsc0Zg+udNKI3wx19JG1n+UBowkek1fDNto7n5P6+5WQYe7qAPZhD+E2fbY1IWIzkZJ9iEm+EeGopqeuzKLvIKM0fwI1PWoVjzCIFTglbEBj+6KqQeng2iGkyUUFrkTkjXjunJ9L/Ny4TimE/TJTFXualTNV7YDx2WNSXBF/jlJoVqn2dzZhxS/q0zU6M61XH6yBYS+bhdUtkxoZxIhJK0W5MNm13+zAkcNbM1oNrs7miC+wdqi8lfHPeu3S8lLLJQT1pMTWbDkQ/0NBHYmStvdNC6NfzddRQ8waM4m5wvg== 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=OdHGZ8FmGYX1G5LEB2Upc3IxNC268VpaKIzKPB0o2d61PkZWiFc+AIywiXnsUUIG7S0tGsHzuSYGGsSoftB+srqMYliXmr959BMjBq+LbjXKiiNDKXs73TzWMBgIlqjbNB0KpILCQMmG35/Zre1W9DMF2xhLYY8orH++M6hfPdI= 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 AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 11 Oct 2023 06:04:01 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::f4f8:a4d6:fe5a:3e1%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 06:04: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 v2 5/5] arm64: dts: imx8dxl-ss-ddr: change ddr_pmu0 compatible Date: Wed, 11 Oct 2023 14:08:38 +0800 Message-Id: <20231011060838.3413621-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011060838.3413621-1-xu.yang_2@nxp.com> References: <20231011060838.3413621-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|AS8PR04MB9080:EE_ X-MS-Office365-Filtering-Correlation-Id: 26a92ef7-24aa-4c4d-ac86-08dbca1fdd4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4yaQ97RMZv1d5nZQi91bFRFHsyC3/ojIU7Rv0gOD1VaA2vwxIqxXTScowTYwQtyJlP1x7WN6PhOMEdPw5F3QTGFGGjHI1z8+PzcGh5zHwpPvFdZKVvJuU6Z1qwxzu+GfxuPVFtp0PxqEESHkPSQmfdgTKt4fp6/W19uvwiy535ZTcNEaHUK9+JVm184+8x5gz5blT1zcbiNLoViKDdHCettoVtul0jXJp1yupNM87ErCiEsgr1pRSF/dbcMpJBqPBgm3BT7fTrur4sLnYBqo1rBrCfoqkYWj6pPuQ/HTIdV756yDaKURzdsXQ3OOlWYi9i4rRH3bgdh+pxcctVkLX1ggvxUp9HJuiQJ5qUChEB9yaOdvG/RhH44RFG4s071M9OOye6h9pV5N8zoc5oW4YT7UqX3V9TvUcFcG+l6sTvuYENGNXV66Lc0LYgYO4/xUXoos5KGuqyD1b9wfAaLOF9LECdFbvMzzitpzxJelkihZwa4vL4WPn4SvOTA6v2Bl6JsMigSKXceYGPoykK7HB/G62iRXv7pjLmAa9mtIhoc0k7n10aVhvZMAPV2BuQJ6gt6poO4zSP1Qki4ROGlG9PRDgNwmjfRGPzaQNdz5w84mBUasdjYSTONz9OsOLR6AywDimj96Od60i7ogqPPGkw== 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)(39860400002)(346002)(396003)(136003)(376002)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(83380400001)(2616005)(1076003)(26005)(316002)(4744005)(41300700001)(66946007)(66476007)(7416002)(5660300002)(52116002)(38350700002)(66556008)(4326008)(8676002)(8936002)(2906002)(38100700002)(36756003)(86362001)(6666004)(6512007)(6486002)(6506007)(478600001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oCeUiUHDRd4H8beF+MziDLtoDFwfLgSy9qcE25DWIxE16tAbxWJEU+UA+oxtjYqK2XZQelUbQMxFd8ZUnDe8LP8HiJVMvCr9cjKpsinsTbonXXzuNpIEJi0+yY8CxGuq6+cwLz24TMXAic4j+KYYPTsVusvMdVFQJj/XATWoEYCjfnTqMLh7z1W+ulMu4VfgSv5LukacNc4xy93/SAc8RpvU4V7G2sNr4tpIvpB87Atn59VvPlSRsPDu0Ubd4S36csG7KlMFsjFB5Ny2u3pwx29JVLyhDF8ZyJ4jHA/7qPeRwwo+2SxAR8FA2GZTqExKj8+b3PDqBwIQYM/SpZAKxFpDgg5FMdYfctPMIgoSksgeSsx1XPo/yWtYj7n54qkQAL3hNvnwVAlCdOnThU9uvjFk92VYCqqINpG/wQvCRkmICKFkia2az1kPAv0yoAZLxzZ/oYMeEiM8qF8+anKXN7ned+l8IUAVcq/sonvtdn+AmK39Ds3Y8W+z/zGh09+pV3nlGuvfiabcurBCQz4+k0RW5WVoRvYk4qVWURwlyYzql4vu6lKhxjupHsJm03zjAlI8W/T7t35C8pLBysa8J7xcI7B4obslOBGnqHlIRxVPrQnyZptxhVVQtAEOA5O7OOmC6s9PQFFqmsxg/A9uT+OaWXcL2VMIkttvrzCjGHd04yjs90gcVddL1uJK8cl1EMi0ekWAGNAz33kz/X299VcMqzrM3NVvIeFW4tlG7wRTixlbGYslISpO11CbvqY2W5wpG1yZU9NJKbj/O5IvYUWKajAo56r8bhQ3PYQrMaiTrywy6koo9yNuszeWUHMAGFbyxxQS0UXOqi27lI07Yu2KzQ5NSA/m9WGEk/0TW9fXrDSQf7etrYn+62hLkiD5CjeFNSgd15GkTbKhzOjMkD+ktBjq/I2MHKjZ+MhShWHRty8WCGhDH+JA6CAGbNX8Fyx4jm3JhMby7N1zTZSgr+A40Rm4J3qmQDvfEny6BTnt4ORflybH7ONx7m/t+AMwE8NOlNRXg4v4dwuiQ9T0SIOMsofRZaDm0QDcQckjs/E8erwsZhzTFn1sQK9hcGalPI2piNCd3T6IKR1Kz80Xkkbi+OwOmQbjmJrhq/n0YQuYpR3mjuUeE9hojofT435uydPYk+DwSxDrkuGOMIrePvP9SiMNIIaENrlPEZxO9F6ay9rguA7W4HGY7uC9T+rMWXA3/Bz5/+/IWqUZ8SUlqF9/Uc4OL58loYmfmrFgf9iTxcscgIcf8KkoNexNm68YZo7wo+hupwWSXY0q4HVhS8uddzkB4sieptSRFcqV/JfkGrztRkpdW2bwErf5XxQ0MnG3E2VGDnlLWqQ8w+niQM9yEEfA4X+L1kWvBPgaskfm0y4LA+2NkDzs0j8k3J7GqMbFadFa8+vO9K9/B1Ud+CAAEprnkhYGWYoZ9BxYDBHNM2sifyF9usVKaHf+q8fBiReDi9CStVaINP8GLQGKoPntvN4wTCLgMJ2Fg4a8fgA2jOBANy+MBv4rAi7LsuCxQHD+xnvceToi9u+NBVFTH+rm15Ks/qg3ZbfgcWeWVbQM4upwg5lkAijkSuBK6+q9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26a92ef7-24aa-4c4d-ac86-08dbca1fdd4c X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 06:04:01.1765 (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: NCwx5jjmNT8ADd+HzNxRcUDVRmvuUascIwHI9lp4sUO23y0fcIaPOScK6kGBmgkBwZUbYmKIFgtGdJXgYWJGCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_230404_184622_B7315FB8 X-CRM114-Status: GOOD ( 11.93 ) 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 = ; };