Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
122 user(s) are online (89 user(s) are browsing Forums)

Members: 1
Guests: 121

K-L, more...

Headlines

Forum Index


Board index » All Posts (derfs)




Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balatonQuote:
balaton wrote:@derfs

Also including info qtree, info registers and info irq output from QEMU monitor at the hang may have some more info about the state of the machine so try to get that. You can use -serial mon:stdio and switch between serial of the quest and QEMU monitor with Ctrl-A c


Here is the command line being used to run QEMU
qemu-system-ppc \
    
-L pc-bios -M pegasos2 -bios pegasos2.rom -vga none \
    
-cpu 7457 -m 1024 \
    
-rtc base=localtime -serial mon:stdio \
    
-drive media=disk,format=raw,file=hdf/peg2.img \
    
-drive media=disk,format=raw,file=hdf/apps.hdf \
    
-device bochs-display,romfile="" \
    
-device vfio-pci,host=0b:00.0,multifunction=on,x-vga=on,bus=pci.0 \
    
-device vfio-pci,host=0b:00.1,bus=pci.0


info qtree

(qemuinfo qtree
bus
main-system-bus
  type System
  dev
ps2-mouseid ""
    
gpio-out "" 1
  dev
ps2-kbdid ""
    
gpio-out "" 1
  dev
mv64361-pcihostid ""
    
index (0x1)
    
x-config-reg-migration-enabled true
    bypass
-iommu false
    bus
pci.1
      type PCI
      dev
bochs-displayid ""
        
vgamem 16777216 (16 MiB)
        
edid true
        xres 
1280 (0x500)
        
yres 800 (0x320)
        
xmax (0x0)
        
ymax (0x0)
        
refresh_rate (0x0)
        
addr 01.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Display controlleraddr 00:01.0pci id 1234:1111 (sub 1af4:1100)
        
bar 0mem at 0xffffffffffffffff [0xfffffe]
        
bar 2mem at 0xffffffffffffffff [0xffe]
      
devvia-mc97id ""
        
addr 0c.6
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Class 0780, addr 00:0c.6pci id 1106:3068 (sub 1af4:1100)
      
devvia-ac97id ""
        
audiodev "none"
        
addr 0c.5
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Audio controlleraddr 00:0c.5pci id 1106:3058 (sub 1af4:1100)
        
bar 0i/o at 0x1100 [0x11ff]
        
bar 1i/o at 0x1030 [0x1033]
        
bar 2i/o at 0x1034 [0x1037]
      
devvt8231-pmid ""
        
addr 0c.4
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Bridgeaddr 00:0c.4pci id 1106:8235 (sub 1af4:1100)
        
busi2c
          type i2c
-bus
          dev
smbus-eepromid ""
            
address 87 (0x57)
      
devvt82c686b-usb-uhciid ""
        
bandwidth 1280 (0x500)
        
maxframes 128 (0x80)
        
addr 0c.3
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class USB controlleraddr 00:0c.3pci id 1106:3038 (sub 1af4:1100)
        
bar 4i/o at 0x1060 [0x107f]
        
bususb-bus.1
          type usb
-bus
      dev
vt82c686b-usb-uhciid ""
        
bandwidth 1280 (0x500)
        
maxframes 128 (0x80)
        
addr 0c.2
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class USB controlleraddr 00:0c.2pci id 1106:3038 (sub 1af4:1100)
        
bar 4i/o at 0x1040 [0x105f]
        
bususb-bus.0
          type usb
-bus
      dev
via-ideid ""
        
gpio-in "" 2
        addr 
0c.1
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class IDE controlleraddr 00:0c.1pci id 1106:0571 (sub 1af4:1100)
        
bar 0i/o at 0x1000 [0x1007]
        
bar 1i/o at 0x100c [0x100f]
        
bar 2i/o at 0x1010 [0x1017]
        
bar 3i/o at 0x101c [0x101f]
        
bar 4i/o at 0x1020 [0x102f]
        
buside.1
          type IDE
          dev
ide-cdid ""
            
drive "ide1-cd0"
            
backend_defaults "auto"
            
logical_block_size 512 (512 B)
            
physical_block_size 512 (512 B)
            
min_io_size (0 B)
            
opt_io_size (0 B)
            
discard_granularity 512 (512 B)
            
write-cache "auto"
            
share-rw false
            account
-invalid "auto"
            
account-failed "auto"
            
rerror "auto"
            
werror "auto"
            
ver "2.5+"
            
wwn (0x0)
            
serial "QM00003"
            
model ""
            
unit (0x0)
        
buside.0
          type IDE
          dev
ide-hdid ""
            
drive "ide0-hd1"
            
backend_defaults "auto"
            
logical_block_size 512 (512 B)
            
physical_block_size 512 (512 B)
            
min_io_size (0 B)
            
opt_io_size (0 B)
            
discard_granularity 512 (512 B)
            
write-cache "auto"
            
share-rw false
            account
-invalid "auto"
            
account-failed "auto"
            
rerror "auto"
            
werror "auto"
            
ver "2.5+"
            
wwn (0x0)
            
serial "QM00002"
            
model ""
            
cyls 4063 (0xfdf)
            
heads 16 (0x10)
            
secs 63 (0x3f)
            
lcyls (0x0)
            
lheads (0x0)
            
lsecs (0x0)
            
bios-chs-trans "lba"
            
rotation_rate (0x0)
            
unit (0x1)
          
devide-hdid ""
            
drive "ide0-hd0"
            
backend_defaults "auto"
            
logical_block_size 512 (512 B)
            
physical_block_size 512 (512 B)
            
min_io_size (0 B)
            
opt_io_size (0 B)
            
discard_granularity 512 (512 B)
            
write-cache "auto"
            
share-rw false
            account
-invalid "auto"
            
account-failed "auto"
            
rerror "auto"
            
werror "auto"
            
ver "2.5+"
            
wwn (0x0)
            
serial "QM00001"
            
model ""
            
cyls 4161 (0x1041)
            
heads 16 (0x10)
            
secs 63 (0x3f)
            
lcyls (0x0)
            
lheads (0x0)
            
lsecs (0x0)
            
bios-chs-trans "lba"
            
rotation_rate (0x0)
            
unit (0x0)
      
devvt8231-isaid ""
        
gpio-in "pirq" 4
        gpio
-out "" 1
        addr 
0c.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction true
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class ISA bridgeaddr 00:0c.0pci id 1106:8231 (sub 1af4:1100)
        
busisa.0
          type ISA
          dev
i8042id ""
            
gpio-in "ps2-mouse-input-irq" 1
            gpio
-in "ps2-kbd-input-irq" 1
            gpio
-out "" 2
            gpio
-out "a20" 1
            extended
-state true
            kbd
-throttle false
            kbd
-irq (0x1)
            
mouse-irq 12 (0xc)
          
devisa-fdcid ""
            
iobase 1008 (0x3f0)
            
irq (0x6)
            
dma (0x2)
            
fdtypeA "auto"
            
fdtypeB "auto"
            
fallback "288"
            
busfloppy-bus.0
              type floppy
-bus
              dev
floppyid ""
                
unit (0x0)
                
drive "floppy0"
                
backend_defaults "auto"
                
logical_block_size 512 (512 B)
                
physical_block_size 512 (512 B)
                
min_io_size (0 B)
                
opt_io_size (0 B)
                
discard_granularity 4294967295 (4 GiB)
                
write-cache "auto"
                
share-rw false
                account
-invalid "auto"
                
account-failed "auto"
                
drive-type "288"
          
devisa-serialid ""
            
index (0x0)
            
iobase 760 (0x2f8)
            
irq (0x4)
          
devisa-parallelid ""
            
index (0x0)
            
iobase 888 (0x378)
            
irq (0x7)
            
chardev "parallel0"
          
devvt8231-superioid ""
          
devmc146818rtcid ""
            
gpio-out "" 1
            base_year 
(0x0)
            
iobase 112 (0x70)
            
irq (0x8)
            
lost_tick_policy "discard"
          
devi8257id ""
            
base 192 (0xc0)
            
page-base 136 (0x88)
            
pageh-base = -(0xffffffffffffffff)
            
dshift (0x1)
          
devi8257id ""
            
base (0x0)
            
page-base 128 (0x80)
            
pageh-base = -(0xffffffffffffffff)
            
dshift (0x0)
          
devisa-pitid ""
            
gpio-in "" 1
            gpio
-out "" 1
            iobase 
64 (0x40)
          
devisa-i8259id ""
            
gpio-in "" 8
            gpio
-out "" 1
            iobase 
160 (0xa0)
            
elcr_addr 1233 (0x4d1)
            
elcr_mask 222 (0xde)
            
master false
          dev
isa-i8259id ""
            
gpio-in "" 8
            gpio
-out "" 1
            iobase 
32 (0x20)
            
elcr_addr 1232 (0x4d0)
            
elcr_mask 248 (0xf8)
            
master true
      dev
mv64361-pcibridgeid ""
        
addr 00.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Host bridgeaddr 00:00.0pci id 11ab:6460 (sub 1af4:1100)
  
devmv64361-pcihostid ""
    
index (0x0)
    
x-config-reg-migration-enabled true
    bypass
-iommu false
    bus
pci.0
      type PCI
      dev
vfio-pciid ""
        
host "0000:0b:00.1"
        
vf-token "00000000-0000-0000-0000-000000000000"
        
sysfsdev "/sys/bus/pci/devices/0000:0b:00.1"
        
x-pre-copy-dirty-page-tracking "on"
        
display "off"
        
xres (0x0)
        
yres (0x0)
        
x-intx-mmap-timeout-ms 1100 (0x44c)
        
x-vga false
        x
-req true
        x
-igd-opregion false
        enable
-migration "auto"
        
x-no-mmap false
        x
-balloon-allowed false
        x
-no-kvm-intx false
        x
-no-kvm-msi false
        x
-no-kvm-msix false
        x
-no-geforce-quirks false
        x
-no-kvm-ioeventfd false
        x
-no-vfio-ioeventfd false
        x
-pci-vendor-id 4098 (0x1002)
        
x-pci-device-id 43696 (0xaab0)
        
x-pci-sub-vendor-id 4294967295 (0xffffffff)
        
x-pci-sub-device-id 4294967295 (0xffffffff)
        
x-igd-gms (0x0)
        
x-nv-gpudirect-clique 255 (0xff)
        
x-msix-relocation "off"
        
addr 02.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Audio controlleraddr 00:02.0pci id 1002:aab0 (sub 1462:aab0)
        
bar 0mem at 0xffffffffffffffff [0x3ffe]
      
devvfio-pciid ""
        
host "0000:0b:00.0"
        
vf-token "00000000-0000-0000-0000-000000000000"
        
sysfsdev "/sys/bus/pci/devices/0000:0b:00.0"
        
x-pre-copy-dirty-page-tracking "on"
        
display "off"
        
xres (0x0)
        
yres (0x0)
        
x-intx-mmap-timeout-ms 1100 (0x44c)
        
x-vga true
        x
-req true
        x
-igd-opregion false
        enable
-migration "auto"
        
x-no-mmap false
        x
-balloon-allowed false
        x
-no-kvm-intx false
        x
-no-kvm-msi false
        x
-no-kvm-msix false
        x
-no-geforce-quirks false
        x
-no-kvm-ioeventfd false
        x
-no-vfio-ioeventfd false
        x
-pci-vendor-id 4098 (0x1002)
        
x-pci-device-id 26641 (0x6811)
        
x-pci-sub-vendor-id 4294967295 (0xffffffff)
        
x-pci-sub-device-id 4294967295 (0xffffffff)
        
x-igd-gms (0x0)
        
x-nv-gpudirect-clique 255 (0xff)
        
x-msix-relocation "off"
        
addr 01.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction true
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class VGA controlleraddr 00:01.0pci id 1002:6811 (sub 1462:3050)
        
bar 0mem at 0xc0000000 [0xcfffffff]
        
bar 2mem at 0xd0000000 [0xd003ffff]
        
bar 4i/o at 0x1000 [0x10ff]
        
bar 6mem at 0xffffffffffffffff [0x1fffe]
      
devmv64361-pcibridgeid ""
        
addr 00.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Host bridgeaddr 00:00.0pci id 11ab:6460 (sub 1af4:1100)
  
devmv64361id ""
    
gpio-in "gpp" 32
    gpio
-out "sysbus-irq" 1
    mmio ffffffffffffffff
/0000000000010000
(qemu)


info registers
(qemuinfo registers

CPU
#0
NIP 018038f0   LR 0184406c CTR 000fc478 XER 0003c474 CPU#0
MSR 0000d030 HID0 0410ccbc  HF 00004012 iidx 0 didx 0
TB 00000003 14728679347 DECR 19992
GPR00 00000000000fc3f0 000000006ff7efd0 00000000000fc3f8 00000000000fc3fc
GPR04 00000000000fc400 00000000000fc404 00000000000fc408 00000000000fc40c
GPR08 00000000000fc410 00000000000fc414 00000000000fc418 00000000000fc41c
GPR12 00000000000fc420 00000000000fc424 00000000000fc428 00000000000fc42c
GPR16 00000000000fc430 00000000000fc434 00000000000fc438 00000000000fc43c
GPR20 00000000000fc440 00000000000fc444 00000000000fc448 00000000000fc44c
GPR24 00000000000fc450 00000000000fc454 00000000000fc458 00000000000fc45c
GPR28 00000000000fc460 00000000000fc464 00000000000fc468 00000000000fc46c
CR 000fc470  
[ -  -  -  LO L  G  GO -  ]     RES 004@ffffffff
FPR00 
0000000082008000 407dc00000000000 0000000000000000 0000000000000000
FPR04 0000000000000000 43300000000000bf 4060000000000000 4050000000000000
FPR08 4050000000000000 3ff0000000000000 4050000000000000 4050000000000000
FPR12 4070000000000000 4330000000000100 0000000000000000 0000000000000000
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 82008000
 SRR0 
018038f0  SRR1 0000d030    PVR 80020102 VRSAVE 00000000
SPRG0 
02192590 SPRG1 0184406c  SPRG2 6ff7efd0  SPRG3 000fc3fc
SPRG4 00000000 SPRG5 00000000  SPRG6 00000000  SPRG7 00000000
 SDR1 0100007f   DAR 00000004  DSISR 40000000
(qemu)



info irq

(qemuinfo irq
IRQ statistics 
for 7457_v1.2-powerpc-cpu:
 
22208
 4
3804
 7
26
 8
3070656
10
152168
73
11
IRQ statistics 
for isa-i8259:
 
01164
 1
57
 2
4655
 9
693
12
3597
14
1531
15
632
(qemu)


info mtree
(qemuinfo mtree
address
-spacevia-ac97
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacecpu-memory-0
address
-spacememory
  0000000000000000
-ffffffffffffffff (prio 0i/o): system
    0000000000000000
-000000003fffffff (prio 0ram): pegasos2.ram
    
0000000080000000-00000000bfffffff (prio 0i/o): alias pci1-mem0-win @pci1-mem 0000000080000000-00000000bfffffff
    00000000c0000000
-00000000dfffffff (prio 0i/o): alias pci0-mem0-win @pci0-mem 00000000c0000000-00000000dfffffff
    00000000f1000000
-00000000f100ffff (prio 0i/o): mv64361
    00000000f8000000
-00000000f8ffffff (prio 0i/o): alias pci0-io-win @pci0-io 0000000000000000-0000000000ffffff
    00000000f9000000
-00000000f9ffffff (prio 0i/o): alias pci0-mem1-win @pci0-mem 0000000000000000-0000000000ffffff
    00000000fd000000
-00000000fdffffff (prio 0i/o): alias pci1-mem1-win @pci1-mem 0000000000000000-0000000000ffffff
    00000000fe000000
-00000000feffffff (prio 0i/o): alias pci1-io-win @pci1-io 0000000000000000-0000000000ffffff
    00000000ff800000
-00000000ffffffff (prio 0i/o): alias pci1-mem3-win @pci1-mem 00000000ff800000-00000000ffffffff
    00000000fff00000
-00000000fff7ffff (prio 0rom): pegasos2.rom

address
-spacemv64361-pcibridge
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container

address
-spacebochs-display
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container

address
-spacevia-mc97
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container

address
-spacevt82c686b-usb-uhci
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacemv64361-pcibridge
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacevfio-pci
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container

address
-spaceI/O
  0000000000000000
-000000000000ffff (prio 0i/o): io

address
-spacevt8231-isa
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacevia-ide
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacevt82c686b-usb-uhci
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacevt8231-pm
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container

address
-spacevfio-pci
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

memory
-regionsystem
  0000000000000000
-ffffffffffffffff (prio 0i/o): system
    0000000000000000
-000000003fffffff (prio 0ram): pegasos2.ram
    
0000000080000000-00000000bfffffff (prio 0i/o): alias pci1-mem0-win @pci1-mem 0000000080000000-00000000bfffffff
    00000000c0000000
-00000000dfffffff (prio 0i/o): alias pci0-mem0-win @pci0-mem 00000000c0000000-00000000dfffffff
    00000000f1000000
-00000000f100ffff (prio 0i/o): mv64361
    00000000f8000000
-00000000f8ffffff (prio 0i/o): alias pci0-io-win @pci0-io 0000000000000000-0000000000ffffff
    00000000f9000000
-00000000f9ffffff (prio 0i/o): alias pci0-mem1-win @pci0-mem 0000000000000000-0000000000ffffff
    00000000fd000000
-00000000fdffffff (prio 0i/o): alias pci1-mem1-win @pci1-mem 0000000000000000-0000000000ffffff
    00000000fe000000
-00000000feffffff (prio 0i/o): alias pci1-io-win @pci1-io 0000000000000000-0000000000ffffff
    00000000ff800000
-00000000ffffffff (prio 0i/o): alias pci1-mem3-win @pci1-mem 00000000ff800000-00000000ffffffff
    00000000fff00000
-00000000fff7ffff (prio 0rom): pegasos2.rom

memory
-regionpci1-mem
  0000000000000000
-00000000ffffffff (prio 0i/o): pci1-mem

memory
-regionpci0-mem
  0000000000000000
-00000000ffffffff (prio 0i/o): pci0-mem
    00000000000a0000
-00000000000bffff (prio 1i/o): vfio-vga-mmio@0xa0000
    00000000c0000000
-00000000cfffffff (prio 1i/o): 0000:0b:00.0 base BAR 0
      00000000c0000000
-00000000cfffffff (prio 0i/o): 0000:0b:00.0 BAR 0
    00000000d0000000
-00000000d003ffff (prio 1i/o): 0000:0b:00.0 base BAR 2
      00000000d0000000
-00000000d003ffff (prio 0i/o): 0000:0b:00.0 BAR 2
        00000000d0004000
-00000000d00040ff (prio 1i/o): vfio-ati-bar2-4000-quirk

memory
-regionpci0-io
  0000000000000000
-000000000000ffff (prio 0i/o): pci0-io
    00000000000003b0
-00000000000003bb (prio 1i/o): vfio-vga-io@0x3b0
    00000000000003c0
-00000000000003df (prio 1i/o): vfio-vga-io@0x3c0
      00000000000003c3
-00000000000003c3 (prio 0i/o): vfio-ati-3c3-quirk
    0000000000001000
-00000000000010ff (prio 1i/o): 0000:0b:00.0 base BAR 4
      0000000000001000
-00000000000010ff (prio 0i/o): 0000:0b:00.0 BAR 4
        0000000000001000
-0000000000001003 (prio 1i/o): vfio-ati-bar4-window-address-quirk
        0000000000001004
-0000000000001007 (prio 1i/o): vfio-ati-bar4-window-data-quirk

memory
-regionpci1-io
  0000000000000000
-000000000000ffff (prio 0i/o): pci1-io
    0000000000000000
-0000000000000007 (prio 0i/o): dma-chan
    
0000000000000008-000000000000000f (prio 0i/o): dma-cont
    0000000000000020
-0000000000000021 (prio 0i/o): pic
    0000000000000040
-0000000000000043 (prio 0i/o): pit
    0000000000000060
-0000000000000060 (prio 0i/o): i8042-data
    0000000000000064
-0000000000000064 (prio 0i/o): i8042-cmd
    0000000000000070
-0000000000000071 (prio 0i/o): rtc
      0000000000000070
-0000000000000070 (prio 0i/o): rtc-index
    
0000000000000081-0000000000000083 (prio 0i/o): dma-page
    
0000000000000087-0000000000000087 (prio 0i/o): dma-page
    
0000000000000089-000000000000008(prio 0i/o): dma-page
    
000000000000008f-000000000000008(prio 0i/o): dma-page
    00000000000000a0
-00000000000000a1 (prio 0i/o): pic
    00000000000000b2
-00000000000000b3 (prio 0i/o): apm-io
    00000000000000c0
-00000000000000cf (prio 0i/o): dma-chan
    00000000000000d0
-00000000000000df (prio 0i/o): dma-cont
    00000000000002f8
-00000000000002ff (prio 0i/o): serial
    
0000000000000378-000000000000037f (prio 0i/o): parallel
    00000000000003f1
-00000000000003f5 (prio 0i/o): fdc
    00000000000003f7
-00000000000003f7 (prio 0i/o): fdc
    00000000000004d0
-00000000000004d0 (prio 0i/o): elcr
    00000000000004d1
-00000000000004d1 (prio 0i/o): elcr
    0000000000000f00
-0000000000000f7f (prio 0i/o): via-pm
      0000000000000f00
-0000000000000f03 (prio 0i/o): acpi-evt
      0000000000000f04
-0000000000000f05 (prio 0i/o): acpi-cnt
      0000000000000f08
-0000000000000f0b (prio 0i/o): acpi-tmr
    0000000000001000
-0000000000001007 (prio 1i/o): via-ide0-data
    000000000000100c
-000000000000100f (prio 1i/o): via-ide0-cmd
    0000000000001010
-0000000000001017 (prio 1i/o): via-ide1-data
    000000000000101c
-000000000000101f (prio 1i/o): via-ide1-cmd
    0000000000001020
-000000000000102f (prio 1i/o): via-bmdma-container
      0000000000001020
-0000000000001023 (prio 0i/o): via-bmdma
      0000000000001024
-0000000000001027 (prio 0i/o): bmdma
      
0000000000001028-000000000000102b (prio 0i/o): via-bmdma
      000000000000102c
-000000000000102f (prio 0i/o): bmdma
    0000000000001030
-0000000000001033 (prio 1i/o): via-ac97.fm
    0000000000001034
-0000000000001037 (prio 1i/o): via-ac97.midi
    0000000000001040
-000000000000105f (prio 1i/o): uhci
    0000000000001060
-000000000000107f (prio 1i/o): uhci
    0000000000001100
-00000000000011ff (prio 1i/o): via-ac97.sgd

(qemu)

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balaton

sorry, looks like it auto-deleted after a short time.

Try This - I have updated the original post with it as well.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@derfs

AmigaOS still freezes after about 30 seconds.

Here is a picture of Ranger as it froze.

https://imgur.com/a/tNTZCYd

*edit*

debug output up to the freeze

http://crashlog.os4depot.net/cl434


Edited by derfs on 2023/7/8 14:52:40
Edited by derfs on 2023/7/8 17:31:28
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW

Yea i should be good now

run script in smartfirmware (copy and paste for now)

s" /pci@C0000000/display@1" find-device
open ( -- ) true ;
s" /pci@C0000000/display@1" open-dev to my-self

\ reg

0 0 h
# 00000800 encode-phys 0 encode-int encode+ 0 encode-int encode+
0 0 h# 42000810 encode-phys 0 encode-int encode+ h# 10000000 encode-int encode+
0 0 h# 02000818 encode-phys 0 encode-int encode+ h# 00040000 encode-int encode+
0 0 h# 01000820 encode-phys 0 encode-int encode+ h# 00000100 encode-int encode+
0 0 h# 02000830 encode-phys 0 encode-int encode+ h# 00020000 encode-int encode+
encodeencodeencodeencode" reg" property

\ assigned
-addresses

h
# C0000000 0 h# 42000810 encode-phys 0 encode-int encode+ h# 10000000 encode-int encode+
h# D0000000 0 h# 02000818 encode-phys 0 encode-int encode+ h# 00040000 encode-int encode+
h# F8001000 0 h# 01000820 encode-phys 0 encode-int encode+ h# 00000100 encode-int encode+
h# D0040000 0 h# 02000830 encode-phys 0 encode-int encode+ h# 00020000 encode-int encode+ 
encodeencodeencode" assigned-addresses" property

device
-end


show-devs

ok show-devs
/ (chrp)
/
openprom
/openprom/client-services
/aliases
/options
/packages
/packages/terminal-emulator
/packages/deblocker
/packages/disk-label
/packages/obp-tftp
/chosen
/memory@(memory)
/
cpus
/cpus/PowerPC,74x7 (cpu)
/
cpus/PowerPC,74x7/l2-cache (l2-cache)
/
cpus/PowerPC,74x7/l3-cache (l3-cache)
/
rtas
/failsafe (serial)
/
pci@80000000 (pci)
/
pci@80000000/host@0
/pci@80000000/display@1
/pci@80000000/isa@(isa)
/
pci@80000000/isa@C/serial@i2F8 (serial)
/
pci@80000000/isa@C/8042@i60 ()
/
pci@80000000/isa@C/keyboard@i60 (keyboard)
/
pci@80000000/isa@C/rtc@i70 (rtc)
/
pci@80000000/isa@C/timer@i40 (timer)
/
pci@80000000/isa@C/fdc@i3F0 (fdc)
/
pci@80000000/isa@C/lpt@i3BC (lpt)
/
pci@80000000/ide@C,(spi)
/
pci@80000000/ide@C,1/cdrom@1,(block)
/
pci@80000000/usb@C,(usb)
/
pci@80000000/usb@C,(usb)
/
pci@80000000/other@C,4
/pci@80000000/sound@C,5
/pci@80000000/pci1106,3068@C,6
/pci@C0000000 (pci)
/
pci@C0000000/host@0
/pci@C0000000/display@1
/pci@C0000000/pci1002,AAB0@2
/bootconsole (bootconsole)
ok


show-pci-full

ok show-pci-full
Br Bus Dv F Vend Dev  Vendor         Chip         Description
===============================================================================
 
0   0  0 0 11AB 6460 Marvell        MV6436x      System Controller for PowerPC Processors
 0   0  1 0 1234 1111 Technical                   
                      8000.0008
-          80FF.FFFF BAR 0 MEM
                      8100.0000
-          8100.0FFF BAR 2 MEM
 0   0 12 0 1106 8231 VIA            VT8231       PCI to ISA Bridge
 0   0 12 1 1106 0571 VIA            VT82C586
/596/686 PCI IDE Controller
                      0000.1001
-          0000.1007 BAR 0 I/O
                      0000.100D
-          0000.100F BAR 1 I/O
                      0000.1011
-          0000.1017 BAR 2 I/O
                      0000.101D
-          0000.101F BAR 3 I/O
                      0000.1021
-          0000.102F BAR 4 I/O
 0   0 12 2 1106 3038 VIA            VT83C572     PCI USB Controller
                      0000.1041
-          0000.105F BAR 4 I/O
 0   0 12 3 1106 3038 VIA            VT83C572     PCI USB Controller
                      0000.1061
-          0000.107F BAR 4 I/O
 0   0 12 4 1106 8235 VIA            VT8235       Power Management Controller
 0   0 12 5 1106 3058 VIA            VT82C686A
/B  AC97 Audio Codec
                      0000.1101
-          0000.11FF BAR 0 I/O
                      0000.1031
-          0000.1033 BAR 1 I/O
                      0000.1035
-          0000.1037 BAR 2 I/O
 0   0 12 6 1106 3068 VIA            VT82C686
/686A/686B AC97 Modem Codec
 1   0  0 0 11AB 6460 Marvell        MV6436x      System Controller 
for PowerPC Processors
 1   0  1 0 1002 6811 ATI                         
            0000.0000
.C000.000C-0000.0001.CFFF.FFFF BAR 1 MEM
            0000.0000
.D000.0004-0000.0001.D003.FFFF BAR 3 MEM
                      0000.1001
-          0000.10FF BAR 4 I/O
                      D004.0000
-          D005.FFFF BIOS  MEM
 1   0  2 0 1002 AAB0 ATI                         
            0000.0000
.D006.0004-0000.0001.D006.3FFF BAR 1 MEM
ok


.properties (/pci@C0000000/display@1)

ok cd /pci@C0000000/display@1
ok 
.properties
vendor
-id             0x1002 (4098)
device-id             0x6811 (26641)
revision-id           0x0 (0)
class-
code            0x30000 (196608)
subsystem-id          0x1462 (5218)
subsystem-vendor-id   0x3050 (12368)
.
vendor-name          "ATI"
.class                "Display Controller"
.subclass             "PC Compatible"
interrupts            0x1 (1)
devsel-speed          0x0 (0)
min-grant             0x0 (0)
max-latency           0x0 (0)
rom                   [0x20000 bytes]
    [
00055AA80E9 71020000 00000000 00000000
    
[01000000000 00000000 24020000 00004942
    [
0204DD3F49B 00000000 00000000 00000004
    
[03020373631 32393535 32300000 00000000
    
[04069020000 00000000 FE010000 00000000
    
[05031312F30 362F3133 2030303A 31350000
    
[06033000000 E9580300 E9670300 0000D800
    
[07080000060 A06000C0 10526210 00840000
    [080] 
C428100A 00000008 00000000 00000300
    
[090] 1E3E7800 80B85840 2C0DA501 0022D020
    
[0A000000000 00000000 004048B0 94305758
    
[0B0007F92C3 00000000 00000000 9E000000
    
[0C0] 00000900 00000000 00000000 00000000
    
[0D000000000 00000000 3131332D 43363330
    
[0E030313030 2D583031 00435552 4143414F
    
[0F0] 00504349 5F455850 52455353 00474444
    
[1005235000D 0A313133 2D4D5349 54563330
    
[110354D532E 31303320 43363330 30312043
    
[12055524143 414F2050 524F2044 44523520
    
[13036344D78 33322032 47422020 20202020
    
[14020202020 20202020 20202020 20202020
    
[150200D0A00 0D0A200D 0A002843 29203139
    
[16038382D32 3031302C 20416476 616E6365
    
[17064204D69 63726F20 44657669 6365732C
    
[18020496E63 2E004154 4F4D4249 4F53424B
    
[1902D414D44 20564552 3031352E 3034312E
    
[1A03030302E 3030302E 30303330 33380056
    
[1B033303530 31532E45 31342000 39373230
    
[1C036362020 00323736 35363320 20002020
    
[1D020202020 20200043 36333030 315F4355
    
[1E052414341 4F5F5052 4F5F4744 355F3247
    
[1F0425C636F 6E666967 2E680000 00902400
[
skipped]

name                  "display"
reg                   1:0
                      mp1
,0,10,0:10000000
                      m1
,0,18,0:40000
                      i1
,0,20,0:100
                      m1
,0,30,0:20000
assigned
-addresses    mp1,0,10,C0000000:10000000
                      m1
,0,18,D0000000:40000
                      i1
,0,20,F8001000:100
                      m1
,0,30,D0040000:20000
ok


linux lspci -vvvv

0001:01:01.0 VGA compatible controllerAdvanced Micro DevicesInc. [AMD/ATICuracao PRO [Radeon R
9 270
]
    
SubsystemMicro-Star International Co., Ltd. [MSIDevice 3050
    Control
I/OMemBusMasterSpecCycleMemWINVVGASnoopParErrSteppingSERRFastB2B-
 
DisINTx-
    
StatusCap66MHzUDFFastB2BParErrDEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PER
R
INTx-
    
Interruptpin A routed to IRQ 9
    Region 0
Memory at c0000000 (64-bitprefetchable) [disabled] [size=256M]
    
Region 2Memory at d0000000 (64-bitnon-prefetchable) [disabled] [size=256K]
    
Region 4I/O ports at 1000 [disabled] [size=256]
    
Expansion ROM at d0040000 [disabled] [size=128K]
    
Capabilities: [48Vendor Specific InformationLen=08 <?>
    Capabilities: [50] Power Management version 3
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
        DevCap:    MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
            ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
        DevCtl:    Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
            MaxPayload 256 bytes, MaxReadReq 512 bytes
        DevSta:    CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
        LnkCap:    Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1u
s
            ClockPM- Surprise- LLActRep- BwNot-
        LnkCtl:    ASPM Disabled; RCB 64 bytes Disabled- CommClk+
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta:    Speed 8GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported
        DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
        LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase
1+
             EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest-

0001:01:02.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Ra
deon HD 7700/7800 Series]
    Subsystem: Micro-Star International Co., Ltd. [MSI] Device aab0
    Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
 DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PER
R- INTx-
    Interrupt: pin B routed to IRQ 9
    Region 0: Memory at d0060000 (64-bit, non-prefetchable) [disabled] [size=16K]
    Capabilities: [48] Vendor Specific Information: Len=08 <?>
    Capabilities: [50] Power Management version 3
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
        DevCap:    MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
            ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
        DevCtl:    Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
            MaxPayload 256 bytes, MaxReadReq 512 bytes
        DevSta:    CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
        LnkCap:    Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1u
s
            ClockPM- Surprise- LLActRep- BwNot-
        LnkCtl:    ASPM Disabled; RCB 64 bytes Disabled- CommClk+
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta:    Speed 8GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported
        DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
        LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase
1-
             EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-


OS4 next...

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW

I have added it to the AGP socket (pci.0) so the values will always be the same now, as everything else will be on the other bus.

The values are in my previous post.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@derfs

Passthrough GFX card is on pci.0 (agp)

I have removed sound and network devices

qemu-system-ppc \
    
-L pc-bios -M pegasos2 -bios pegasos2.rom -vga none \
    
-cpu 7457 -m 1024 \
    
-rtc base=localtime -serial stdio \
    
-cdrom iso/debian-8.11.0-powerpc-CD-1.iso \
    
-device VGA,romfile="" \
    
-device vfio-pci,host=0b:00.0,multifunction=on,x-vga=on,bus=pci.0 \
    
-device vfio-pci,host=0b:00.1,bus=pci.0


show-devs

ok show-devs
/ (chrp)
/
openprom
/openprom/client-services
/aliases
/options
/packages
/packages/terminal-emulator
/packages/deblocker
/packages/disk-label
/packages/obp-tftp
/chosen
/memory@(memory)
/
cpus
/cpus/PowerPC,74x7 (cpu)
/
cpus/PowerPC,74x7/l2-cache (l2-cache)
/
cpus/PowerPC,74x7/l3-cache (l3-cache)
/
rtas
/failsafe (serial)
/
pci@80000000 (pci)
/
pci@80000000/host@0
/pci@80000000/display@1
/pci@80000000/isa@(isa)
/
pci@80000000/isa@C/serial@i2F8 (serial)
/
pci@80000000/isa@C/8042@i60 ()
/
pci@80000000/isa@C/keyboard@i60 (keyboard)
/
pci@80000000/isa@C/rtc@i70 (rtc)
/
pci@80000000/isa@C/timer@i40 (timer)
/
pci@80000000/isa@C/fdc@i3F0 (fdc)
/
pci@80000000/isa@C/lpt@i3BC (lpt)
/
pci@80000000/ide@C,(spi)
/
pci@80000000/ide@C,1/cdrom@1,(block)
/
pci@80000000/usb@C,(usb)
/
pci@80000000/usb@C,(usb)
/
pci@80000000/other@C,4
/pci@80000000/sound@C,5
/pci@80000000/pci1106,3068@C,6
/pci@C0000000 (pci)
/
pci@C0000000/host@0
/pci@C0000000/display@1
/pci@C0000000/pci1002,AAB0@2
/bootconsole (bootconsole)


smartfirmware show-pci-full - before script

(ignore the BAR numbers being odd-numbers, as I believe thats a simple bug in the code for displaying the data for 64-bit BARs - increments the number by 1 before displaying it!)

ok show-pci-full
Br Bus Dv F Vend Dev  Vendor         Chip         Description
===============================================================================
 
0   0  0 0 11AB 6460 Marvell        MV6436x      System Controller for PowerPC Processors
 0   0  1 0 1234 1111 Technical                   
                      8000.0008
-          80FF.FFFF BAR 0 MEM
                      8100.0000
-          8100.0FFF BAR 2 MEM
 0   0 12 0 1106 8231 VIA            VT8231       PCI to ISA Bridge
 0   0 12 1 1106 0571 VIA            VT82C586
/596/686 PCI IDE Controller
                      0000.1001
-          0000.1007 BAR 0 I/O
                      0000.100D
-          0000.100F BAR 1 I/O
                      0000.1011
-          0000.1017 BAR 2 I/O
                      0000.101D
-          0000.101F BAR 3 I/O
                      0000.1021
-          0000.102F BAR 4 I/O
 0   0 12 2 1106 3038 VIA            VT83C572     PCI USB Controller
                      0000.1041
-          0000.105F BAR 4 I/O
 0   0 12 3 1106 3038 VIA            VT83C572     PCI USB Controller
                      0000.1061
-          0000.107F BAR 4 I/O
 0   0 12 4 1106 8235 VIA            VT8235       Power Management Controller
 0   0 12 5 1106 3058 VIA            VT82C686A
/B  AC97 Audio Codec
                      0000.1101
-          0000.11FF BAR 0 I/O
                      0000.1031
-          0000.1033 BAR 1 I/O
                      0000.1035
-          0000.1037 BAR 2 I/O
 0   0 12 6 1106 3068 VIA            VT82C686
/686A/686B AC97 Modem Codec
 1   0  0 0 11AB 6460 Marvell        MV6436x      System Controller 
for PowerPC Processors
 1   0  1 0 1002 6811 ATI                         
            0000.0000
.C000.000C-0000.0001.CFFF.FFFF BAR 1 MEM
            0000.0000
.D000.0004-0000.0001.D003.FFFF BAR 3 MEM
                      0000.1001
-          0000.10FF BAR 4 I/O
                      D004.0000
-          D005.FFFF BIOS  MEM
 1   0  2 0 1002 AAB0 ATI                         
            0000.0000
.D006.0004-0000.0001.D006.3FFF BAR 1 MEM
ok


smartfirmware .properties (/pci@C0000000/display@1) - before script

ok cd /pci@C0000000/display@1
ok 
.properties
vendor
-id             0x1002 (4098)
device-id             0x6811 (26641)
revision-id           0x0 (0)
class-
code            0x30000 (196608)
subsystem-id          0x1462 (5218)
subsystem-vendor-id   0x3050 (12368)
.
vendor-name          "ATI"
.class                "Display Controller"
.subclass             "PC Compatible"
interrupts            0x1 (1)
devsel-speed          0x0 (0)
min-grant             0x0 (0)
max-latency           0x0 (0)
rom                   [0x20000 bytes]
    [
00055AA80E9 71020000 00000000 00000000
    
[01000000000 00000000 24020000 00004942
    [
0204DD3F49B 00000000 00000000 00000004
    
[03020373631 32393535 32300000 00000000
    
[04069020000 00000000 FE010000 00000000
    
[05031312F30 362F3133 2030303A 31350000
    
[06033000000 E9580300 E9670300 0000D800
    
[07080000060 A06000C0 10526210 00840000
    [080] 
C428100A 00000008 00000000 00000300
    
[090] 1E3E7800 80B85840 2C0DA501 0022D020
    
[0A000000000 00000000 004048B0 94305758
    
[0B0007F92C3 00000000 00000000 9E000000
    
[0C0] 00000900 00000000 00000000 00000000
    
[0D000000000 00000000 3131332D 43363330
    
[0E030313030 2D583031 00435552 4143414F
    
[0F0] 00504349 5F455850 52455353 00474444
    
[1005235000D 0A313133 2D4D5349 54563330
    
[110354D532E 31303320 43363330 30312043
    
[12055524143 414F2050 524F2044 44523520
    
[13036344D78 33322032 47422020 20202020
    
[14020202020 20202020 20202020 20202020
    
[150200D0A00 0D0A200D 0A002843 29203139
    
[16038382D32 3031302C 20416476 616E6365
    
[17064204D69 63726F20 44657669 6365732C
    
[18020496E63 2E004154 4F4D4249 4F53424B
    
[1902D414D44 20564552 3031352E 3034312E
    
[1A03030302E 3030302E 30303330 33380056
    
[1B033303530 31532E45 31342000 39373230
    
[1C036362020 00323736 35363320 20002020
    
[1D020202020 20200043 36333030 315F4355
    
[1E052414341 4F5F5052 4F5F4744 355F3247
    
[1F0425C636F 6E666967 2E680000 00902400
[
skipped]

name                  "display"
reg                   1:0
                      xp1
,0,10,0:10000000
                      x1
,0,18,0:40000
                      i1
,0,20,0:100
                      m1
,0,30,0:20000
assigned
-addresses    xp1,0,10,C0000000:10000000
                      x1
,0,18,D0000000:40000
                      i1
,0,20,F8001000:100
                      m1
,0,30,D0040000:20000
ok


linux lspci -vvvv

0001:01:01.0 VGA compatible controllerAdvanced Micro DevicesInc. [AMD/ATICuracao PRO [Radeon R
9 270
]
    
SubsystemMicro-Star International Co., Ltd. [MSIDevice 3050
    Control
I/OMemBusMasterSpecCycleMemWINVVGASnoopParErrSteppingSERRFastB2B-
 
DisINTx-
    
StatusCap66MHzUDFFastB2BParErrDEVSEL=fast >TAbort- <TAbortSERR- <PER
R
INTx-
    
Interruptpin A routed to IRQ 9
    Region 0
Memory at c0000000 (64-bitprefetchable) [disabled] [size=256M]
    
Region 2Memory at d0000000 (64-bitnon-prefetchable) [disabled] [size=256K]
    
Region 4I/O ports at 1000 [disabled] [size=256]
    
Expansion ROM at d0040000 [disabled] [size=128K]
    
Capabilities: [48Vendor Specific InformationLen=08 
    
Capabilities: [50Power Management version 3
        Flags
PMEClkDSID1D2AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
        
StatusD0 NoSoftRstPME-EnableDSel=0 DScale=0 PME-
    
Capabilities: [58Express (v2Legacy EndpointMSI 00
        DevCap
:    MaxPayload 256 bytesPhantFunc 0Latency L0s <4usL1 unlimited
            ExtTag
AttnBtnAttnIndPwrIndRBEFLReset-
        
DevCtl:    Report errorsCorrectableNon-FatalFatalUnsupported-
            
RlxdOrdExtTagPhantFuncAuxPwrNoSnoop+
            
MaxPayload 256 bytesMaxReadReq 512 bytes
        DevSta
:    CorrErrUncorrErrFatalErrUnsuppReqAuxPwrTransPend-
        
LnkCap:    Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 TAbort- <TAbort- SERR- <PER
RINTx-
    
Interruptpin B routed to IRQ 9
    Region 0
Memory at d0060000 (64-bitnon-prefetchable) [disabled] [size=16K]
    
Capabilities: [48Vendor Specific InformationLen=08 
    
Capabilities: [50Power Management version 3
        Flags
PMEClkDSID1D2AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
        
StatusD0 NoSoftRstPME-EnableDSel=0 DScale=0 PME-
    
Capabilities: [58Express (v2Legacy EndpointMSI 00
        DevCap
:    MaxPayload 256 bytesPhantFunc 0Latency L0s <4usL1 unlimited
            ExtTag
AttnBtnAttnIndPwrIndRBEFLReset-
        
DevCtl:    Report errorsCorrectableNon-FatalFatalUnsupported-
            
RlxdOrdExtTagPhantFuncAuxPwrNoSnoop+
            
MaxPayload 256 bytesMaxReadReq 512 bytes
        DevSta
:    CorrErrUncorrErrFatalErrUnsuppReqAuxPwrTransPend-
        
LnkCap:    Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1u
s
            ClockPM
SurpriseLLActRepBwNot-
        
LnkCtl:    ASPM DisabledRCB 64 bytes DisabledCommClk+
            
ExtSynchClockPMAutWidDisBWIntAutBWInt-
        
LnkSta:    Speed 8GT/sWidth x8TrErrTrainSlotClkDLActiveBWMgmtABWMgmt-
        
DevCap2Completion TimeoutNot SupportedTimeoutDis-, LTR-, OBFF Not Supported
        DevCtl2
Completion Timeout50us to 50msTimeoutDis-, LTR-, OBFF Disabled
        LnkSta2
Current De-emphasis Level: -3.5dBEqualizationComplete-, EqualizationPhase
1
-
             
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-


after script values will follow soon...

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW
Quote:
I’ve managed to determine that the hangs in os4 are not specific to networking. If I add emulated sound hardware, it hangs too. I will try disabling the startup sound and see if I can use the os just without actually triggering any sound in which case I may be able to get some device info and stuff but of course I’ll be limited in what I can do.


I have tried the script you gave me, and I am getting the same result - The GFX card is recognised so OS4 boots to workbench, but the whole OS hangs after a short amount of time.

I will get the Linux iso on usb and boot from that to get some pci output, both with and without the script. That was the autopilot kicking in there... dont need to do that for QEMU :)


Edited by derfs on 2023/7/8 15:03:51
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW

thats correct - 1st with romfile="", 2nd without.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW

good point!

reg                   4:0
                      xp4
,0,10,0:10000000
                      x4
,0,18,0:40000
                      i4
,0,20,0:100
                      m4
,0,30,0:20000
assigned
-addresses    xp4,0,10,90000000:10000000
                      x4
,0,18,80080000:40000
                      i4
,0,20,FE001200:100
                      m4
,0,30,80020000:20000

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinW

I am using a R9 R270 2Gb graphics card as passthrough, and I have the latest Radeon and 3D drivers if you think its worth trying?

reg                   4:0
                      xp4
,0,10,0:10000000
                      x4
,0,18,0:40000
                      i4
,0,20,0:100
assigned
-addresses    xp4,0,10,90000000:10000000
                      x4
,0,18,80080000:40000
                      i4
,0,20,FE001200:100

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@kas1eQuote:

@derfs
Do you have real pegasos2 as well ? Maybe you had PCI to PCIe bridge lying around to test ? I only can have bridge in next 2-3 weeks only, so can't test myself.


Sorry, I dont have an actual Peg2. The only OS4 H/W I have is a X5000/20.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MartinWQuote:


I also need to properly map the audio side of the card as well.


There is no AmigaOS4 driver for HDMI audio at the present time, so it could be left as-is (for now).

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


I also have this showing in the os4 debug output, not sure what it means.

There is a large 15-20 second delay after 'MISC_TIMING 00000000' shows, and then once the table shows the OS boots as normal.

...
Booting configuration AmigaOS_4.1_Final_Edition
gfx AltiVec
/VMX enabled      [########################################] 100 %
gfx PPC74xx optimizations enabled
SYSTEM_CTRL 00100000
MISC_CTRL 00100001
MISC_TIMING 00000000
0000
00 FF FF FF FF FF FF 00 49 14 34 12 00 00 00 00  ........I.4.....
00102A 18 01 04 A5 20 14 78 06 EE 91 A3 54 4C 99 26  *......x....TL.&
00200F 50 54 21 08 00 E1 C0 D1 C0 D1 00 A9 40 B3 00  .PT!.........@..
003095 00 81 80 81 40 EA 29 00 C0 51 20 1C 30 40 26  .....@.)..Q..0@&
004044 40 45 CB 10 00 00 18 00 00 00 F7 00 0A 00 40  D@E............@
005082 00 28 20 00 00 00 00 00 00 00 00 00 FD 00 32  ..(............2
0060
7D 1E A0 FF 01 0A 20 20 20 20 20 20 00 00 00 FC  }...............
007000 51 45 4D 55 20 4D 6F 6E 69 74 6F 72 0A 00 3B  .QEMU.Monitor..;
0080: 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0090: 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00A000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00B000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00C000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00D000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00E000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00F000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
peg2ide.device 53.20 (24.9.2014)
...

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balaton

Pegasos 2 with sm501 for gfx, and radeon R9 270 passthrough

qemu monitor output

(qemuinfo qtree
bus
main-system-bus
  type System
  dev
ps2-mouseid ""
    
gpio-out "" 1
  dev
ps2-kbdid ""
    
gpio-out "" 1
  dev
mv64361-pcihostid ""
    
index (0x1)
    
x-config-reg-migration-enabled true
    bypass
-iommu false
    bus
pci.1
      type PCI
      dev
vfio-pciid ""
        
host "0000:0b:00.1"
        
vf-token "00000000-0000-0000-0000-000000000000"
        
sysfsdev "/sys/bus/pci/devices/0000:0b:00.1"
        
x-pre-copy-dirty-page-tracking "on"
        
display "off"
        
xres (0x0)
        
yres (0x0)
        
x-intx-mmap-timeout-ms 1100 (0x44c)
        
x-vga false
        x
-req true
        x
-igd-opregion false
        enable
-migration "auto"
        
x-no-mmap false
        x
-balloon-allowed false
        x
-no-kvm-intx false
        x
-no-kvm-msi false
        x
-no-kvm-msix false
        x
-no-geforce-quirks false
        x
-no-kvm-ioeventfd false
        x
-no-vfio-ioeventfd false
        x
-pci-vendor-id 4098 (0x1002)
        
x-pci-device-id 43696 (0xaab0)
        
x-pci-sub-vendor-id 4294967295 (0xffffffff)
        
x-pci-sub-device-id 4294967295 (0xffffffff)
        
x-igd-gms (0x0)
        
x-nv-gpudirect-clique 255 (0xff)
        
x-msix-relocation "off"
        
addr 03.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Audio controlleraddr 00:03.0pci id 1002:aab0 (sub 1462:aab0)
        
bar 0mem at 0xffffffffffffffff [0x3ffe]
      
devvfio-pciid ""
        
host "0000:0b:00.0"
        
vf-token "00000000-0000-0000-0000-000000000000"
        
sysfsdev "/sys/bus/pci/devices/0000:0b:00.0"
        
x-pre-copy-dirty-page-tracking "on"
        
display "off"
        
xres (0x0)
        
yres (0x0)
        
x-intx-mmap-timeout-ms 1100 (0x44c)
        
x-vga true
        x
-req true
        x
-igd-opregion false
        enable
-migration "auto"
        
x-no-mmap false
        x
-balloon-allowed false
        x
-no-kvm-intx false
        x
-no-kvm-msi false
        x
-no-kvm-msix false
        x
-no-geforce-quirks false
        x
-no-kvm-ioeventfd false
        x
-no-vfio-ioeventfd false
        x
-pci-vendor-id 4098 (0x1002)
        
x-pci-device-id 26641 (0x6811)
        
x-pci-sub-vendor-id 4294967295 (0xffffffff)
        
x-pci-sub-device-id 4294967295 (0xffffffff)
        
x-igd-gms (0x0)
        
x-nv-gpudirect-clique 255 (0xff)
        
x-msix-relocation "off"
        
addr 02.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction true
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class VGA controlleraddr 00:02.0pci id 1002:6811 (sub 1462:3050)
        
bar 0mem at 0xffffffffffffffff [0xffffffe]
        
bar 2mem at 0xffffffffffffffff [0x3fffe]
        
bar 4i/o at 0xffffffffffffffff [0xfe]
        
bar 6mem at 0xffffffffffffffff [0x1fffe]
      
devsm501id ""
        
vram-size 67108864 (0x4000000)
        
x-pixman (0x7)
        
addr 01.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        
class Display controlleraddr 00:01.0pci id 126f:0501 (sub 1af4:1100)
        
bar 0mem at 0x80000000 [0x83ffffff]
        
bar 1mem at 0x84000000 [0x841fffff]
        
bussm501.i2c
          type i2c
-bus
          dev
i2c-ddcid ""
            
xres 1280 (0x500)
            
yres 800 (0x320)
            
xmax (0x0)
            
ymax (0x0)
            
refresh_rate (0x0)
            
address 80 (0x50)


When booted into AmigaOS4 the 64-bit memory BARs are also missing from the passthrough GPU (host = "0000:0b:00.x") but the 32-bit I/O BAR is showing.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@derfsQuote:
derfs wrote:@geennaamQuote:
geennaam wrote:@derfs

You need to add another device. For example -device sm501.

Your "black window" will display a line that the guest has initialized the display yet. Now click with your mouse button inside that window and type " /failsafe" io. An OK prompt will now appear on your terminal from which you've started qemu.

From there you can enter the usual boot command

Alternatively you can add a non existing VGA device: -device VGA,romfile=""

In case of my Radeon 9250, it suddenly shows the Smartfirmware output.


This is what i get when running qemu - I have stripped out extra devices, such as the passthrough gpu, and drives for now. I get a similar "UNHANDLED INT 10" issue with the passthrough gpu though.

qemu-system-ppc -L pc-bios -machine pegasos2 -bios pegasos2.rom -cdrom Peg2InstallCD.iso -serial stdio -vga none -device sm501 -device ati-vga
PegasosII Boot Strap 
(c2002-2003 bplan GmbH
Running on CPU PVR
:000C0209
Enable L1 ICache
...                                                    Done.
Reading W83194 :                                                       FAILED.
Setting Front Side Bus to 133MHz...                                    FAILED.
Configuring DDR...                                                     Done.
Configuring PCI0...                                                    Done.
Configuring PCI1...                                                    Done.
Configuring ETH...                                                     Done.
Releasing IDE reset ...                                                Done.
Configuring Legacy Devices
Initializing KBD
...                                                    Done.
Testing 10000000 BytesPass00000000 Failed00000000
RAM TEST 
(fill linear)...                                              Done.
FFFFFFFF

SmartFirmware
:
cpu0PowerPC,G4 CPUClock 599 Mhz BUSClock 133 Mhz (Version 0x000C,0x0209)
no/bad nvramrc performing default startup script
channel 1 unit 0 
atapi QEMU DVD-ROM                             2.5+    
ATA device not present or not responding
MISC
UNHANDLED 32 BIT DATA PREFIX
AT CS
:IP 0000C000:000033EF 99
INTERNAL ERROR
0000000A=UNHANDLED 32BIT PREFIX

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=0000 ESI=0000 EDI=0000
 AX
=1407  BX=0190  CX=4E04  DX=0000  SP=FFAE  BP=FFD2  SI=0008  DI=0280
 
DS=1000  ES=C000  SS=1000  CS=C000  IP=33F1   NV UP -- PL NZ NA PO NC
CS
:IP 66  
STACK
0000 0000 0000 0000 0000 0000 0000 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 MISCUNHANDLED 32 BIT DATA PREFIX
AT CS
:IP 0000C000:000033F1 F7
INTERNAL ERROR
0000000A=UNHANDLED 32BIT PREFIX

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=0000 ESI=0000 EDI=0000
 AX
=1407  BX=0190  CX=4E04  DX=0000  SP=FFAE  BP=FFD2  SI=0008  DI=0280
 
DS=1000  ES=C000  SS=1000  CS=C000  IP=33F2   NV UP -- PL NZ NA PO NC
CS
:IP F7  
STACK
0000 0000 0000 0000 0000 0000 0000 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 
Failed to emulate CS
:IP [C000:33F1]=66,F7,FE,66,0F,B7
UNHANDLED INT 10 
FUNCTION 0100 WITHIN EMULATION
EA
BYTE READ FROM UNINITIALIZED LOW MEM 0040:0085
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
entering main read
/eval loop...
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION


If I click into the 'black window' to type " /failsafe" io, then it adds extra UNHANDLED lines for every key press, and OK does not appear. Something must be different or not set up correctly.


My issue was my keyboard keymap (en-gb) was different between QEMU and the OS, so instead of " (shift+2 for me) it was using @.

That took a while but I can play around with passthrough a bit more now.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@geennaamQuote:
geennaam wrote:@derfs

You need to add another device. For example -device sm501.

Your "black window" will display a line that the guest has initialized the display yet. Now click with your mouse button inside that window and type " /failsafe" io. An OK prompt will now appear on your terminal from which you've started qemu.

From there you can enter the usual boot command

Alternatively you can add a non existing VGA device: -device VGA,romfile=""

In case of my Radeon 9250, it suddenly shows the Smartfirmware output.


This is what i get when running qemu - I have stripped out extra devices, such as the passthrough gpu, and drives for now. I get a similar "UNHANDLED INT 10" issue with the passthrough gpu though.

qemu-system-ppc -L pc-bios -machine pegasos2 -bios pegasos2.rom -cdrom Peg2InstallCD.iso -serial stdio -vga none -device sm501 -device ati-vga
PegasosII Boot Strap 
(c2002-2003 bplan GmbH
Running on CPU PVR
:000C0209
Enable L1 ICache
...                                                    Done.
Reading W83194 :                                                       FAILED.
Setting Front Side Bus to 133MHz...                                    FAILED.
Configuring DDR...                                                     Done.
Configuring PCI0...                                                    Done.
Configuring PCI1...                                                    Done.
Configuring ETH...                                                     Done.
Releasing IDE reset ...                                                Done.
Configuring Legacy Devices
Initializing KBD
...                                                    Done.
Testing 10000000 BytesPass00000000 Failed00000000
RAM TEST 
(fill linear)...                                              Done.
FFFFFFFF

SmartFirmware
:
cpu0PowerPC,G4 CPUClock 599 Mhz BUSClock 133 Mhz (Version 0x000C,0x0209)
no/bad nvramrc performing default startup script
channel 1 unit 0 
atapi QEMU DVD-ROM                             2.5+    
ATA device not present or not responding
MISC
UNHANDLED 32 BIT DATA PREFIX
AT CS
:IP 0000C000:000033EF 99
INTERNAL ERROR
0000000A=UNHANDLED 32BIT PREFIX

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=0000 ESI=0000 EDI=0000
 AX
=1407  BX=0190  CX=4E04  DX=0000  SP=FFAE  BP=FFD2  SI=0008  DI=0280
 
DS=1000  ES=C000  SS=1000  CS=C000  IP=33F1   NV UP -- PL NZ NA PO NC
CS
:IP 66  
STACK
0000 0000 0000 0000 0000 0000 0000 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 MISCUNHANDLED 32 BIT DATA PREFIX
AT CS
:IP 0000C000:000033F1 F7
INTERNAL ERROR
0000000A=UNHANDLED 32BIT PREFIX

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=0000 ESI=0000 EDI=0000
 AX
=1407  BX=0190  CX=4E04  DX=0000  SP=FFAE  BP=FFD2  SI=0008  DI=0280
 
DS=1000  ES=C000  SS=1000  CS=C000  IP=33F2   NV UP -- PL NZ NA PO NC
CS
:IP F7  
STACK
0000 0000 0000 0000 0000 0000 0000 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 
Failed to emulate CS
:IP [C000:33F1]=66,F7,FE,66,0F,B7
UNHANDLED INT 10 
FUNCTION 0100 WITHIN EMULATION
EA
BYTE READ FROM UNINITIALIZED LOW MEM 0040:0085
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
entering main read
/eval loop...
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION


If I click into the 'black window' to type " /failsafe" io, then it adds extra UNHANDLED lines for every key press, and OK does not appear. Something must be different or not set up correctly.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@geennaamQuote:
geennaam wrote:@balaton

Ah, I didn't get this "guest has not initialized the display (yet)" output. Just some QEMU command prompt.

I've now added the bogus VGA device like you've suggested and now the " /failsafe" io command works. AmigaOS4.1 boots and loads all the kernel modules but that's it. Display doesn't get initialized on HD 4850. No signal at all. As a second tests, I've added the sm501 again as second display device but this simulated display isn't initialized as well. That probably means that the Radeon driver hangs the system.
Now I didn't add the lastest and greatest HD driver from enhancer. So this is something I might test next. Currently the install CD contains the old demo driver.

Edit1: No difference with enhancer 2.2 Radeon HD driver.
Edit2: disabling compositing or adding a hd4850 romfile doesn't make a difference either


I cant get beyond this bit, no matter where i type " /failsafe" io - can you share your run script so i can see where im going wrong?

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@MaijestroQuote:


Writing virtio-gfx for AmigaOs4.1 would probably not be the only thing, I'm not sure but also in Qemu Peg2 there would probably have to be big changes to make it all work. Or would this change only require the guest system including virtio-gfx driver. Qemu PPC already supports virtio?

What I actually wanted to say would have to provide only the driver for AmigaOs4.1, or would be also under Qemu adjustments necessary.


Just think of it as another device, such as sm501, but its missing the AmigaOS driver part.

Display devices:
name "ati-vga"bus PCI
name 
"bochs-display"bus PCI
name 
"cirrus-vga"bus PCIdesc "Cirrus CLGD 54xx VGA"
name "secondary-vga"bus PCI
name 
"sm501"bus PCIdesc "SM501 Display Controller"
name "VGA"bus PCI
name 
"virtio-gpu-device"bus virtio-bus
name 
"virtio-gpu-gl-device"bus virtio-bus
name 
"virtio-gpu-gl-pci"bus PCIalias "virtio-gpu-gl"
name "virtio-gpu-pci"bus PCIalias "virtio-gpu"

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balatonQuote:
balaton wrote:@derfs

First of all what is gpu.rom, where did you get that and why is it needed?

Its the bios on the R9 270 card im using for passthrough, but its a left-over from trying different things to see if it made any difference. It didnt.
Quote:

The pegasos2 version at least tries to run the BIOS so it can at least see the card. Did you try to boot anyway and see what happens when the AmigaOS or MorphOS driver starts and if it can init the card itself?

I tried a few things and could not get it to work.
Quote:


The sam460ex case does not seem to work at all, likely because we need more of the PCIe controller emulated. In the info qtree output the ROM is mapped at 0xa0000000 but if you check info mtree there's nothing there. Probably we need similar PCI windows for the PCIe bus that we have for PCI bus but I'm not sure which registers should control that.

I would guess its more complicated due to the single SATA sharing the PCIe x1 signals - link.

Thank you for your contributions over the years to get this emulation to a point where its very usable.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balaton

Sam460 - adding gfx card as pcie

Commandline

qemu-system-ppc -machine sam460ex -m 2048 -rtc base=localtime -serial stdio -vga none -device vfio-pci,host=0000:0b:00.0,bus=pcie.1,multifunction=on,x-vga=on,romfile=gpu.rom -cdrom Sam460InstallCD-53.58-patched.iso


Serial

U-Boot 2010.06.05 (Jul 08 2018 22:45:33)

CPU:   AMCC PowerPC 460EX RevB at 1150 MHz (PLB=230 OPB=115 EBC=115)
       
No Security/Kasumi support
       Bootstrap Option A 
Boot ROM Location EBC (8 bits)
       
Internal PCI arbiter disabled
       32 kB I
-Cache 32 kB D-Cache
Board
Sam460exPCIe 4x SATA-2
I2C
:   ready
DRAM
:  2 GiB (ECC not enabled460 MHzCL0)
*** 
Warning bad CRCusing default environment

PCI
:   Bus Dev VenId DevId Class Int
        00  01  1095  3112  0104  00
        00  06  126f  0501  
0380  00
PCIE1
successfully set as root-complex
Net
:   ppc_4xx_eth0
FPGA
:  Revision 00 (20 0-00-00)
SM502found
VGA
:   ERROR EXECUTING BIOS


info qtree

(qemuinfo qtree
bus
main-system-bus
  type System
  dev
cfi.pflash01id ""
    
drive ""
    
num-blocks 16 (0x10)
    
sector-length 65536 (0x10000)
    
width (0x1)
    
device-width (0x0)
    
max-device-width (0x0)
    
big-endian true
    secure 
false
    id0 
137 (0x89)
    
id1 24 (0x18)
    
id2 (0x0)
    
id3 (0x0)
    
name "sam460ex.flash"
    
old-multiple-chip-handling false
    mmio 00000004fff00000
/0000000000100000
  dev
serial-mmid ""
    
gpio-out "sysbus-irq" 1
    regshift 
(0x0)
    
endianness (0x1)
    
mmio ffffffffffffffff/0000000000000008
  
devppc440-pcix-hostid ""
    
gpio-out "sysbus-irq" 1
    x
-config-reg-migration-enabled true
    bypass
-iommu false
    mmio 0000000c0ec00000
/00000000000800ff
    bus
pci.0
      type PCI
      dev
sii3112id ""
        
gpio-in "" 2
        addr 
01.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        class 
RAID controlleraddr 00:01.0pci id 1095:3112 (sub 1af4:1100)
        
bar 0i/o at 0x1000 [0x1007]
        
bar 1i/o at 0x1008 [0x100b]
        
bar 2i/o at 0x1010 [0x1017]
        
bar 3i/o at 0x1018 [0x101b]
        
bar 4i/o at 0x1020 [0x102f]
        
bar 5mem at 0x80000000 [0x800001ff]
        
buside.1
          type IDE
        bus
ide.0
          type IDE
      dev
sm501id ""
        
vram-size 67108864 (0x4000000)
        
x-pixman (0x7)
        
addr 06.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        class 
Display controlleraddr 00:06.0pci id 126f:0501 (sub 1af4:1100)
        
bar 0mem at 0x84000000 [0x87ffffff]
        
bar 1mem at 0x88000000 [0x881fffff]
        
bussm501.i2c
          type i2c
-bus
          dev
i2c-ddcid ""
            
xres 1280 (0x500)
            
yres 800 (0x320)
            
xmax (0x0)
            
ymax (0x0)
            
refresh_rate (0x0)
            
address 80 (0x50)
      
devppc4xx-host-bridgeid ""
        
addr 00.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        class 
Bridgeaddr 00:00.0pci id 1014:027f (sub 1014:cafe)
  
devppc460ex-pcie-hostid ""
    
gpio-out "sysbus-irq" 4
    dcrn
-base 288 (0x120)
    
x-config-reg-migration-enabled true
    bypass
-iommu false
    bus
pcie.1
      type PCIE
      dev
vfio-pciid ""
        
host "0000:0b:00.0"
        
sysfsdev "/sys/bus/pci/devices/0000:0b:00.0"
        
x-pre-copy-dirty-page-tracking "on"
        
display "off"
        
xres (0x0)
        
yres (0x0)
        
x-intx-mmap-timeout-ms 1100 (0x44c)
        
x-vga true
        x
-req true
        x
-igd-opregion false
        x
-enable-migration false
        x
-no-mmap false
        x
-balloon-allowed false
        x
-no-kvm-intx false
        x
-no-kvm-msi false
        x
-no-kvm-msix false
        x
-no-geforce-quirks false
        x
-no-kvm-ioeventfd false
        x
-no-vfio-ioeventfd false
        x
-pci-vendor-id 4098 (0x1002)
        
x-pci-device-id 26641 (0x6811)
        
x-pci-sub-vendor-id 4294967295 (0xffffffff)
        
x-pci-sub-device-id 4294967295 (0xffffffff)
        
x-igd-gms (0x0)
        
x-nv-gpudirect-clique 255 (0xff)
        
x-msix-relocation "off"
        
addr 00.0
        romfile 
"gpu.rom"
        
romsize 131072 (0x20000)
        
rombar (0x1)
        
multifunction true
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        class 
VGA controlleraddr 00:00.0pci id 1002:6811 (sub 1462:3050)
        
bar 0mem at 0xffffffffffffffff [0xffffffe]
        
bar 2mem at 0xb0000000 [0xb003ffff]
        
bar 4i/o at 0x1000 [0x10ff]
        
bar 6mem at 0xa0000000 [0xa001ffff]
  
devppc460ex-pcie-hostid ""
    
gpio-out "sysbus-irq" 4
    dcrn
-base 256 (0x100)
    
x-config-reg-migration-enabled true
    bypass
-iommu false
    bus
pcie.0
      type PCIE
  dev
sysbus-ohciid ""
    
gpio-out "sysbus-irq" 1
    masterbus 
"usb-bus.0"
    
num-ports (0x6)
    
firstport (0x0)
    
dma-offset (0x0)
    
mmio 00000004bffd0000/0000000000000100
  dev
ppc4xx-ehci-usbid ""
    
gpio-out "sysbus-irq" 1
    maxframes 
128 (0x80)
    
companion-enable true
    mmio 00000004bffd0400
/0000000000001000
    bus
usb-bus.0
      type usb
-bus
      dev
usb-mouseid ""
        
usb_version (0x2)
        
port ""
        
serial ""
        
msos-desc true
        pcap 
""
        
addr 0.3port 2speed 480name QEMU USB Mouseattached
      dev
usb-kbdid ""
        
usb_version (0x2)
        
display ""
        
port ""
        
serial ""
        
msos-desc true
        pcap 
""
        
addr 0.2port 1speed 480name QEMU USB Keyboardattached
  dev
ppc4xx-malid ""
    
gpio-out "sysbus-irq" 4
    txc
-num (0x4)
    
rxc-num 16 (0x10)
  
devppc4xx-ebcid ""
  
devppc4xx-i2cid ""
    
gpio-out "sysbus-irq" 1
    mmio 00000004ef600800
/0000000000000012
    bus
i2c
      type i2c
-bus
  dev
ppc4xx-i2cid ""
    
gpio-out "sysbus-irq" 1
    mmio 00000004ef600700
/0000000000000012
    bus
i2c
      type i2c
-bus
      dev
m41t80id ""
        
address 104 (0x68)
      
devsmbus-eepromid ""
        
address 80 (0x50)
  
devppc4xx-sdram-ddr2id ""
    
nbanks (0x1)
  
devppc-uicid ""
    
gpio-in "" 32
    gpio
-out "sysbus-irq" 2
    dcr
-base 240 (0xf0)
    use-
vectors true
  dev
ppc-uicid ""
    
gpio-in "" 32
    gpio
-out "sysbus-irq" 2
    dcr
-base 224 (0xe0)
    use-
vectors true
  dev
ppc-uicid ""
    
gpio-in "" 32
    gpio
-out "sysbus-irq" 2
    dcr
-base 208 (0xd0)
    use-
vectors true
  dev
ppc-uicid ""
    
gpio-in "" 32
    gpio
-out "sysbus-irq" 2
    dcr
-base 192 (0xc0)
    use-
vectors true
  dev
ppc4xx-plbid ""
(qemu)

Go to top



TopTop
« 1 2 (3) 4 5 6 ... 13 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project