Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2026 15:37:14 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Lexi Winter <ivy@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org
Subject:   Re: git: ba94d7574972 - main - stand/common/load_elf: Do kernel module relocations for PPC
Message-ID:  <CAJ-VmokdH0Fx86CsiV-ViraRuqqJuj-k8oZtuJ0S_vvc7NF3NQ@mail.gmail.com>
In-Reply-To: <CAJ-VmonmAUxXADzokmGv_GNB-TRMTcojKu2ijfhm66m_VOc-OA@mail.gmail.com>
References:  <69e37435.3b47e.5048e12@gitrepo.freebsd.org> <CAJ-VmokRSEkWL9rdXS5iNWOes_nvCyWymdwbipasFiF03_z4nA@mail.gmail.com> <CAJ-VmonmAUxXADzokmGv_GNB-TRMTcojKu2ijfhm66m_VOc-OA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Tue, 28 Apr 2026 at 14:54, Adrian Chadd <adrian@freebsd.org> wrote:
>
> On Tue, 28 Apr 2026 at 14:45, Adrian Chadd <adrian@freebsd.org> wrote:
> >
> > hi,
> >
> > This somehow breaks booting in pseries VMs in virtualised ppc64 on
> > qemu, both ppc64be and ppc64le.
> > The loader gets through a bunch of kernel loading and then hangs
> > before it jumps into the kernel.
> >
>
> I've committed some remote gdb sins to figure out where the CPU is in the loader
> binary, and it looks like it's in load_elf.c : elf64_reloc_ptr .

Nope, the problem is mine - it's actually not hanging, it's now just
doing a /lot/ of work
to relocate things before the system boots, so a fully virtualised
ppc64 CPU takes
~ 40 seconds to run through the relocation list.

Ouch.


-adrian


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokdH0Fx86CsiV-ViraRuqqJuj-k8oZtuJ0S_vvc7NF3NQ>