From: Francesco Dolcini <francesco@dolcini.it>
To: Nishanth Menon <nm@ti.com>
Cc: Francesco Dolcini <francesco@dolcini.it>,
Emanuele Ghidoli <ghidoliemanuele@gmail.com>,
u-boot@lists.denx.de,
Emanuele Ghidoli <emanuele.ghidoli@toradex.com>,
Neha Malcom Francis <n-francis@ti.com>,
Bryan Brattlof <bb@ti.com>,
Marcel Ziswiler <marcel.ziswiler@toradex.com>
Subject: Re: [PATCH v1 2/2] board: verdin-am62: fix check for minimum memory size
Date: Thu, 24 Aug 2023 17:52:17 +0200 [thread overview]
Message-ID: <ZOd8sW83t7M2Cmyt@francesco-nb.int.toradex.com> (raw)
In-Reply-To: <20230824145856.qppuhw6kjfr4bkwr@sandbox>
On Thu, Aug 24, 2023 at 09:58:56AM -0500, Nishanth Menon wrote:
> On 16:37-20230824, Francesco Dolcini wrote:
> > Hello Nishanth,
> >
> > On Thu, Aug 24, 2023 at 07:14:12AM -0500, Nishanth Menon wrote:
> > > On 10:08-20230824, Emanuele Ghidoli wrote:
> > > > From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> > > >
> > > > verdin am62 SKUs comes in multiple memory configuration, check that
> > > > the detected memory is at least 512MB since we have some
> > > > reserved memory just before this threshold and therefore
> > > > the module cannot work with less memory.
> > > >
> > > > Fixes: 7d1a10659f5b ("board: toradex: add verdin am62 support")
> > > > Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> > > > ---
> > > > board/toradex/verdin-am62/verdin-am62.c | 4 ++--
> > > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/board/toradex/verdin-am62/verdin-am62.c b/board/toradex/verdin-am62/verdin-am62.c
> > > > index a3d1d07a0cbf..d09dda5bccc9 100644
> > > > --- a/board/toradex/verdin-am62/verdin-am62.c
> > > > +++ b/board/toradex/verdin-am62/verdin-am62.c
> > > > @@ -28,8 +28,8 @@ int dram_init(void)
> > > > {
> > > > gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE, CFG_SYS_SDRAM_SIZE);
> > > >
> > > > - if (gd->ram_size < SZ_64M)
> > > > - puts("## WARNING: Less than 64MB RAM detected\n");
> > > > + if (gd->ram_size < SZ_512M)
> > > > + puts("## WARNING: Less than 512MB RAM detected\n");
> > >
> > > Have you considered fdtdec_setup_mem_size_base
> > > fdtdec_setup_memory_banksize - in which case the reserved memory
> > > regions can be changed in dt (will need corresponding custom binaries
> > > ofcourse)..
> >
> > I would say that custom binaries is not something we want. Our goal is
> > to rely on whatever TI is providing and to not deviate from it unless
> > required. Luckily enough for the moment it works since our
> > minimum memory size is 512MB.
>
> Sure - you will still benefit using fdtdec_setup_mem_size_base and
> fdtdec_setup_memory_banksize, but really, your call.
What would be the actual benefit? Never used it and looking at the code
I do not think it works for us.
We have a range of SKUs with different memory sizes (512MB to 2GB), we
do have a single device tree and a single U-Boot binary for all of the
variants, the memory node in the source dts file is just a default.
The DT memory node is updated dynamically by U-Boot, and the actual memory
size is detected by U-Boot using get_ram_size().
(and all of that just works fine).
Francesco
next prev parent reply other threads:[~2023-08-24 15:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 8:08 [PATCH v1 0/2] verdin-am62: add u-boot update wrappers and fix check for minimum memory size Emanuele Ghidoli
2023-08-24 8:08 ` [PATCH v1 1/2] verdin-am62: add u-boot update wrappers Emanuele Ghidoli
2023-08-24 11:19 ` Francesco Dolcini
2023-08-24 12:10 ` Nishanth Menon
2023-08-24 14:42 ` Francesco Dolcini
2023-08-28 22:11 ` Marcel Ziswiler
2023-09-09 13:30 ` Tom Rini
2023-08-24 8:08 ` [PATCH v1 2/2] board: verdin-am62: fix check for minimum memory size Emanuele Ghidoli
2023-08-24 11:20 ` Francesco Dolcini
2023-08-24 12:14 ` Nishanth Menon
2023-08-24 14:37 ` Francesco Dolcini
2023-08-24 14:58 ` Nishanth Menon
2023-08-24 15:52 ` Francesco Dolcini [this message]
2023-08-24 16:18 ` Nishanth Menon
2023-09-09 13:30 ` Tom Rini
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=ZOd8sW83t7M2Cmyt@francesco-nb.int.toradex.com \
--to=francesco@dolcini.it \
--cc=bb@ti.com \
--cc=emanuele.ghidoli@toradex.com \
--cc=ghidoliemanuele@gmail.com \
--cc=marcel.ziswiler@toradex.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=u-boot@lists.denx.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.