Re: Boot failure with ppc64 port on iMacs G5

2024-02-28 Thread Michael Ellerman
John Paul Adrian Glaubitz  writes:
> On Tue, 2024-02-20 at 04:16 +0100, tuxayo wrote:
>> I tried snapshots/2024-01-31/debian-12.0.0-ppc64-NETINST-1.iso
>> 
>> And was able to start booting from usb with:
>> boot usb0/disk@1:,\boot\grub\powerpc.elf
>> (typed in Open Firmware shell)
>> (usb0 is the top port)
>> 
>> Grub worked, and then I tried default install (the 1st option) and it 
>> started loading during like 2 minutes.
>> And then it got stuck with some superposition of the messages
>> smp_core99_probe
>> and
>> the stuff before
>> DO-QUIESCE finisedBooting Linux via __start() @ 0x0209 ...
>
> There seems to be a regression in the kernel which affects PowerPC 970 
> machines,
> i.e. PowerMac G5 CPUs. The issue needs to be bisected and reported upstream.

I have a quad G5 that is booting mainline happily.

I used to have an iMac G5 but it died.

> If you have the time, I would really appreciate if you could test the various
> snapshots and let me know which kernel is the first to not work. I expect that
> the breakage occurred somewhere around kernel 6.3 or so.

Can someone send the .config for the kernel in question? I could try
that on my machine here.

cheers



Re: Boot issues with debian-installer on ppc64

2024-02-28 Thread John Paul Adrian Glaubitz
Hi,

On Wed, 2024-02-28 at 09:13 +0100, John Paul Adrian Glaubitz wrote:
> The interesting bit is the kernel in question works fine when installing it 
> later instead of booting
> from CD, so it might not be a kernel issue after all. However, I can no clue 
> yet what may have changed
> in either debian-installer or debian-cd to break the installation CD.
> 
> I will need to perform more debugging.

I just had another idea for testing which is building a current installation 
image with an old, known
to work kernel. This will help verify whether it's actually an issue with the 
kernel or the CD building
process or the boot loader on the CD.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Boot issues with debian-installer on ppc64

2024-02-28 Thread John Paul Adrian Glaubitz
Hi Richard,

On Tue, 2024-02-27 at 22:51 -0600, Richard Allen wrote:
> I tried these on my Dual-processor PCI-X G5.
> 
> > https://cdimage.debian.org/cdimage/ports/tests/ppc64-test/debian-12.0.0-ppc64-NETINST-1.iso
> > https://cdimage.debian.org/cdimage/ports/tests/ppc64-test-new/debian-12.0.0-ppc64-NETINST-1.iso
> 
> Both behaved the same way. Got to the installer menu, I choose an install 
> mode,
> showed "loading..." for approximately 1 minute bit, then showed normal 
> messages like
> 'Quiescing OpenFirmware...' and 'Booting Linux via __start()', and within 1 
> second Linux printed:
> 
> smp_core99_probe
> smp_core99_kick_cpu
> smp_core99_kick_cpu_done
> smp_core99_bringup_done
> 
> but after that nothing more. After 1-2 minutes the fans spun up fully.  After 
> 3-5 minute I gave
> up and held power button to power down.
>
> > https://cdimage.debian.org/cdimage/ports/snapshots/2024-02-25/
> 
> This one got to the four smp_core99_* messages, but the fans did not spin up. 
> I waited 12 minutes
> but the screen did not update.

Thanks for the confirmation. So my tests with QEMU accurately emulate the 
behavior of a real G5
which means I can debug the problem much easier.

The interesting bit is the kernel in question works fine when installing it 
later instead of booting
from CD, so it might not be a kernel issue after all. However, I can no clue 
yet what may have changed
in either debian-installer or debian-cd to break the installation CD.

I will need to perform more debugging.

> Is there anything I can help to diagnose from my end?

Not at the moment. I need to perform more tests to figure out what went wrong.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913