From: Tom Rini <trini@konsulko.com>
To: Jerome Forissier <jerome.forissier@linaro.org>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Javier Tia <javier.tia@linaro.org>,
Raymond Mao <raymond.mao@linaro.org>,
Maxim Uvarov <muvarov@gmail.com>,
Tim Harvey <tharvey@gateworks.com>,
Anton Antonov <Anton.Antonov@arm.com>,
Simon Glass <sjg@chromium.org>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Dan Carpenter <dan.carpenter@linaro.org>,
Alexander Gendin <agendin@matrox.com>,
u-boot@lists.denx.de
Subject: Re: [PATCH v11 03/29] linker_lists: set LINKER_LIST_ALIGN to 8 for CPU_MIPS64
Date: Fri, 4 Oct 2024 12:28:22 -0600 [thread overview]
Message-ID: <20241004182822.GH4737@bill-the-cat> (raw)
In-Reply-To: <c9f50143-4e49-43df-913e-43bf5f5484cc@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2408 bytes --]
On Fri, Oct 04, 2024 at 02:55:58PM +0200, Jerome Forissier wrote:
>
>
> On 10/4/24 14:04, Heinrich Schuchardt wrote:
> > On 03.10.24 17:22, Jerome Forissier wrote:
> >> Note: Patch posted separately [0].
> >>
> >> [0] https://patchwork.ozlabs.org/project/uboot/patch/20241003142030.1610222-1-jerome.forissier@linaro.org/
> >>
> >> CPU_MIPS64 needs 8-byte alignment on the linker lists, otherwise an
> >> exception may occur. Fixes an issue found on malta64 with QEMU:
> >>
> >> Breakpoint 1, lists_driver_lookup_name (name=0xffffffffbe043578 "root_driver") at /home/uboot/u-boot/drivers/core/lists.c:31
> >> 31 if (!strcmp(name, entry->name))
> >> [...]
> >> ld a1,0(s0)
> >>
> >> (gdb) p/x &entry->name
> >> 0xffffffffbe04b0d4
> >> (gdb) p/x $s0
> >> 0xffffffffbe04b0d4
> >>
> >> $ grep __u_boot_list /tmp/malta64/u-boot.objdump
> >> 4 __u_boot_list 000018e0 ffffffffbe04a4d4 ffffffffbe04a4d4 0004a584 2**2
> >>
> >> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
> >> ---
> >> arch/Kconfig | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/arch/Kconfig b/arch/Kconfig
> >> index 8f1f4667012..8f4df849801 100644
> >> --- a/arch/Kconfig
> >> +++ b/arch/Kconfig
> >> @@ -45,7 +45,7 @@ config SYS_CACHELINE_SIZE
> >> config LINKER_LIST_ALIGN
> >> int
> >> default 32 if SANDBOX
> >> - default 8 if ARM64 || X86
> >> + default 8 if ARM64 || X86 || CPU_MIPS64
> >
> > Shouldn't we set 8 byte alignment on all 64bit architectures including
> > riscv64?
> >
> > default 8 if 64BIT
>
> Makes sense.
>
> >
> > @Simon
> > I would not know why 32bit X86 should need 8 byte alignment.
> > I am a bit astonished that you chose 32 byte alignment for the Sandbox.
> > Is there any justification to use more than 4 on the 32bit Sandbox and
> > more than 8 on the 64bit Sandbox? If yes, we should document it via a
> > comment.
>
> I tried running what CI does manually (.azure_pipelines.yml) with
> "default 32 if SANDBOX" removed, and I got SIGSEGV with
> TEST_PY_BD=sandbox. OTOH, TEST_PY_BD=sandbox64 worked fine but it might
> have been a fluke.
I think we can leave sandbox as a future cleanup, and perhaps file an
issue at https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/ so
it doesn't get lost.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2024-10-04 18:28 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 15:22 [PATCH v11 00/29] Introduce the lwIP network stack Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 01/29] net: recv(): return -EAGAIN instead of 0 when no cleanup is expected Jerome Forissier
2024-10-09 1:51 ` Simon Glass
2024-10-09 9:39 ` Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 02/29] Make AVB_VERIFY depend on FASTBOOT Jerome Forissier
2024-10-09 1:51 ` Simon Glass
2024-10-09 12:31 ` Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 03/29] linker_lists: set LINKER_LIST_ALIGN to 8 for CPU_MIPS64 Jerome Forissier
2024-10-04 7:12 ` Ilias Apalodimas
2024-10-04 12:04 ` Heinrich Schuchardt
2024-10-04 12:55 ` Jerome Forissier
2024-10-04 18:28 ` Tom Rini [this message]
2024-10-10 13:29 ` Jerome Forissier
2024-10-07 15:23 ` Simon Glass
2024-10-03 15:22 ` [PATCH v11 04/29] sandbox: add dummy driver ETH_SANDBOX_LWIP Jerome Forissier
2024-10-04 7:13 ` Ilias Apalodimas
2024-10-09 1:55 ` Simon Glass
2024-10-03 15:22 ` [PATCH v11 05/29] test: boot: fix bootdev_test_any for when DSA_SANDBOX is disabled Jerome Forissier
2024-10-09 1:51 ` Simon Glass
2024-10-03 15:22 ` [PATCH v11 06/29] test: boot: fix bootflow_cmd_label " Jerome Forissier
2024-10-04 6:55 ` Ilias Apalodimas
2024-10-04 8:46 ` Jerome Forissier
2024-10-04 9:37 ` Ilias Apalodimas
2024-10-04 12:01 ` Jerome Forissier
2024-10-07 15:23 ` Simon Glass
2024-10-08 8:49 ` Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 07/29] net: introduce alternative implementation as net-lwip/ Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 08/29] configs: replace '# CONFIG_NET is not set' with CONFIG_NO_NET=y Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 09/29] net: split include/net.h into net{, -common, -legacy, -lwip}.h Jerome Forissier
2024-10-04 6:00 ` Ilias Apalodimas
2024-10-03 15:22 ` [PATCH v11 10/29] net: move copy_filename() to new file net/net-common.c Jerome Forissier
2024-10-04 6:52 ` Ilias Apalodimas
2024-10-04 8:01 ` Jerome Forissier
2024-10-03 15:22 ` [PATCH v11 11/29] net: eth-uclass: add function eth_start_udev() Jerome Forissier
2024-10-04 6:04 ` Ilias Apalodimas
2024-10-03 15:46 ` [PATCH v11 12/29] net-lwip: build lwIP Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 13/29] net-lwip: add DHCP support and dhcp commmand Jerome Forissier
2024-10-04 6:50 ` Ilias Apalodimas
2024-10-04 8:43 ` Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 14/29] lwip: tftp: bind to TFTP port only when in server mode Jerome Forissier
2024-10-04 6:11 ` Ilias Apalodimas
2024-10-04 9:07 ` Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 15/29] net-lwip: add TFTP support and tftpboot command Jerome Forissier
2024-10-04 12:02 ` Ilias Apalodimas
2024-10-03 15:46 ` [PATCH v11 16/29] net-lwip: add ping command Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 17/29] net-lwip: add dns command Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 18/29] net: split cmd/net.c into cmd/net.c and cmd/net-common.c Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 19/29] net-lwip: add wget command Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 20/29] net-lwip: lwIP wget supports user defined port in the uri, so allow it Jerome Forissier
2024-10-04 7:11 ` Ilias Apalodimas
2024-10-04 8:36 ` Jerome Forissier
2024-10-05 3:26 ` Jon Humphreys
2024-10-03 15:46 ` [PATCH v11 21/29] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 22/29] configs: add qemu_arm64_lwip_defconfig Jerome Forissier
2024-10-03 16:44 ` Ilias Apalodimas
2024-10-03 15:46 ` [PATCH v11 23/29] lwip: tftp: add support of blksize option to client Jerome Forissier
2024-10-04 6:41 ` Ilias Apalodimas
2024-10-03 15:46 ` [PATCH v11 24/29] net-lwip: add TFTP_BLOCKSIZE Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 25/29] CI: add qemu_arm64_lwip to the test matrix Jerome Forissier
2024-10-04 6:05 ` Ilias Apalodimas
2024-10-04 18:25 ` Tom Rini
2024-10-07 9:00 ` Jerome Forissier
2024-10-03 15:46 ` [PATCH v11 26/29] MAINTAINERS: net-lwip: add myself as a maintainer Jerome Forissier
2024-10-03 16:02 ` Ilias Apalodimas
2024-10-03 15:46 ` [PATCH v11 27/29] configs: use syntax CONFIG_FOO=n in tools-only_defconfig Jerome Forissier
2024-10-04 6:01 ` Ilias Apalodimas
2024-10-03 15:47 ` [PATCH v11 28/29] [TESTING] configs: set CONFIG_NET=y for FTGMAC100 Jerome Forissier
2024-10-04 6:05 ` Ilias Apalodimas
2024-10-03 15:47 ` [PATCH v11 29/29] [TESTING] Kconfig: enable NET_LWIP by default Jerome Forissier
2024-10-03 16:00 ` [PATCH v11 00/29] Introduce the lwIP network stack Ilias Apalodimas
2024-10-03 16:10 ` Jerome Forissier
2024-10-03 16:11 ` Ilias Apalodimas
2024-10-04 18:30 ` Tom Rini
2024-10-04 18:36 ` Ilias Apalodimas
2024-10-07 13:31 ` Jerome Forissier
2024-10-04 19:15 ` 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=20241004182822.GH4737@bill-the-cat \
--to=trini@konsulko.com \
--cc=Anton.Antonov@arm.com \
--cc=agendin@matrox.com \
--cc=dan.carpenter@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=javier.tia@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=jiaxun.yang@flygoat.com \
--cc=muvarov@gmail.com \
--cc=raymond.mao@linaro.org \
--cc=sjg@chromium.org \
--cc=tharvey@gateworks.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox