Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30325376rwd; Thu, 6 Jul 2023 04:26:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHfMcn0MWsJFfYHVwTV61ERWegYCYeaZfWykBFh0N3dKGRwfTv/+Q4JtTk4u/9VuniSIBJY X-Received: by 2002:a05:6830:1e5b:b0:6b2:940b:dcf2 with SMTP id e27-20020a0568301e5b00b006b2940bdcf2mr1745801otj.24.1688642781607; Thu, 06 Jul 2023 04:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688642781; cv=none; d=google.com; s=arc-20160816; b=rKfv586K2wQk26H9d83a1jhlBC8RdCTrag/SD7FIyatvJ/lAj1S+MreH7d9p+AeZaG js0e1u8lMXDatWFlaX8HEYu/SXG66is1QQ9qRMu6sR1tbOxOrgnRSZJqtfi/hXeXz8yk If+s2d6qx1f33R8LqU+NjWwqznIVCcIiErDMwCBa0QMU4qI99edFhmF+pqB6Bq7ck4js X+h1aoljrX625I5xdBwsZCoT+4YM+LkB2d001Wu3gt8d2unsofR7Ma0XqnNvGlJ1DoTl EbHZTU08p7onSwuEqriHI3kuKwGlE4kxz+kM0DT5L7YCa5dVXmbc9pcOMY5LU/JfF67s MFwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=kaAafzwobREW8/0PIVmLO2B1Ne4XgUlaXq3C/n+Yf+k=; fh=PkHiYSpV2GDvrPf4v8xS/+rR/rHZe7lDCSVJk3O2fGo=; b=O4YPpTUL7dQkYKJ2ho8cE7se3ETgF/PVx14Bs5lBkjggR3jBNofZxFg4e1nvC7yhlH kQrRTKwfjr1k+5oEVdeurxP/Y+0N59ylNJzlHnuP/G5svggtzOUdkGajvQgUV34+j87d k62Hq0lxKqtiFAfLTuSL/6w/v2l97Wj09E8PkjHJOy+v50yNeRjRP/M7Ig92BIb4HQDt 1eYGr+yXvpYZTpHc5WJNxtqJBmzMyluf8DGGqp3Q0lsLIxZ1HOMOuKmp3w40IYJefe25 TotW26f98I/AkJyliXaXVwdwRJjA7e9H2AzibyDoT4UXpI1byTH2MOIstK0/XziwWlL2 Llbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6388c2000000b005533c53f5cesi1240290pgd.27.2023.07.06.04.25.54; Thu, 06 Jul 2023 04:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232483AbjGFLGd (ORCPT + 99 others); Thu, 6 Jul 2023 07:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbjGFLGb (ORCPT ); Thu, 6 Jul 2023 07:06:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F882DC; Thu, 6 Jul 2023 04:06:30 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38B3B1480; Thu, 6 Jul 2023 04:07:12 -0700 (PDT) Received: from [10.57.27.160] (unknown [10.57.27.160]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C21363F663; Thu, 6 Jul 2023 04:06:26 -0700 (PDT) Message-ID: <49ef52b7-0269-898c-7cc2-096f2f1037fc@arm.com> Date: Thu, 6 Jul 2023 12:06:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 1/1] arm64: dts: imx8mp: remove arm, primecell-periphid at etm nodes Content-Language: en-GB To: Lucas Stach , Alexander Stein , suzuki.poulose@arm.com, coresight@lists.linaro.org, imx@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marek Vasut , Peng Fan , Adam Ford , Laurent Pinchart , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , Frank Li References: <20230705205954.4159781-1-Frank.Li@nxp.com> <9405224.NyiUUSuA9g@steina-w> <0125c54fd1617f3f945bc3f4bbef5b914b701c24.camel@pengutronix.de> From: Robin Murphy In-Reply-To: <0125c54fd1617f3f945bc3f4bbef5b914b701c24.camel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-07-06 09:23, Lucas Stach wrote: > Hi Alexander, > > Am Donnerstag, dem 06.07.2023 um 07:06 +0200 schrieb Alexander Stein: >> Hi Frank, >> >> Am Mittwoch, 5. Juli 2023, 22:59:53 CEST schrieb Frank Li: >>> The reg size of etm nodes is incorrectly set to 64k instead of 4k. This >>> leads to a crash when calling amba_read_periphid(). After corrected reg >>> size, amba_read_periphid() retrieve the correct periphid. >>> arm,primecell-periphid were removed from the etm nodes. >> >> So this means the reference manual is wrong here? It clearly states the size >> is 64kiB. Reference Manual i.MX8MP Rev 1. 06/2021 >> On a side note: Is imx8mq affected by this as well? The DAP memory table lists >> similar sizes in the RM . >> > Note that the 64K MMIO space per device is really an alignment thing. > It's a recommendation from ARM to allow individual device MMIO regions > to be mapped on kernels with 64K page size. Most of the time the real > MMIO space occupied by the device is actually much smaller than 64K. Indeed, it's quite common for TRM memory maps to be written in terms of the interconnect configuration, i.e. from the point of view of the interconnect itself, that whole range of address space is assigned to that peripheral, and it may even be true that the entire range is routed to the port where that peripheral is connected. However what's of more interest for DT is how much of that range the peripheral itself actually decodes. Robin. > > Regards, > Lucas > >> Best regards, >> Alexander >> >>> Signed-off-by: Frank Li >>> --- >>> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 ++++-------- >>> 1 file changed, 4 insertions(+), 8 deletions(-) >>> >>> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index >>> cc406bb338fe..e0ca82ff6f15 100644 >>> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> @@ -306,8 +306,7 @@ soc: soc@0 { >>> >>> etm0: etm@28440000 { >>> compatible = "arm,coresight-etm4x", >> "arm,primecell"; >>> - reg = <0x28440000 0x10000>; >>> - arm,primecell-periphid = <0xbb95d>; >>> + reg = <0x28440000 0x1000>; >>> cpu = <&A53_0>; >>> clocks = <&clk IMX8MP_CLK_MAIN_AXI>; >>> clock-names = "apb_pclk"; >>> @@ -323,8 +322,7 @@ etm0_out_port: endpoint { >>> >>> etm1: etm@28540000 { >>> compatible = "arm,coresight-etm4x", >> "arm,primecell"; >>> - reg = <0x28540000 0x10000>; >>> - arm,primecell-periphid = <0xbb95d>; >>> + reg = <0x28540000 0x1000>; >>> cpu = <&A53_1>; >>> clocks = <&clk IMX8MP_CLK_MAIN_AXI>; >>> clock-names = "apb_pclk"; >>> @@ -340,8 +338,7 @@ etm1_out_port: endpoint { >>> >>> etm2: etm@28640000 { >>> compatible = "arm,coresight-etm4x", >> "arm,primecell"; >>> - reg = <0x28640000 0x10000>; >>> - arm,primecell-periphid = <0xbb95d>; >>> + reg = <0x28640000 0x1000>; >>> cpu = <&A53_2>; >>> clocks = <&clk IMX8MP_CLK_MAIN_AXI>; >>> clock-names = "apb_pclk"; >>> @@ -357,8 +354,7 @@ etm2_out_port: endpoint { >>> >>> etm3: etm@28740000 { >>> compatible = "arm,coresight-etm4x", >> "arm,primecell"; >>> - reg = <0x28740000 0x10000>; >>> - arm,primecell-periphid = <0xbb95d>; >>> + reg = <0x28740000 0x1000>; >>> cpu = <&A53_3>; >>> clocks = <&clk IMX8MP_CLK_MAIN_AXI>; >>> clock-names = "apb_pclk"; >> >> > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel