| Message ID | 20250520085436.925901-5-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRB5UGWHAQMGQEZ3XV2YI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 014193F12A
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 20 May 2025 10:55:19 +0200 (CEST)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-43e9b0fd00csf27207325e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 20 May 2025 01:55:18 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1747731318; cv=pass;
d=google.com; s=arc-20240605;
b=GtY8vP5agwjnGBpOK/ipjGHKQ8oyKBhRcbmJq+32Xnf/zltr4Ys70TccQuCWlHu8ng
7kDEfv9+NY8yEHid/LhmSEpOpFwmdqMxoilZOxCyZbI3QO2GjHITPJ0oxGf8x3ncHWjk
AEJdpTDAta4B+Jb1OltdH6YLXyqpBPkTeUp6Ea5+og8nHC103iREg0b97+MWpQzPIDRp
ODoh7gPWwlZTay76s4dlxyqZjZwkpqW8/4N1IUsWtoIP2kbY8SWQZoqxcwNE+EHKwTlK
gMcO8bNWy6b4nPGTj87vez5TR0kCS+L8NIKsfMhnbCREPbpwvA02naTG7I3AWooKDRVt
xLXQ==
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=b4KDByCiYcHJdj3zKZQ1LdlRb46WSoZrZ99kPd2+7NU=;
fh=41ZkJPRpY0tht/UPeAW74FTRnCLLvMLVZdmyWKkK9Ts=;
b=ZoObaR1fMvMLV3heRyErTXtMemoKa59Kuf61T1S/iJEmzXWott6hCwFVKzdZr5M2HA
p+w2qmAvLgs6YDLrca//uH2KpmZBmosaM1cCfsKY0Dx8xUFtUhjgHLEQW32P0FPJ5F91
twkrXvHD3oPrxE0hb6YFZLt7qkCZL4CnpcS3yVuv1X8LhIuAll1hX3Nd1EG6jgmQc1AQ
iceBQ9jHrwN1tzHVWlRoWMCH3bfrmRPwNK4+1xKLEvkVYKfX/2H3BOzuCaI4zFqgtdqc
kex3kkmw3c8o1u5/AOlBO0l4YZemYq/TIPbKEuwYAchJChRcsfb1lS7X3A7VUKIYcydw
e2Ig==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=LZ7xlxjs;
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=1747731318; x=1748336118;
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=b4KDByCiYcHJdj3zKZQ1LdlRb46WSoZrZ99kPd2+7NU=;
b=Big0rrKjork6NKwe0GDp2lEsSo4zrNiS3B7BHHFdCC5CA9FhsAWrW2PnAcvi9UWEdz
vl9jGs7uz2Zh1VHZyQN4GjTnqwrQNhMZOsjuSS3GSbwlyHLsu3fB9SvgYgZgScP7ziHa
Hbr3i3B7k47eQTC3tpy3DhBhX3vUU0uf746BU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1747731318; x=1748336118;
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=b4KDByCiYcHJdj3zKZQ1LdlRb46WSoZrZ99kPd2+7NU=;
b=hKxtm8BbRP9KTnFU+hHbuhDrOW/UHBoLwiQjLPuSbTIvsS4fdX7Tfq9q44zujEVxKh
f77eehhv0HFr0pfvgH89TfOGX2eV5228IWpfTE9zlYVCpMV1rI1afAYHF66YKGDSh2nW
fLqda2r9MRWAR1RjSEaxVHrh+W6EJCV3ve4My9rAKytJ7ZnuKlrHmsq122qfly3xpNpL
Gbi+vLr+Np9GW4FLT0VcV7nxUKOkCOFzXpxXDg2xI3S3EyUpTvZiGsmXY8Z/H4m0Nzyt
7VscO1Fwy/y9ys8lRCMf4HaR+uJXJYl/lO8GPCMCIXtUf/Jg4XaU+NqQZpHQzQPXxQss
K0iw==
X-Forwarded-Encrypted: i=2;
AJvYcCX/h11mEgbdd4t9TG+EsnsC/Bu7g7qb0HLdOwqxSUlYXsdJZqsdY4FHk7JJPXKv0vK9OhKyI4OdwwunZ+bl@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yx4ylSZIXzc4m2iKyMzX6MTZATv1+dakwtL9/zr+AKDkqQXsrRG
VW7Ar3wZHLrmQNvrBvi56M2LAnil1HlDzP4rxSHWKZHXwXo4fn9DYnU7O9fbi60PfyRhPg==
X-Google-Smtp-Source:
AGHT+IH5ZKcWahiVX8K36maLUsBYWY5Ihv/f8N0oiKjznp7spaIlHaglTVBaKUDD8f8hl23pOx+big==
X-Received: by 2002:a05:600c:1c91:b0:43d:b33:679c with SMTP id
5b1f17b1804b1-442fd99418bmr151271365e9.14.1747731318638;
Tue, 20 May 2025 01:55:18 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AVT/gBGF1YI/OfOHY/0WFESNB7rm4rhXVCx8dTonV7jEq7JggQ==
Received: by 2002:a05:600c:6a90:b0:43c:e5d6:41de with SMTP id
5b1f17b1804b1-442f27ca1d1ls14091545e9.0.-pod-prod-00-eu-canary; Tue, 20 May
2025 01:55:16 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCWtVekf1ctU5mPXW0VGu1aI9QKwoHOmAw+AH3M2OAsDjB72ewzOZCMuu9TqYNHPzts7o1nZbqK+422Tr7kR@amarulasolutions.com
X-Received: by 2002:a05:600c:1f82:b0:441:bbe5:f562 with SMTP id
5b1f17b1804b1-442f8534e53mr191538485e9.16.1747731316415;
Tue, 20 May 2025 01:55:16 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1747731316; cv=none;
d=google.com; s=arc-20240605;
b=RbvUnXk42L/I2Jbg6cDXgWf18ub8Ih72Q3rA1eeVs0jf2Dmszfi3ScWicKr/0prF+w
jVeAbhTVyNfbzkLheNFBJAvdDwM539us00tBfJcFQxul6yJ2QkzkKBK00Bhsr1fNLeMd
4xMOvv9u2u8OjfafTKjdNDIA7JmAR/xtda+Yx7sayaC1tgmiaBvvfjaROGbJ0sLRQ+Ha
UTGdzmesMdUASmyaWqc3R+DxjgqsFSYNRatMLAMoRqSU/9h5iBEqdD14WFaPTvEPFDwp
MMxHE8YxWKfqumoldgmXvPJD+5DCLWXAGvqYzpE4TPPb5I28r7W3VrBNb0zNvbroMryT
7pGA==
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=8sDBAZPd7TNDf2SB9WCnsccXGxXhHnDodOfT72Q382s=;
fh=0bXfyicbCKoHixJb+mBNQ/Vb4GY+1AH88KRHC5g2SLg=;
b=SonY8Dgv45u98FvvykH6dZXFTkHvbCGhRi7DvT+fbl2cyWLHHnfjntfhtplSxHFIhQ
XFF1925ozUD01jhUUtyaz6iFOjC8NscTbbZDfzOybKcPL1BsEpMiiATYf2nVyglzA+2i
tEszMuZMZyTaPRrvCHHC1uvDEDhcbB39g75jmORxO/6DjnE+Uo1JUyjaH0nwHo5py0wY
XkeM+/EvoisKYGGRtHR3eYjdbGx+D+hAIcIYpt4TlCdKzOFjwT6UuVMm6XQg4vtO69V/
ZRvv54gDyj2rUVh90O2Y+Ye+gb+8EJbiE6OelWFg7NmYpbDk3dYvzAj/Abq5zojSnIST
ViFg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=LZ7xlxjs;
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
5b1f17b1804b1-442f47720cfsor47145995e9.4.2025.05.20.01.55.16
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Tue, 20 May 2025 01:55:16 -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;
AJvYcCVaJ10BsahXqbRIOz526SQ+L6TAl6rH+iNnyeibUkjrLOAwP4ZqHURyk7DrnyoR2+XVfbXvmC7cWNQV9kd2@amarulasolutions.com
X-Gm-Gg: ASbGncsCi9Gnn2PowOSn+/A9oELCDTWYDQniRN85EoyozOI0ZEqcij5dBuxyXyXlWAC
Uev9kutnAs44HVNttD8GHoAd7zEdfHSs++wmy+8C6ZbpLaX0qhEEYA4+pLP0qzqo+gdAFEzBI/x
a57UE+DUSGk4fftW3yhWHvRXdtVQg0x+pw/gGiDLfL5ug3MFlRO4b7wdqLjilunRm4yO8fs05aN
DMMh+WvmcatPf+7nDXpkCVWDY8tTm/5lP9vAGnOKgBRNWj+n9GMr5aC/GIfox0++KA9rS0KVDJl
ub210/lDBTeareQmDdEeSra/5CvdgxOtZF+WFHAN/ozQVu5STtFjIQzklUbteqE96E+GHuj/Z2w
qWlKgdI2lhLpemZs=
X-Received: by 2002:a05:600c:8a5:b0:43c:ed33:a500 with SMTP id
5b1f17b1804b1-442f8b7a2b9mr120611015e9.10.1747731315920;
Tue, 20 May 2025 01:55:15 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.47])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-447f6f062fcsm21541315e9.15.2025.05.20.01.55.14
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 20 May 2025 01:55:15 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: Sven Dembiann <Sven.Dembianny@bshg.com>,
linux-amarula@amarulasolutions.com,
michael@amarulasolutions.com,
Simon Holesch <simon.holesch@bshg.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Patrick Barsanti <patrick.barsanti@amarulasolutions.com>,
Peng Fan <peng.fan@nxp.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH v3 4/5] board: bsh: imx8mn_bsh_smm_s2/s2pro: enlarge
CONFIG_SPL_SYS_MALLOC_F_LEN
Date: Tue, 20 May 2025 10:54:19 +0200
Message-ID: <20250520085436.925901-5-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20250520085436.925901-1-dario.binacchi@amarulasolutions.com>
References: <20250520085436.925901-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=LZ7xlxjs;
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 20, 2025, 8:54 a.m. UTC
The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks")
breaks the booting of the BSH SMM S2 board. The analysis of the issue
revealed memory allocation failures during the registration of UART4
clocks as well as other peripherals. Increasing SYS_MALLOC_F_LEN to
0x10000 fixed the issue.
Dropping this option allows it to be set to the default value of
CONFIG_SYS_MALLOC_F_LEN, which is set by default to 0x10000 on
i.MX8M platforms.
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
configs/imx8mn_bsh_smm_s2_defconfig | 1 -
configs/imx8mn_bsh_smm_s2pro_defconfig | 1 -
2 files changed, 2 deletions(-)
Comments
Hi Dario and Michael, On Tue, May 20, 2025 at 5:55 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. The analysis of the issue > revealed memory allocation failures during the registration of UART4 > clocks as well as other peripherals. Increasing SYS_MALLOC_F_LEN to > 0x10000 fixed the issue. > > Dropping this option allows it to be set to the default value of > CONFIG_SYS_MALLOC_F_LEN, which is set by default to 0x10000 on > i.MX8M platforms. > > Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) > > configs/imx8mn_bsh_smm_s2_defconfig | 1 - > configs/imx8mn_bsh_smm_s2pro_defconfig | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig > index 1c11d4705419..206d216394db 100644 > --- a/configs/imx8mn_bsh_smm_s2_defconfig > +++ b/configs/imx8mn_bsh_smm_s2_defconfig > @@ -15,7 +15,6 @@ CONFIG_SYS_MONITOR_LEN=524288 > CONFIG_SPL_SERIAL=y > CONFIG_SPL_DRIVERS_MISC=y > CONFIG_SPL_STACK=0x980000 > -CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 Thanks for investigating this issue and getting to the root cause. Reviewed-by: Fabio Estevam <festevam@gmail.com> I'm adding Hugo to the Cc as the imx8mn_var_som_defconfig target also uses CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000. Hugo, please consider doing the same change on imx8mn_var_som_defconfig. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Tue, 20 May 2025 09:11:26 -0300 Fabio Estevam <festevam@gmail.com> wrote: > Hi Dario and Michael, > > On Tue, May 20, 2025 at 5:55 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. The analysis of the issue > > revealed memory allocation failures during the registration of UART4 > > clocks as well as other peripherals. Increasing SYS_MALLOC_F_LEN to > > 0x10000 fixed the issue. > > > > Dropping this option allows it to be set to the default value of > > CONFIG_SYS_MALLOC_F_LEN, which is set by default to 0x10000 on > > i.MX8M platforms. > > > > Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> > > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > > > (no changes since v1) > > > > configs/imx8mn_bsh_smm_s2_defconfig | 1 - > > configs/imx8mn_bsh_smm_s2pro_defconfig | 1 - > > 2 files changed, 2 deletions(-) > > > > diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig > > index 1c11d4705419..206d216394db 100644 > > --- a/configs/imx8mn_bsh_smm_s2_defconfig > > +++ b/configs/imx8mn_bsh_smm_s2_defconfig > > @@ -15,7 +15,6 @@ CONFIG_SYS_MONITOR_LEN=524288 > > CONFIG_SPL_SERIAL=y > > CONFIG_SPL_DRIVERS_MISC=y > > CONFIG_SPL_STACK=0x980000 > > -CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 > > Thanks for investigating this issue and getting to the root cause. > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > I'm adding Hugo to the Cc as the imx8mn_var_som_defconfig target also > uses CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000. > > Hugo, please consider doing the same change on imx8mn_var_som_defconfig. Hi Fabio, sorry for the late response. Yes, I also ran into the same problem and manually set CONFIG_SPL_SYS_MALLOC_F_LEN to 128kB, as was done in commit 52472504e9c4 ("rockchip: rk3568: Fix alloc space exhausted in SPL"). I have now tested with the default value of 64kB (0x10000) by removing CONFIG_SPL_SYS_MALLOC_F_LEN and it also works fine. I will submit a patch for this. Thank you, Hugo. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig index 1c11d4705419..206d216394db 100644 --- a/configs/imx8mn_bsh_smm_s2_defconfig +++ b/configs/imx8mn_bsh_smm_s2_defconfig @@ -15,7 +15,6 @@ CONFIG_SYS_MONITOR_LEN=524288 CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y CONFIG_SPL_STACK=0x980000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 CONFIG_SPL_TEXT_BASE=0x912000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x950000 diff --git a/configs/imx8mn_bsh_smm_s2pro_defconfig b/configs/imx8mn_bsh_smm_s2pro_defconfig index d2010d13b8cb..ef486f51eeeb 100644 --- a/configs/imx8mn_bsh_smm_s2pro_defconfig +++ b/configs/imx8mn_bsh_smm_s2pro_defconfig @@ -16,7 +16,6 @@ CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y CONFIG_SPL_STACK=0x980000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 CONFIG_SPL_TEXT_BASE=0x912000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x950000