From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
Bin Meng <bmeng.cn@gmail.com>,
Raymond Mao <raymond.mao@linaro.org>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Michal Simek <michal.simek@amd.com>,
Adriano Cordova <adrianox@gmail.com>,
Harrison Mutai <harrison.mutai@arm.com>,
Peng Fan <peng.fan@nxp.com>,
Ben Dooks <ben.dooks@codethink.co.uk>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Jerome Forissier <jerome.forissier@linaro.org>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Rick Chen <rick@andestech.com>,
u-boot@lists.denx.de
Subject: Re: [PATCH 6/9] test: cmd/fdt: do not use fixed buffer addresses
Date: Fri, 14 Nov 2025 12:54:50 -0600 [thread overview]
Message-ID: <20251114185450.GA2125796@bill-the-cat> (raw)
In-Reply-To: <CAFLszTibCE57HPEgEnkVkzmcLVMbQsk5mDKP5+mrn+ZHQOGeAA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3942 bytes --]
On Fri, Nov 14, 2025 at 11:10:59AM -0700, Simon Glass wrote:
> On Fri, 14 Nov 2025 at 07:43, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Nov 14, 2025 at 07:24:53AM -0700, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Fri, 14 Nov 2025 at 07:19, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Fri, Nov 14, 2025 at 05:31:40AM -0700, Simon Glass wrote:
> > > > > Hi Heinrich,
> > > > >
> > > > > On Sun, 9 Nov 2025 at 03:10, Heinrich Schuchardt
> > > > > <heinrich.schuchardt@canonical.com> wrote:
> > > > > >
> > > > > > The location of memory depends on the board. Do not assume memory at fixed
> > > > > > memory locations. Use memalign() instead to allocate a buffer.
> > > > > >
> > > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > > [snip]
> > > > > > /* bytes */
> > > > > > print_hex_dump_bytes("", DUMP_PREFIX_ADDRESS, buf, 0x12);
> > > > > > ut_assert_nextline("%0*lx: 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff ..\"3DUfw........",
> > > > > > - IS_ENABLED(CONFIG_PHYS_64BIT) ? 16 : 8,
> > > > > > - (uintptr_t)buf);
> > > > > > + IS_ENABLED(CONFIG_PHYS_64BIT) ? 16 : 8, addr);
> > > > [snip]
> > > > > This is adding memory allocations to a test for hex dumping.
> > > > >
> > > > > It would be better and simpler to use a fixed address and make this a
> > > > > sandbox-only test. I struggle to see the value of running these sorts
> > > > > of tests under QEMU?
> > > >
> > > > Removing context to highlight value of running tests on multiple
> > > > platforms.
> > >
> > > $ ./tools/qconfig.py -f ~PHYS_64BIT -l |grep sandbox
> > > sandbox
> > > sandbox_flattree
> > > sandbox_nocmdline
> > > sandbox_noinst
> > > sandbox_spl
> > > sandbox_vpl
> > > $ ./tools/qconfig.py -f PHYS_64BIT -l |grep sandbox
> > > sandbox64
> > > sandbox64_lwip
>
> If at any point you have made up your mind, please say so, rather than
> continuing what I intended to be a discussion of the pros and cons of
> this patch.
Yes, both Heinrich and I agree we should be running these tests on
hardware. Don't run them on hardware as a position has been rejected.
You can stop reading here if you don't want an explanation.
> > Good, and as soon as you restrict to "sandbox" we stop running
> > "sandbox64", it's why sandbox64 runs so much quicker in CI.
>
> This is a C test - test/cmd/fdt.c so it is built for all sandbox
> boards. The restriction you are referring to here is for pytests, I
> believe. The core of my argument is that running sandbox tests on
> other architectures is mostly a waste of time, assuming the compiler
> is functioning correctly. This patch is also devaluing sandbox, the
> major advantages of which is its fast, native code execution and fixed
> execution environment (memory map, etc.).
>
> At the very least, it would help to be clear what bugs we are hoping
> to find with this change.
The position of "don't run tests on hardware, only on sandbox" does not
sound sensible in general. In practice we need to do more, not less, on
device testing and saving milliseconds by skipping tests is noise lost
in the time it takes to acquire a runner and clone the source code or
even which runner we test things on. Spending time on "should this run
on hardware or only sandbox" is time not well spent. Finally, "do a
bunch of stuff on hardware" is still the best overall method for finding
unexpected platform bugs. It's how we catch "some clocks are wrong" or
"we configured thermals wrong" or "we configured memory wrong" and so
forth.
You mention QEMU, and yes, we will be executing these on QEMU in CI, on
some platforms, which are our fastest pytest pipelines. But we will also
being running these on hardware, which is my point and I believe
Heinrich's as well.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-11-14 18:55 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-09 10:10 [PATCH 0/9] CI: test qemu-riscv64_smode[_acpi] Heinrich Schuchardt
2025-11-09 10:10 ` [PATCH RESEND 1/9] test: fdt_test_apply requires CONFIG_OF_LIBFDT_OVERLAY Heinrich Schuchardt
2025-11-11 8:29 ` Ilias Apalodimas
2025-11-11 13:32 ` Tom Rini
2025-11-11 21:18 ` Heinrich Schuchardt
2025-11-11 21:12 ` Heinrich Schuchardt
2025-11-11 21:26 ` Tom Rini
2025-11-22 16:23 ` Tom Rini
2025-11-22 23:52 ` Heinrich Schuchardt
2025-11-23 14:02 ` Tom Rini
2025-11-09 10:10 ` [PATCH 2/9] test: cmd/fdt: do not assume RNG device exists Heinrich Schuchardt
2025-11-11 8:33 ` Ilias Apalodimas
2025-11-14 12:44 ` Simon Glass
2025-11-14 14:22 ` Tom Rini
2025-11-09 10:10 ` [PATCH 3/9] test: cmd/bdinfo: make no flash assumption Heinrich Schuchardt
2025-11-11 8:30 ` Ilias Apalodimas
2025-11-14 12:44 ` Simon Glass
2025-11-09 10:10 ` [PATCH 4/9] test: cmd/bdinfo: consider arch_print_bdinfo() output Heinrich Schuchardt
2025-11-14 12:44 ` Simon Glass
2025-11-09 10:10 ` [PATCH 5/9] test: common/print: do not use fixed buffer addresses Heinrich Schuchardt
2025-11-11 8:48 ` Ilias Apalodimas
2025-11-14 12:44 ` Simon Glass
2025-11-09 10:10 ` [PATCH 6/9] test: cmd/fdt: " Heinrich Schuchardt
2025-11-11 8:43 ` Ilias Apalodimas
2025-11-14 12:31 ` Simon Glass
2025-11-14 14:19 ` Tom Rini
2025-11-14 14:24 ` Simon Glass
2025-11-14 14:43 ` Tom Rini
2025-11-14 18:10 ` Simon Glass
2025-11-14 18:54 ` Tom Rini [this message]
2025-11-17 18:16 ` Simon Glass
2025-11-14 14:29 ` Heinrich Schuchardt
2025-11-09 10:10 ` [PATCH 7/9] common: default CONFIG_CONSOLE_RECORD_OUT_SIZE=0x6000 Heinrich Schuchardt
2025-11-11 8:31 ` Ilias Apalodimas
2025-11-14 12:44 ` Simon Glass
2025-11-09 10:10 ` [PATCH 8/9] configs: CONFIG_CONSOLE_RECORD=y on qemu-riscv64_smode_acpi Heinrich Schuchardt
2025-11-09 10:10 ` [PATCH RESEND 9/9] CI: test qemu-riscv64_smode[_acpi] Heinrich Schuchardt
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=20251114185450.GA2125796@bill-the-cat \
--to=trini@konsulko.com \
--cc=adrianox@gmail.com \
--cc=ben.dooks@codethink.co.uk \
--cc=bmeng.cn@gmail.com \
--cc=clamor95@gmail.com \
--cc=harrison.mutai@arm.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=michal.simek@amd.com \
--cc=mkorpershoek@kernel.org \
--cc=patrick.delaunay@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=raymond.mao@linaro.org \
--cc=rick@andestech.com \
--cc=semen.protsenko@linaro.org \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/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.