[U-Boot] [PATCH v3 10/13] fdtdec: test: Add carveout tests
sjg at google.com
sjg at google.com
Fri Apr 12 21:49:55 UTC 2019
On Fri, Mar 22, 2019 at 03:53:07PM +0800, Simon Glass wrote:
> Hi Thierry,
>
> On Fri, 22 Mar 2019 at 02:10, Thierry Reding <thierry.reding at gmail.com> wrote:
> >
> > From: Thierry Reding <treding at nvidia.com>
> >
> > Implement carveout tests for 32-bit and 64-bit builds.
> >
> > Signed-off-by: Thierry Reding <treding at nvidia.com>
> > ---
> > Changes in v2:
> > - new patch
> >
> > lib/fdtdec_test.c | 152 ++++++++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 152 insertions(+)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Just an idea - as an alternative you could use the built-in device
> tree as your base rather than creating a new one. But perhaps that
> would only be safe on sandbox?
Yeah, running that test on a live system would mess up the reserved
memory regions. If U-Boot does something based on the reserved-memory
node, or passes it on to the kernel, that's going to cause issues.
The test also uses rather arbitrary values for the carveout, which may
not point at system memory at all.
Thierry
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list