| Message ID | 20250515131246.784206-4-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBWGQS7AQMGQEJOWGK4A@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com
[209.85.221.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 782483F97E
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 15:12:58 +0200 (CEST)
Received: by mail-wr1-f71.google.com with SMTP id
ffacd0b85a97d-3a35989e5b2sf332093f8f.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 06:12:58 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1747314778; cv=pass;
d=google.com; s=arc-20240605;
b=bnZNbRic53m0pznOoCCShJ+Gv//vtM7WDUajN3rypVo0z61AdmKKl7VZWuNNXXhuAC
syFnIQFU3EtMYJ7P0K9YFHDCDMpLYVfhkdl34IncsKQpqYLaCEfo07JfQaGtf8IBMHUU
Uz5xVjwbQdUHl3RlvvuZw9Jcq81xxYVZty+RMvJu4CUMh4b5+aWrvijDRgq41FLaLqBG
KUqtYrMKmg8sd0Kal/XHVo9RP1hlgWbdGnDQHyB9C4HoBkEKVRoHLURx0vAOnCchXBlE
oHPYMCnYw2VZB0lon92EM0N07wUlIuDjlZ9IilbButUz68EkY0NydVjCk4nnm6zjee3o
EmEw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=blBuXJGOI0VT0ldNuxhVoWFRHCYfoKFpC5CrMWiUADQ=;
fh=2x8nAE1fz3suFy6A3tYBXmWeSWDK853xY/+rwY/xQ3M=;
b=UAEM4eJ4hyYnOXZq0efJaao9VLe9M+qTDmm2Xb8J8SDMl/suV/E8zREDFTW5lV7Akx
No3lNdD6P9zeScjqNOVWSWSRtmybcLuiLEN6Y49ZVh5jJ8S2qtextGyaDmoN+EcpploB
d5S+W89ZiCX88IOG5q9Tob86HxGbk6u3BTiBqUC7Q/XEjXGSwarTJL4POcWTCAc4Gx19
DOJLnRZdjZgr9rQzX5A0Bwhs16ECSXToEvwl+/66tyy1QUVViJDBGdzGlNRKREQdydXr
U/r6G+3i3gsRyGEuS2xVVninPqJm1rxuHbxNURbR1ldG9VM/5mSxk08QqhUgG+iVx3gZ
+lVQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="QIgPuV/A";
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1747314778; x=1747919578;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=blBuXJGOI0VT0ldNuxhVoWFRHCYfoKFpC5CrMWiUADQ=;
b=rNiFPUV4tlAjLci8diEz7shjlBumVvQCRW9hIGdNy+5bzoiNZG063VMjvrVVuypyEn
Zt/9KZqNlBB3Dq0iEsmBNW6gRALfHw85w6dfSRl9g0B3Q+B4CwTMjERxIHG/PgMJnUyd
0qMZfwJIfyq9J4O8abDiFUutG/QHYq6nSgbzA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1747314778; x=1747919578;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=blBuXJGOI0VT0ldNuxhVoWFRHCYfoKFpC5CrMWiUADQ=;
b=oFVGtbghxlWqiQ3GvY/Zjw8E1+2/EYD6RrbLLEOXw/lBGSX7Rh53zHIannrEysN1K6
4O1A0olCGfF+SGsLWmIcJbt3cTynvfI5z2wdhs6I4TB7nMCCRd5HsL/TaNWfwKAdh4ZL
ZsRvLa5yLBEQToDMCMgj4bH+VRB1oSYws/dHlC9O2VM/WPxGThOrHsdJ2MN6p44wf84Y
ncUpC/JnInbBpDN2fFF1HMJ5vYX7g8B7n1+eGJtf/4J8szALdLoUzGHisFoznJc4L5bV
n3SSk9AvVGDD6VB8lf0n0cqvPInawuo1z0wypIdqjIgbfuyhyY94S7PKVala8qYalH7b
sCZA==
X-Forwarded-Encrypted: i=2;
AJvYcCWttuN/XxDYIiO+m/Sboo5UemH03BZT6BEFsmnS9zn6jXBGxM48DhQh9ffFjHHXNlpmeSt3BTKZ/kOJdlnV@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwV98S9N9KuU4659ujiq192j/Lv1+1sTJWaAk69k2HpMmmhQLPg
yUvBKqeWN66UxYA+3xK1mymMfH8oRLGFgHZkhGrLRB3zxz8t3iwsqslZUKfpoii4dg==
X-Google-Smtp-Source:
AGHT+IFzi3k6gJv7bS71TRw/aRJOKIL899mAgKFtoTejVSr5NM6/T7mzbbOkJEE+0+k9fBTQMEJwbA==
X-Received: by 2002:a05:6000:401f:b0:3a3:5c05:69c with SMTP id
ffacd0b85a97d-3a35c0507f3mr771233f8f.45.1747314777301;
Thu, 15 May 2025 06:12:57 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AVT/gBGXDmhnjMQuKyegJeT8FulQ/ZkWZtHLDLKDigkMkbNoxQ==
Received: by 2002:a05:6000:401e:b0:3a0:92c4:91cc with SMTP id
ffacd0b85a97d-3a351352188ls460280f8f.0.-pod-prod-09-eu; Thu, 15 May 2025
06:12:55 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCXF/H0gAKQHe8fl58+JdpR5fidal77Xv/E5QR6ttIFbDAMmFolW76lPTYuPWTp++e4K5D+2ICBG1HKr9f5x@amarulasolutions.com
X-Received: by 2002:a05:6000:40cc:b0:3a0:b1f7:c1da with SMTP id
ffacd0b85a97d-3a349922585mr7319391f8f.46.1747314775094;
Thu, 15 May 2025 06:12:55 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1747314775; cv=none;
d=google.com; s=arc-20240605;
b=PBaH47vFvY0Gf2bJAfsQaSAMLM8na3jfnP4W6pMmS0Llk+MeUayf/zLXAZR74hjDiQ
tUH7j6eXBuo5fscOnT8QN/TRKHRQ9bi5Y9OIZOJeVC+HsCKB6z6wcNGyH8DZXYfv08Rq
JVBv3yzx+fxuAlpNRbZp9KbP29qQnG8Djori0XWBlDGgdYQRjiH+cvoBilQTSH1CRK/k
wB6jEMg4Ct5nhuYYFdqtD3n746Okjwdy2URdx0uNbPHf4wDaiQhni9i4U3v2T9QreH2y
SVunHCj/+K+l4JX1KT104NzGDYxYNWNKnuKQHGS2KQKDH2vw4js1NoFOyTK2Htq5hW23
XVqQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=g0PUck3BMWPfWUBq2621uRDOXcGLVjyN47c/ykxnPHc=;
fh=9jrrqHy95XXdZ6HtBqDavf45flYroZwEOpG3gPARKAk=;
b=h4GnzroHyjk69V5ONOXzU0/CsB0SbDvKqjKw9tliE32rwnEUUCvvK1cwKVe7QUfBNt
Pf7mQ/GYWEDFwBgzR79eF13JMnt6Hs5cK8y4KmaHGWvOgTpSRtBSoGpl6pVaHArd4YwW
SWLcGI/M6QIcDGmPhGk3IlnoysGdBZM9M5m3JNf/u8ZFuahpD9TnCtXHIauFsaVbQa8i
KyL1B07q408nKEr1AtL0QhlX+NDMpLMsTaSWp1FBlOATvX1302lCsl0/lV6fmDqIqFOx
B/Y2MZULBdgfHfwIWK0b4lJ08t/MpM+4zFDqfXvvuSYGH3l2+3VC2n72Ds0tS0L9oOnn
5Y9g==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="QIgPuV/A";
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-3a1f5aba755sor7158117f8f.4.2025.05.15.06.12.55
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 15 May 2025 06:12:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCWjj6ffvY//OK/UngMoLm0DRqShkjB9alvlcG51Wo2ptsmVzmCtkePoKe5MkCAoua8D7V8tV3IKV8GGbwMW@amarulasolutions.com
X-Gm-Gg: ASbGncvG4AIBUQNQPYLVHhj5JkuwBU3YSxWuFzo7JhKQGRseK28zO5m3Q+vb0vA3356
nneCpW1lkKU7b4hPbcW20V2VsBvOsx9d42sQw3Ilq8n45BUDt3+R7RulzY1WEtHtwaWEawPvMcV
I84ScEc8ZDMXgl7cH9ilfsA4OeEdyl1hPQVx2jiYEEFnu60Hab0PWe8II8hzHsqSP9Nrnwst+GI
HqxaLvwWqySHwuPERuVG66zFuIbTejl2FeF2YXqzLwSB1GOBaMh7Zfu9JvNaOE8K7fvejJxXakE
ek/hit8iH8NxydRyReAQhCEFAVPXSVX72PdavEdIAESHAaH4ShIyjQyKOrWZ9KML0Zsmt6tGDKp
e8T1EV6uTPZXU0lYqP8mIlAdpTnAB0RlQodvryHILWj8=
X-Received: by 2002:a05:6000:430d:b0:3a3:40d2:8499 with SMTP id
ffacd0b85a97d-3a3499516dbmr5987824f8f.58.1747314774653;
Thu, 15 May 2025 06:12:54 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.client.m3-hotspots.de
([46.189.28.43])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-442f39ef811sm65516825e9.35.2025.05.15.06.12.53
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 15 May 2025 06:12:54 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: michael@amarulasolutions.com,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Adam Ford <aford173@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Peng Fan <peng.fan@nxp.com>,
Stefano Babic <sbabic@nabladev.com>,
Tom Rini <trini@konsulko.com>
Subject: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2
Date: Thu, 15 May 2025 15:12:42 +0200
Message-ID: <20250515131246.784206-4-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20250515131246.784206-1-dario.binacchi@amarulasolutions.com>
References: <20250515131246.784206-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b="QIgPuV/A";
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Restore imx8mn_bsh_smm_s2 properly booting
|
|
Commit Message
Dario Binacchi
May 15, 2025, 1:12 p.m. UTC
The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks")
breaks the booting of the BSH SMM S2 board.
Restore proper booting of the board even in case of failure of either
clk_get_bulk() or clk_enable_bulk().
Fixes: dda454e933c6 ("serial: mxc: Support bulk enabling clocks")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/serial/serial_mxc.c | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
Comments
On Thu, May 15, 2025 at 10:12 AM Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks") > breaks the booting of the BSH SMM S2 board. > Restore proper booting of the board even in case of failure of either > clk_get_bulk() or clk_enable_bulk(). We need a better understanding of why the boot fails. Does the failure come from clk_get_bulk() or clk_enable_bulk()? Please investigate. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Fabio On Thu, May 15, 2025 at 9:45 PM Fabio Estevam <festevam@gmail.com> wrote: > On Thu, May 15, 2025 at 10:12 AM Dario Binacchi > <dario.binacchi@amarulasolutions.com> wrote: > > > > The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks") > > breaks the booting of the BSH SMM S2 board. > > Restore proper booting of the board even in case of failure of either > > clk_get_bulk() or clk_enable_bulk(). > > We need a better understanding of why the boot fails. > > The patch keeps the same functionality for the working board and fixes the no booting one. Agree that we need to understand but even we need working boards > Does the failure come from clk_get_bulk() or clk_enable_bulk()? > The serial is not up at that time so we need to buffer the error and print later. Right now we are working on other fixes Michael > > Please investigate. >
Hi Michael, On Thu, May 15, 2025 at 5:12 PM Michael Nazzareno Trimarchi <michael@amarulasolutions.com> wrote: > The serial is not up at that time so we need to buffer the error and print later. Right now > we are working on other fixes Please share more details about the boot problem on the imx8mn_bsh_smm_s2 board. Does a hang occur at SPL? Do you get anything in the console? The mx8mn_bsh_smm_s2 board uses UART4 as the console. The other i.MX8MN boards where we tested this patch used UART2. UART4 does not have U-Boot/Linux permission by default. TF-A enables the other UART port permission access at: https://github.com/ARM-software/arm-trusted-firmware/blob/v2.12/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c#L124-L143 Is the UART clock access falling in your case? Is clk_enable_bulk() the one that fails? To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Fabio On Sat, May 17, 2025 at 9:56 PM Fabio Estevam <festevam@gmail.com> wrote: > > Hi Michael, > > On Thu, May 15, 2025 at 5:12 PM Michael Nazzareno Trimarchi > <michael@amarulasolutions.com> wrote: > > > The serial is not up at that time so we need to buffer the error and print later. Right now > > we are working on other fixes > > Please share more details about the boot problem on the imx8mn_bsh_smm_s2 board. > > Does a hang occur at SPL? Do you get anything in the console? > > The mx8mn_bsh_smm_s2 board uses UART4 as the console. > > The other i.MX8MN boards where we tested this patch used UART2. > Can you please point me to an example of a tested board? > UART4 does not have U-Boot/Linux permission by default. > TF-A is not in the game, the board is working fine. > TF-A enables the other UART port permission access at: > https://github.com/ARM-software/arm-trusted-firmware/blob/v2.12/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c#L124-L143 I think we have upstream the fix there. Anyway... > > Is the UART clock access falling in your case? > If the uart is failing you don't have the console > Is clk_enable_bulk() the one that fails? I think that something connected to -u-boot.dtsi if you have tested with some imx8mn Michael
On Sat, May 17, 2025 at 5:15 PM Michael Nazzareno Trimarchi
<michael@amarulasolutions.com> wrote:
> Can you please point me to an example of a tested board?
I have just tested the top-of-tree U-Boot on an imx8mn evk board:
U-Boot SPL 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300)
WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout)
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE: Do not release JR0 to NS as it can be used by HAB
NOTICE: BL31: v2.12.0(release):v2.12.0
NOTICE: BL31: Built : 17:16:49, May 17 2025
U-Boot 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300)
CPU: NXP i.MX8MNano Quad Rev1.0 A53 at 1200 MHz
CPU: Consumer temperature grade (0C to 95C) at 32C
Model: NXP i.MX8MNano DDR4 EVK board
DRAM: 2 GiB
Core: 180 devices, 23 uclasses, devicetree: separate
WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout)
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Reading from MMC(1)... OK
In: serial@30890000
Out: serial@30890000
Err: serial@30890000
SEC0: RNG instantiated
Net: eth0: ethernet@30be0000
Hit any key to stop autoboot: 0
u-boot=>
Make sure you are using the most recent U-Boot. We had some imx8m
clock drive hickups after 2025.04.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi On Sat, May 17, 2025 at 10:28 PM Fabio Estevam <festevam@gmail.com> wrote: > > On Sat, May 17, 2025 at 5:15 PM Michael Nazzareno Trimarchi > <michael@amarulasolutions.com> wrote: > > > Can you please point me to an example of a tested board? > > I have just tested the top-of-tree U-Boot on an imx8mn evk board: > > U-Boot SPL 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300) > WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) > SEC0: RNG instantiated > Normal Boot > Trying to boot from BOOTROM > Boot Stage: Primary boot > image offset 0x8000, pagesize 0x200, ivt offset 0x0 > NOTICE: Do not release JR0 to NS as it can be used by HAB > NOTICE: BL31: v2.12.0(release):v2.12.0 > NOTICE: BL31: Built : 17:16:49, May 17 2025 > I was on master except this commit commit 128d997a8772cc174f38d529d8b25f90b3aa8ad8 Author: Jonas Karlman <jonas@kwiboo.se> Date: Sat May 10 15:32:01 2025 +0000 clk: Fix clk_set_parent() regression The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled while reparenting") add a call to clk_enable() for the parent clock. For clock drivers that do not implement the enable() ops, like most Rockchip clock drivers, this now cause the set_parent() ops to never be called when CLK_CCF=n (default for Rockchip). I can not try today but if you can, is this the commit that could break my boot? Michael > > U-Boot 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300) > > CPU: NXP i.MX8MNano Quad Rev1.0 A53 at 1200 MHz > CPU: Consumer temperature grade (0C to 95C) at 32C > Model: NXP i.MX8MNano DDR4 EVK board > DRAM: 2 GiB > Core: 180 devices, 23 uclasses, devicetree: separate > WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) > MMC: FSL_SDHC: 1, FSL_SDHC: 2 > Loading Environment from MMC... Reading from MMC(1)... OK > In: serial@30890000 > Out: serial@30890000 > Err: serial@30890000 > SEC0: RNG instantiated > Net: eth0: ethernet@30be0000 > Hit any key to stop autoboot: 0 > u-boot=> > > Make sure you are using the most recent U-Boot. We had some imx8m > clock drive hickups after 2025.04.
Hi Fabio On Sat, May 17, 2025 at 10:44 PM Michael Nazzareno Trimarchi <michael@amarulasolutions.com> wrote: > > Hi > > On Sat, May 17, 2025 at 10:28 PM Fabio Estevam <festevam@gmail.com> wrote: > > > > On Sat, May 17, 2025 at 5:15 PM Michael Nazzareno Trimarchi > > <michael@amarulasolutions.com> wrote: > > > > > Can you please point me to an example of a tested board? > > > > I have just tested the top-of-tree U-Boot on an imx8mn evk board: > > > > U-Boot SPL 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300) > > WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) > > SEC0: RNG instantiated > > Normal Boot > > Trying to boot from BOOTROM > > Boot Stage: Primary boot > > image offset 0x8000, pagesize 0x200, ivt offset 0x0 > > NOTICE: Do not release JR0 to NS as it can be used by HAB > > NOTICE: BL31: v2.12.0(release):v2.12.0 > > NOTICE: BL31: Built : 17:16:49, May 17 2025 > > > > I was on master except this commit > > commit 128d997a8772cc174f38d529d8b25f90b3aa8ad8 > Author: Jonas Karlman <jonas@kwiboo.se> > Date: Sat May 10 15:32:01 2025 +0000 > > clk: Fix clk_set_parent() regression > > The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled > while reparenting") add a call to clk_enable() for the parent clock. > > For clock drivers that do not implement the enable() ops, like most > Rockchip clock drivers, this now cause the set_parent() ops to never > be called when CLK_CCF=n (default for Rockchip). > > BTW is really needed now? git grep init_uart_clk board/freescale/imx8mn_evk/ board/freescale/imx8mn_evk/spl.c: init_uart_clk(1); Michael > I can not try today but if you can, is this the commit that could break my boot? > > Michael > > > > U-Boot 2025.07-rc2-00018-g126a88d49bca (May 17 2025 - 17:21:14 -0300) > > > > CPU: NXP i.MX8MNano Quad Rev1.0 A53 at 1200 MHz > > CPU: Consumer temperature grade (0C to 95C) at 32C > > Model: NXP i.MX8MNano DDR4 EVK board > > DRAM: 2 GiB > > Core: 180 devices, 23 uclasses, devicetree: separate > > WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) > > MMC: FSL_SDHC: 1, FSL_SDHC: 2 > > Loading Environment from MMC... Reading from MMC(1)... OK > > In: serial@30890000 > > Out: serial@30890000 > > Err: serial@30890000 > > SEC0: RNG instantiated > > Net: eth0: ethernet@30be0000 > > Hit any key to stop autoboot: 0 > > u-boot=> > > > > Make sure you are using the most recent U-Boot. We had some imx8m > > clock drive hickups after 2025.04. > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > michael@amarulasolutions.com > __________________________________ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > info@amarulasolutions.com > www.amarulasolutions.com
On Sat, May 17, 2025 at 5:46 PM Michael Nazzareno Trimarchi <michael@amarulasolutions.com> wrote: > > I was on master except this commit > > > > commit 128d997a8772cc174f38d529d8b25f90b3aa8ad8 > > Author: Jonas Karlman <jonas@kwiboo.se> > > Date: Sat May 10 15:32:01 2025 +0000 > > > > clk: Fix clk_set_parent() regression > > > > The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled > > while reparenting") add a call to clk_enable() for the parent clock. > > > > For clock drivers that do not implement the enable() ops, like most > > Rockchip clock drivers, this now cause the set_parent() ops to never > > be called when CLK_CCF=n (default for Rockchip). CLK_CCF=y in your case, so this does not help for you. > > BTW is really needed now? > > git grep init_uart_clk board/freescale/imx8mn_evk/ > board/freescale/imx8mn_evk/spl.c: init_uart_clk(1); This can be removed. I tested without this line, and it boots fine. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi On Sat, May 17, 2025 at 10:50 PM Fabio Estevam <festevam@gmail.com> wrote: > > On Sat, May 17, 2025 at 5:46 PM Michael Nazzareno Trimarchi > <michael@amarulasolutions.com> wrote: > > > > I was on master except this commit > > > > > > commit 128d997a8772cc174f38d529d8b25f90b3aa8ad8 > > > Author: Jonas Karlman <jonas@kwiboo.se> > > > Date: Sat May 10 15:32:01 2025 +0000 > > > > > > clk: Fix clk_set_parent() regression > > > > > > The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled > > > while reparenting") add a call to clk_enable() for the parent clock. > > > > > > For clock drivers that do not implement the enable() ops, like most > > > Rockchip clock drivers, this now cause the set_parent() ops to never > > > be called when CLK_CCF=n (default for Rockchip). > > CLK_CCF=y in your case, so this does not help for you. > > > > BTW is really needed now? > > > > git grep init_uart_clk board/freescale/imx8mn_evk/ > > board/freescale/imx8mn_evk/spl.c: init_uart_clk(1); > > This can be removed. I tested without this line, and it boots fine. Are you sending a patch? or I will send it Michael
On Sat, May 17, 2025 at 5:52 PM Michael Nazzareno Trimarchi
<michael@amarulasolutions.com> wrote:
> Are you sending a patch? or I will send it
Feel free to send it when you have a chance. Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 28f4435d01dd..b09a5fe0f7a4 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -310,22 +310,31 @@ int mxc_serial_setbrg(struct udevice *dev, int baudrate) return 0; } -static int mxc_serial_probe(struct udevice *dev) +#if CONFIG_IS_ENABLED(CLK_CCF) +static void mxc_serial_enable_clk_bulk(struct udevice *dev) { struct mxc_serial_plat *plat = dev_get_plat(dev); -#if CONFIG_IS_ENABLED(CLK_CCF) int ret; ret = clk_get_bulk(dev, &plat->clks); if (ret) - return ret; + return; - ret = clk_enable_bulk(&plat->clks); - if (ret) - return ret; + clk_enable_bulk(&plat->clks); +} +#else +static mxc_serial_enable_clk_bulk(struct udevice *dev) +{ +} #endif - _mxc_serial_init(plat->reg, plat->use_dte); +static int mxc_serial_probe(struct udevice *dev) +{ + struct mxc_serial_plat *plat = dev_get_plat(dev); + + mxc_serial_enable_clk_bulk(dev); + + _mxc_serial_init(plat->reg, plat->use_dte); return 0; }