Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30201504rwd; Thu, 6 Jul 2023 02:20:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGCCNsUi+yduDGNWSc2o0y7YT9q/zyCfDrBywHXyoLZDAGTaX8GZI8ZzVwl07W+w8OAobu3 X-Received: by 2002:a05:6808:1448:b0:39e:a606:544e with SMTP id x8-20020a056808144800b0039ea606544emr1321709oiv.32.1688635244318; Thu, 06 Jul 2023 02:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635244; cv=none; d=google.com; s=arc-20160816; b=fpaquDHHoAXFYvndP7pbzddo6VdapXZ/+ZtVwnV+FSSgQQwcZZUEAQDTkYbKxxwakk GrT2ZdHZkmXtTHW1u2T5OajwrwjuCiXyfS1kFkLGGeA9ivedAzFwaYKiAzhC6RUa7xe6 NBegbwyronFzjfVd43NiCCLZHl0mB4CIJ4OhINhNP6+Zy9eNoa+xfdngecqy6wZpeddn X6U96VlqInfbvhXKuslllFAZxPL8qfRfi5Joq+qimyT26aMU3SbgSuTg7M/+OUEN7tQE 3JEJsT8gvugs2jGh6HZ6U/gW8SKBIOpsF29m8wdZbMTrXo4IpZn1EiXoNmupXVDFXS26 juJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=jkjvrav2C1M+NrjrYG6P8UkdmV5n3lri+JAlCP1lXcE=; fh=nSjYokZaPcvEpkUm3Rglo1n03zSm/0iwbNTI6EDxo70=; b=nJ1M7+bA1RfmJCMT+xiPARt0mZ7fv2TZnQnwfHtCkOt60TH+Z4r2KimFPNMOCG1wl9 VKNw6/drWF9FyRsKU2YapO8dMCEkHUyI0NFzqp93fIt20Xzjka6tDbW5UqbrIgoVg0Q9 Kd1sgeYmwjVo8QFE/gObcLzCtmt62VfAyrRIrlN71fmCGPMcuayI6/AW+s6zaqOzALtJ nF48msPGJjioShXsY+D2WLoX/qN6gm8RtzwzjAaS2FiMYzikB3RWPEn7y2LeD88bzgjD 5W86RGFBrclOm8WYi3vqKfm2hcCSDlrJjD1HK7eOMnfm/zCl0Yoir42QFTM7u5w3RClv l4fQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5-20020a056a00134500b006824e0fdcb0si1142781pfu.98.2023.07.06.02.20.28; Thu, 06 Jul 2023 02:20:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjGFIYS convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Jul 2023 04:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjGFIYR (ORCPT ); Thu, 6 Jul 2023 04:24:17 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 397CE130 for ; Thu, 6 Jul 2023 01:24:16 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qHKHH-0004UP-82; Thu, 06 Jul 2023 10:23:51 +0200 Message-ID: <0125c54fd1617f3f945bc3f4bbef5b914b701c24.camel@pengutronix.de> Subject: Re: [PATCH 1/1] arm64: dts: imx8mp: remove arm, primecell-periphid at etm nodes From: Lucas Stach To: 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 Date: Thu, 06 Jul 2023 10:23:48 +0200 In-Reply-To: <9405224.NyiUUSuA9g@steina-w> References: <20230705205954.4159781-1-Frank.Li@nxp.com> <9405224.NyiUUSuA9g@steina-w> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. 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"; > >