I think the soft-reset is what we may need but the gpio stuff may also be important.
Last login: Sat Feb 15 12:30:21 on ttys000
jam@Mac ~ % cd q3/qemu/build
jam@Mac build % ./qemu-system-ppc64-unsigned -m 1024 -cpu 7455 -hda ~/Snow*.img -prom-env 'boot-args=-v -x -s' -smp 2,cores=1,threads=1,sockets=2 -accel tcg,thread=multi -d guest_errors -cdrom /Users/jam/Downloads/ubuntu-mate-16.04.1-desktop-powerpc.iso -boot d -device usb-mouse -boot d -prom-env 'auto-boot?=false' -M mac99,via=pmu -nographic -bios /Users/jam/Documents/openbios-qemu.elf
WARNING: Image format was not specified for '/Users/jam/SnowLeopardPPC.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
s>> et_property: NULL phandle
>> =============================================================
>> OpenBIOS 1.1 [Feb 14 2025 10:28]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 2
>> Memory: 1024M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
>> CPU type PowerPC,G4
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Feb 14 2025 10:28
0 > dev /cpus/@0 .properties
name "PowerPC,G4"
device_type "cpu"
cpu-version 80010302
d-cache-size 8000
i-cache-size 8000
d-cache-sets 80
i-cache-sets 80
d-cache-block-size 20
i-cache-block-size 20
tlb-sets 40
tlb-size 80
timebase-frequency 17d7840
clock-frequency 35a4e900
bus-frequency 5f5e100
state "running"
reservation-granule-size 20
reg 00000000
available 00004000 03ffc000
04800000 3b458000
3fe10000 401f0000
translations 04000000 00800000 04000000 00000000
3fc58000 001b8000 3fc58000 00000000
fff00000 00100000 3ff00000 00000000
ok
0 > dev /cpus/@1 .properties
name "PowerPC,G4"
device_type "cpu"
cpu-version 80010302
d-cache-size 8000
i-cache-size 8000
d-cache-sets 80
i-cache-sets 80
d-cache-block-size 20
i-cache-block-size 20
tlb-sets 40
tlb-size 80
timebase-frequency 17d7840
clock-frequency 35a4e900
bus-frequency 5f5e100
state "running"
reservation-granule-size 20
reg 00000001
ok
0 >
> On Feb 15, 2025, at 12:24 PM, Jd Lyons <lyons_dj(a)yahoo.com> wrote:
>
> Don’t give up yet, we can get more people involved…..
>
> Here is the dump of the DP MDD /cpus node, there is some interesting stuff there….
>
>
>
>
>
>
>
>
>
>
>
> 0 > dev /cpus/@0 .properties
> name PowerPC,G4
>
> device_type cpu
> reg 00000000
> cpu-version 80010201
> state running
> clock-frequency 33a848a8
> bus-frequency 07f0db85
> config-bus-frequency 07f0b5db
> timebase-frequency 01fc36e1
> reservation-granule-size00000020
> tlb-sets 00000040
> tlb-size 00000080
> d-cache-size 00008000
> i-cache-size 00008000
> d-cache-sets 00000080
> i-cache-sets 00000080
> i-cache-block-size 00000020
> d-cache-block-size 00000020
> graphics
> performance-monitor
> altivec
> data-streams
> l2-cache ff87fd10
> l2cr 80080000
> existing 00000000 80000000 80000000 80000000
> available 00003000 7fffd000 d0000000 20000000
> translations 00000000 00003000 00000000 00000010 80000000 00080000
> 80000000 00000028 80080000 00001000 80080000 00000028
> 80081000 00001000 80081000 00000028 f0000000 00010000
> f0000000 00000028 f0800000 00001000 f0800000 00000028
> f0c00000 00001000 f0c00000 00000028 f2000000 00010000
> f2000000 00000028 f2800000 00001000 f2800000 00000028
> f2c00000 00001000 f2c00000 00000028 f4000000 00010000
> f4000000 00000028 f4800000 00001000 f4800000 00000028
> f4c00000 00001000 f4c00000 00000028 f5000000 00001000
> f5000000 00000028 f5200000 00200000 f5200000 00000028
> f5200000 00200000 f5200000 00000028
> ... 00000140 bytes total
> cpu-info 8410c0bc 80080000 80010201 00000400 00000000 00000000
> 00000000 00000000
> soft-reset 00000071 <<—————————Here
> gpio-mask 00000001 <<—————————Here
> gpio-value 00000001 <<—————————Here
> performance-monitor-cnt-enable 00000072
> timebase-enable 00000073 <<—————————Here
> gpio-parent ff95c318 <<—————————Here
>
> ok
> 0 > dev /cpus/@1 ok
> 0 > .properties
> name PowerPC,G4
>
> device_type cpu
> reg 00000001
> cpu-version 80010201
> state stopped
> clock-frequency 33a848a8
> bus-frequency 07f0db85
> config-bus-frequency 07f0b5db
> timebase-frequency 01fc36e1
> reservation-granule-size00000020
> tlb-sets 00000040
> tlb-size 00000080
> d-cache-size 00008000
> i-cache-size 00008000
> d-cache-sets 00000080
> i-cache-sets 00000080
> i-cache-block-size 00000020
> d-cache-block-size 00000020
> graphics
> performance-monitor
> altivec
> data-streams
> l2-cache ff880fd0
> l2cr 80080000
> cpu-info 8431c0bc 00000000 80010201 00000400 fff0376c 0000b010
> 00060110 21524110
> soft-reset 00000072 <<—————————Here
> gpio-mask 00000001 <<—————————Here
> gpio-value 00000001 <<—————————Here
> timebase-enable 00000073
> cpu-interrupt-enable 00000074 <<—————————Here
> gpio-parent ff95c318 <<—————————Here
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> customer-sw-config 694-4782
>
>
> color-code ff11
> scb# 00000000
> display-config-info ffffffff ffffffff
> name device-tree
> copyright Copyright 1983-2002 Apple Computer, Inc. All Rights Reserved
> device_type bootrom
> system-id 0000000000000
> #address-cells 00000001
> #size-cells 00000001
> clock-frequency 07f0db85
> AAPL,add-fcode-file ff860928
>
> ok
> 0 >
>
>> On Feb 15, 2025, at 11:53 AM, Andrew Randrianasulu <randrianasulu(a)gmail.com> wrote:
>>
>>
>>
>> сб, 15 февр. 2025 г., 19:37 Jd Lyons <lyons_dj(a)yahoo.com <mailto:lyons_dj@yahoo.com>>:
>>> Mate Live CD does default to SMP:
>>
>>
>> Thanks for testing.
>>
>> Unfortunately,I think I just fundamentally misunderstood how IRQ vs IPI works so .. in absence of someone with working understanding of how all this really work this probably will not progress much ...
>>
>> sorry!
>>
>>
>>>
>>> >> =============================================================
>>> >> OpenBIOS 1.1 [Feb 14 2025 10:28]
>>> >> Configuration device id QEMU version 1 machine id 1
>>> >> CPUs: 2
>>> >> Memory: 1024M
>>> >> UUID: 00000000-0000-0000-0000-000000000000
>>> >> CPU type PowerPC,G4
>>> >> CPU type PowerPC,G4
>>> milliseconds isn't unique.
>>> Welcome to OpenBIOS v1.1 built on Feb 14 2025 10:28
>>>
>>> 0 > boot Trying cd:,\\:tbxi...
>>> >> switching to new context:
>>>
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>> call-method color!: exception -21
>>> >> call-method color! failed with error ffffffdf
>>>
>>> Config file read, 2702 bytes
>>>
>>> Welcome to Ubuntu MATE 16.04.1 LTS (Xenial Xerus)!
>>>
>>> This is an Ubuntu MATE live CDROM,
>>> built on 20160719.
>>>
>>> The default option is 'live'.
>>>
>>> If the system fails to boot at all (the typical
>>> symptom is a white screen which doesn't go away),
>>> use 'live video=ofonly'.
>>>
>>> Press the tab key for a list of options, or type
>>> 'help' for help.
>>>
>>> ************************************
>>> If in doubt, just press Enter, and if that
>>> doesn't work, type 'live video=ofonly'.
>>> ************************************
>>> Welcome to yaboot version 1.3.16
>>> Enter "help" to get some basic usage information
>>>
>>> WARNING: Bootstrap partition type is wrong: "Apple_HFS"
>>> type should be: "Apple_Bootstrap"
>>>
>>> boot: live
>>> Please wait, loading kernel...
>>> Elf32 kernel loaded...
>>> Loading ramdisk...
>>> ramdisk loaded at 01b00000, size: 22562 Kbytes
>>> OF stdout device is: /pci@f2000000/mac-io@c/escc@13000/ch-a@13020
>>> Preparing to boot Linux version 4.4.0-31-powerpc-smp (buildd@denneed03) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:23:04 UTC 2016 (Ubuntu 4.4.0-31.50-powerpc-smp 4.4.13)
>>> Detected machine type: 00000400
>>> command line:
>>> memory layout at init:
>>> memory_limit : 00000000 (16 MB aligned)
>>> alloc_bottom : 03109000
>>> alloc_top : 30000000
>>> alloc_top_hi : 40000000
>>> rmo_top : 30000000
>>> ram_top : 40000000
>>> found display : /pci@f2000000/QEMU,VGA@e, opening... done
>>> copying OF device tree...
>>> Building dt strings...
>>> Building dt structure...
>>> Device tree strings 0x0320a000 -> 0x0320a5ea
>>> Device tree struct 0x0320b000 -> 0x03212000
>>> Quiescing Open Firmware ...
>>> Booting Linux via __start() ...
>>> Trying to read invalid spr 1012 (0x3f4) at 00000000c0015f18
>>> Hello World !
>>> setup_arch: initmem
>>> arch: exit
>>> smp_core99_probe
>>> smp_core99_kick_cpu
>>> smp_core99_kick_cpu done
>>> [ 5.131667] Processor 1 is stuck.
>>> [ 5.131667] Processor 1 is stuck.
>>>
>>> It tries to kickstart SMP but Processor 1 is stuck!
>>>
>>>
>>>
>>> [ 54.955254] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 54.955664] ata1.00: failed command: READ DMA
>>> [ 54.955950] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 54.955950] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 54.956472] ata1.00: status: { DRDY }
>>> [ 85.930746] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 85.931000] ata1.00: failed command: READ DMA
>>> [ 85.931149] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 85.931149] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 85.931569] ata1.00: status: { DRDY }
>>> [ 116.970014] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 116.970250] ata1.00: failed command: READ DMA
>>> [ 116.970402] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 116.970402] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 116.970814] ata1.00: status: { DRDY }
>>> [ 148.010809] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 148.011048] ata1.00: failed command: READ DMA
>>> [ 148.011195] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 148.011195] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 148.011610] ata1.00: status: { DRDY }
>>> [ 178.986502] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 178.986758] ata1.00: failed command: READ DMA
>>> [ 178.986906] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 178.986906] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 178.987328] ata1.00: status: { DRDY }
>>> [ 209.962237] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 209.962474] ata1.00: failed command: READ DMA
>>> [ 209.962622] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 209.962622] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 209.963038] ata1.00: status: { DRDY }
>>> [ 209.966227] blk_update_request: I/O error, dev sda, sector 0
>>> [ 209.966534] Buffer I/O error on dev sda, logical block 0, async page read
>>> [ 240.937824] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 240.938059] ata1.00: failed command: READ DMA
>>> [ 240.938205] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 240.938205] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 240.938642] ata1.00: status: { DRDY }
>>> [ 245.234331] INFO: task swapper/0:1 blocked for more than 120 seconds.
>>> [ 245.234688] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 245.234864] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 245.235822] INFO: task kworker/0:1:30 blocked for more than 120 seconds.
>>> [ 245.236016] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 245.236176] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 271.977850] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 271.978090] ata1.00: failed command: READ DMA
>>> [ 271.978241] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 271.978241] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 271.978653] ata1.00: status: { DRDY }
>>> [ 302.122355] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 302.122600] ata1.00: failed command: READ DMA
>>> [ 302.122746] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 302.122746] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 302.123172] ata1.00: status: { DRDY }
>>> [ 333.162381] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 333.162651] ata1.00: failed command: READ DMA
>>> [ 333.162795] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 333.162795] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 333.163229] ata1.00: status: { DRDY }
>>> [ 364.138445] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 364.138696] ata1.00: failed command: READ DMA
>>> [ 364.138844] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 364.138844] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 364.139276] ata1.00: status: { DRDY }
>>> [ 365.233579] INFO: task swapper/0:1 blocked for more than 120 seconds.
>>> [ 365.233825] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 365.233992] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 365.234445] INFO: task kworker/0:1:30 blocked for more than 120 seconds.
>>> [ 365.234633] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 365.234792] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 365.235276] INFO: task kworker/u4:2:79 blocked for more than 120 seconds.
>>> [ 365.235467] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 365.235625] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 395.178285] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 395.178536] ata1.00: failed command: READ DMA
>>> [ 395.178681] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 395.178681] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 395.179112] ata1.00: status: { DRDY }
>>> [ 395.180504] blk_update_request: I/O error, dev sda, sector 0
>>> [ 395.180710] Buffer I/O error on dev sda, logical block 0, async page read
>>> [ 426.154784] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 426.155025] ata1.00: failed command: READ DMA
>>> [ 426.155173] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 426.155173] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 426.155585] ata1.00: status: { DRDY }
>>> [ 457.130476] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>>> [ 457.130713] ata1.00: failed command: READ DMA
>>> [ 457.130859] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
>>> [ 457.130859] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x20 (host bus error)
>>> [ 457.131276] ata1.00: status: { DRDY }
>>> [ 485.233894] INFO: task swapper/0:1 blocked for more than 120 seconds.
>>> [ 485.234188] Not tainted 4.4.0-31-powerpc-smp #50-Ubuntu
>>> [ 485.234347] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>>> [ 485.234787] INFO: task kworker/0:1:30 blocked for more than 120 seconds.
>