[Bug 279137] FreeBSD fails to boot on IBM POWER8 systems (S814, S822L, S824)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 May 2024 23:13:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279137

--- Comment #2 from Calvin Buckley <calvin@cmpct.info> ---
I tried again on the S824, booting from the OF prompt instead of SMS:

```
0 > boot cdrom:\ppc\chrp\loader \
Detected bad memory access to address: fffffffffffffffe
Package path = /
Last memory-queue entry @ c472c0 
000000c472a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
:................:
000000c472b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
:................:
000000c472c0: 00 00 00 00 08 b0 3c a0 ff ff ff ff ff ff ff ff
:......<.........:
000000c472d0: 00 00 00 00 00 00 00 20 00 00 00 00 ba d1 b0 b0 :.......
........:
Return Stack Trace
------------------
@  - c40530 
close-package  - c641e0 
(poplocals)  - c3e9e8 
(init-program)  - c8e3c4 
boot  - c8ef4c 
evaluate  - c50308 
^c1b100   - c1b100 
invalid pointer - e 
invalid pointer - 5 
quit  - c50a4c 
quit  - c507a0 
syscatch  - c539d0 
syscatch  - c539d0 
invalid pointer - 98004c3c00e14238 
invalid pointer - a602087c00000060 
invalid pointer - a602087ce8ffa1fb 
invalid pointer - f0ffc1fb781b697c 
invalid pointer - e0ff81fbf8ffe1fb 
invalid pointer - 48fe63381701c23f 
invalid pointer - e802de3b1701a23f 
 ok
0 > .registers 
My Fix Pt Regs:
 00 0000000000000000 0000000000000000 0000000000000001 0000000000c547a0
 04 0000000000c54300 00000000deadbeef 00000000fa218003 0000000000c07010
 08 0000000020000000 0000000008c0bf30 0000000000000001 00000000000034f8
 0c 0000000000000000 0000000000c1b100 0000000000c1c000 0000000008d00c60
 10 0000000000e4f62f 0000000000e4f487 0000000000c54798 0000000000c4b2a8
 14 ffffffffffffffff 0000000000000049 6001000050020000 6001000060010000
 18 0000000000c17000 0000000000c3c000 0000000000c18f80 0000000000c1afc0
 1c 0000000000c24000 0000000000c440d8 0000000000c15f88 0000000000c14ff0
Special Regs:
    %IV: 00000900     %CR: 22808008    %XER: 00000010  %DSISR: 00000000 
  %SRR0: 0000000000c3f17c   %SRR1: 800000000000b002 
    %LR: 0000000000c4c954    %CTR: 0000000000000007 
   %DAR: 0000000000000000 
Virtual PID = 0 
 ok
```

I'm not sure what tools I have available in IBM's OF for debugging, but I did
try to get a register dump (though I don't know if this was the best time).

What might be interesting is that if I use `load` instead of `boot` (to see if
I can introspect things a little, by loading into memory before executing, at
least per my remedial understanding of OF), I also get a stack trace - perhaps
it's coming from the firmware, before it can even execute the loader?

```
0 > load cdrom:\ppc\chrp\loader /
Detected bad memory access to address: fffffffffffffffe
Package path = /
Last memory-queue entry @ c472c0 
000000c472a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
:................:
000000c472b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
:................:
000000c472c0: 00 00 00 00 08 b0 31 20 ff ff ff ff ff ff ff ff :......1
........:
000000c472d0: 00 00 00 00 00 00 00 20 00 00 00 00 ba d1 b0 b0 :.......
........:
Return Stack Trace
------------------
@  - c40530 
close-package  - c641e0 
(poplocals)  - c3e9e8 
(init-program)  - c8e3c4 
load  - c8ee30 
evaluate  - c50308 
  - 8b03400 
invalid pointer - 45 
invalid pointer - 45 
quit  - c50a4c 
quit  - c507a0 
syscatch  - c539d0 
syscatch  - c539d0 
invalid pointer - 98004c3c00e14238 
invalid pointer - a602087c00000060 
invalid pointer - a602087ce8ffa1fb 
invalid pointer - f0ffc1fb781b697c 
invalid pointer - e0ff81fbf8ffe1fb 
invalid pointer - 48fe63381701c23f 
invalid pointer - e802de3b1701a23f 
 ok
0 > 
```

-- 
You are receiving this mail because:
You are the assignee for the bug.