All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: Tom Rini <trini@konsulko.com>
Cc: Heiko Thiery <heiko.thiery@gmail.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	 Simon Glass <sjg@chromium.org>, Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,  Peng Fan <peng.fan@nxp.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN
Date: Wed, 23 Mar 2022 09:09:56 -0500	[thread overview]
Message-ID: <CAHCN7xJ7N7NQZp63bRMm69DF6GNTAiok5VGNKLk-enNqqUvVaA@mail.gmail.com> (raw)
In-Reply-To: <20220323131439.GA2226424@bill-the-cat>

On Wed, Mar 23, 2022 at 8:14 AM Tom Rini <trini@konsulko.com> wrote:
>
> On Tue, Mar 22, 2022 at 01:34:34PM +0100, Heiko Thiery wrote:
> > Hi Tom,
> >
> >
> > Am Di., 22. März 2022 um 13:25 Uhr schrieb Tom Rini <trini@konsulko.com>:
> > >
> > > On Tue, Mar 22, 2022 at 10:25:12AM +0100, Heinrich Schuchardt wrote:
> > > > On 3/21/22 15:26, Heiko Thiery wrote:
> > > > > It was observed that enabling additional DM modules the configured
> > > > > malloc value is not sufficient. So lets increase the value.
> > > > >
> > > > > Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> > > > > ---
> > > > > v2:
> > > > >   - add a more proper commit message to explan why the value was increased
> > > > >
> > > > >   configs/kontron_pitx_imx8m_defconfig | 1 +
> > > > >   1 file changed, 1 insertion(+)
> > > > >
> > > > > diff --git a/configs/kontron_pitx_imx8m_defconfig b/configs/kontron_pitx_imx8m_defconfig
> > > > > index 76430213e3..30c3586937 100644
> > > > > --- a/configs/kontron_pitx_imx8m_defconfig
> > > > > +++ b/configs/kontron_pitx_imx8m_defconfig
> > > > > @@ -2,6 +2,7 @@ CONFIG_ARM=y
> > > > >   CONFIG_ARCH_IMX8M=y
> > > > >   CONFIG_SYS_TEXT_BASE=0x40200000
> > > > >   CONFIG_SYS_MALLOC_LEN=0x600000
> > > > > +CONFIG_SYS_MALLOC_F_LEN=0x10000
> > > >
> > > > @Heiko
> > > > Should we really adjust this on board level? Won't we have the same
> > > > problem on all imx8m boards?
> > > >
> > > > Why don't you change the default for all i.mx8 boards in /Kconfig?
> > > >
> > > > @Tom, @Simon
> > > > Shouldn't we replace the default of 0x400 by 0x2000 generally?
> > >
> > > That's well more than the default for imx8 of 0x2000 and even for the
> > > default for sandbox of 0x4000, does it need to be that huge?  Or was
> > > that the "I'm sick of this problem" value?
> > >
> >
> > I did test a pending patch that enables a DM clock driver for the
> > imx8mq. With that patch a huge amount of memory seems to be needed for
> > all that clock infrastructure.
>
> OK, then we should adjust upwards the default for imx8 in the toplevel
> Kconfig.

I have been using 0x10000 for a while without issue on both an imx8mm
and imx8mn.  When I used that value, it was more of a desire to
overshoot the minimal requirements so as features are added, we don't
have to keep adjusting the memory.

I support making it the platform default.

adam
>
> --
> Tom

  reply	other threads:[~2022-03-23 14:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 14:26 [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN Heiko Thiery
2022-03-21 14:30 ` Fabio Estevam
2022-03-22  9:25 ` Heinrich Schuchardt
2022-03-22 12:25   ` Tom Rini
2022-03-22 12:34     ` Heiko Thiery
2022-03-23 13:14       ` Tom Rini
2022-03-23 14:09         ` Adam Ford [this message]
2022-03-23 18:04   ` Simon Glass
2022-03-23 18:26     ` Heiko Thiery
2022-03-23 18:33       ` Sean Anderson
2022-03-23 18:49         ` Tom Rini
2022-03-23 18:53           ` Simon Glass
2022-03-23 18:59             ` Tom Rini
2022-03-23 19:38               ` Simon Glass
2022-03-23 18:53         ` Simon Glass
2022-03-23 19:19           ` Sean Anderson
2022-03-23 19:38             ` Simon Glass
2022-03-23 20:03             ` Adam Ford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHCN7xJ7N7NQZp63bRMm69DF6GNTAiok5VGNKLk-enNqqUvVaA@mail.gmail.com \
    --to=aford173@gmail.com \
    --cc=festevam@gmail.com \
    --cc=heiko.thiery@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.