Who's Online |
122 user(s) are online ( 89 user(s) are browsing Forums)
Members: 1
Guests: 121
K-L,
more...
|
|
Headlines |
-
mce.lha - game/utility
Apr 23, 2024
-
theme_list.lha - utility/misc
Apr 23, 2024
-
faac.lha - audio/convert
Apr 22, 2024
-
faad2.lha - audio/convert
Apr 22, 2024
-
seq.lha - audio/misc
Apr 22, 2024
-
libfaac.lha - development/library/audio
Apr 22, 2024
-
libfaad.lha - development/library/audio
Apr 22, 2024
-
image2pdf.lha - utility/text/convert
Apr 22, 2024
-
libharfbuzz.lha - development/library/graphics
Apr 20, 2024
-
libpng.lha - development/library/graphics
Apr 20, 2024
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 17:49
#41
|
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
(qemu) info qtree
bus: main-system-bus
type System
dev: ps2-mouse, id ""
gpio-out "" 1
dev: ps2-kbd, id ""
gpio-out "" 1
dev: mv64361-pcihost, id ""
index = 1 (0x1)
x-config-reg-migration-enabled = true
bypass-iommu = false
bus: pci.1
type PCI
dev: bochs-display, id ""
vgamem = 16777216 (16 MiB)
edid = true
xres = 1280 (0x500)
yres = 800 (0x320)
xmax = 0 (0x0)
ymax = 0 (0x0)
refresh_rate = 0 (0x0)
addr = 01.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Display controller, addr 00:01.0, pci id 1234:1111 (sub 1af4:1100)
bar 0: mem at 0xffffffffffffffff [0xfffffe]
bar 2: mem at 0xffffffffffffffff [0xffe]
dev: via-mc97, id ""
addr = 0c.6
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Class 0780, addr 00:0c.6, pci id 1106:3068 (sub 1af4:1100)
dev: via-ac97, id ""
audiodev = "none"
addr = 0c.5
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Audio controller, addr 00:0c.5, pci id 1106:3058 (sub 1af4:1100)
bar 0: i/o at 0x1100 [0x11ff]
bar 1: i/o at 0x1030 [0x1033]
bar 2: i/o at 0x1034 [0x1037]
dev: vt8231-pm, id ""
addr = 0c.4
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Bridge, addr 00:0c.4, pci id 1106:8235 (sub 1af4:1100)
bus: i2c
type i2c-bus
dev: smbus-eeprom, id ""
address = 87 (0x57)
dev: vt82c686b-usb-uhci, id ""
bandwidth = 1280 (0x500)
maxframes = 128 (0x80)
addr = 0c.3
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class USB controller, addr 00:0c.3, pci id 1106:3038 (sub 1af4:1100)
bar 4: i/o at 0x1060 [0x107f]
bus: usb-bus.1
type usb-bus
dev: vt82c686b-usb-uhci, id ""
bandwidth = 1280 (0x500)
maxframes = 128 (0x80)
addr = 0c.2
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class USB controller, addr 00:0c.2, pci id 1106:3038 (sub 1af4:1100)
bar 4: i/o at 0x1040 [0x105f]
bus: usb-bus.0
type usb-bus
dev: via-ide, id ""
gpio-in "" 2
addr = 0c.1
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class IDE controller, addr 00:0c.1, pci id 1106:0571 (sub 1af4:1100)
bar 0: i/o at 0x1000 [0x1007]
bar 1: i/o at 0x100c [0x100f]
bar 2: i/o at 0x1010 [0x1017]
bar 3: i/o at 0x101c [0x101f]
bar 4: i/o at 0x1020 [0x102f]
bus: ide.1
type IDE
dev: ide-cd, id ""
drive = "ide1-cd0"
backend_defaults = "auto"
logical_block_size = 512 (512 B)
physical_block_size = 512 (512 B)
min_io_size = 0 (0 B)
opt_io_size = 0 (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 = 0 (0x0)
serial = "QM00003"
model = ""
unit = 0 (0x0)
bus: ide.0
type IDE
dev: ide-hd, id ""
drive = "ide0-hd1"
backend_defaults = "auto"
logical_block_size = 512 (512 B)
physical_block_size = 512 (512 B)
min_io_size = 0 (0 B)
opt_io_size = 0 (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 = 0 (0x0)
serial = "QM00002"
model = ""
cyls = 4063 (0xfdf)
heads = 16 (0x10)
secs = 63 (0x3f)
lcyls = 0 (0x0)
lheads = 0 (0x0)
lsecs = 0 (0x0)
bios-chs-trans = "lba"
rotation_rate = 0 (0x0)
unit = 1 (0x1)
dev: ide-hd, id ""
drive = "ide0-hd0"
backend_defaults = "auto"
logical_block_size = 512 (512 B)
physical_block_size = 512 (512 B)
min_io_size = 0 (0 B)
opt_io_size = 0 (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 = 0 (0x0)
serial = "QM00001"
model = ""
cyls = 4161 (0x1041)
heads = 16 (0x10)
secs = 63 (0x3f)
lcyls = 0 (0x0)
lheads = 0 (0x0)
lsecs = 0 (0x0)
bios-chs-trans = "lba"
rotation_rate = 0 (0x0)
unit = 0 (0x0)
dev: vt8231-isa, id ""
gpio-in "pirq" 4
gpio-out "" 1
addr = 0c.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = true
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class ISA bridge, addr 00:0c.0, pci id 1106:8231 (sub 1af4:1100)
bus: isa.0
type ISA
dev: i8042, id ""
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 = 1 (0x1)
mouse-irq = 12 (0xc)
dev: isa-fdc, id ""
iobase = 1008 (0x3f0)
irq = 6 (0x6)
dma = 2 (0x2)
fdtypeA = "auto"
fdtypeB = "auto"
fallback = "288"
bus: floppy-bus.0
type floppy-bus
dev: floppy, id ""
unit = 0 (0x0)
drive = "floppy0"
backend_defaults = "auto"
logical_block_size = 512 (512 B)
physical_block_size = 512 (512 B)
min_io_size = 0 (0 B)
opt_io_size = 0 (0 B)
discard_granularity = 4294967295 (4 GiB)
write-cache = "auto"
share-rw = false
account-invalid = "auto"
account-failed = "auto"
drive-type = "288"
dev: isa-serial, id ""
index = 0 (0x0)
iobase = 760 (0x2f8)
irq = 4 (0x4)
dev: isa-parallel, id ""
index = 0 (0x0)
iobase = 888 (0x378)
irq = 7 (0x7)
chardev = "parallel0"
dev: vt8231-superio, id ""
dev: mc146818rtc, id ""
gpio-out "" 1
base_year = 0 (0x0)
iobase = 112 (0x70)
irq = 8 (0x8)
lost_tick_policy = "discard"
dev: i8257, id ""
base = 192 (0xc0)
page-base = 136 (0x88)
pageh-base = -1 (0xffffffffffffffff)
dshift = 1 (0x1)
dev: i8257, id ""
base = 0 (0x0)
page-base = 128 (0x80)
pageh-base = -1 (0xffffffffffffffff)
dshift = 0 (0x0)
dev: isa-pit, id ""
gpio-in "" 1
gpio-out "" 1
iobase = 64 (0x40)
dev: isa-i8259, id ""
gpio-in "" 8
gpio-out "" 1
iobase = 160 (0xa0)
elcr_addr = 1233 (0x4d1)
elcr_mask = 222 (0xde)
master = false
dev: isa-i8259, id ""
gpio-in "" 8
gpio-out "" 1
iobase = 32 (0x20)
elcr_addr = 1232 (0x4d0)
elcr_mask = 248 (0xf8)
master = true
dev: mv64361-pcibridge, id ""
addr = 00.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Host bridge, addr 00:00.0, pci id 11ab:6460 (sub 1af4:1100)
dev: mv64361-pcihost, id ""
index = 0 (0x0)
x-config-reg-migration-enabled = true
bypass-iommu = false
bus: pci.0
type PCI
dev: vfio-pci, id ""
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 = 0 (0x0)
yres = 0 (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 = 0 (0x0)
x-nv-gpudirect-clique = 255 (0xff)
x-msix-relocation = "off"
addr = 02.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Audio controller, addr 00:02.0, pci id 1002:aab0 (sub 1462:aab0)
bar 0: mem at 0xffffffffffffffff [0x3ffe]
dev: vfio-pci, id ""
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 = 0 (0x0)
yres = 0 (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 = 0 (0x0)
x-nv-gpudirect-clique = 255 (0xff)
x-msix-relocation = "off"
addr = 01.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = true
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class VGA controller, addr 00:01.0, pci id 1002:6811 (sub 1462:3050)
bar 0: mem at 0xc0000000 [0xcfffffff]
bar 2: mem at 0xd0000000 [0xd003ffff]
bar 4: i/o at 0x1000 [0x10ff]
bar 6: mem at 0xffffffffffffffff [0x1fffe]
dev: mv64361-pcibridge, id ""
addr = 00.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Host bridge, addr 00:00.0, pci id 11ab:6460 (sub 1af4:1100)
dev: mv64361, id ""
gpio-in "gpp" 32
gpio-out "sysbus-irq" 1
mmio ffffffffffffffff/0000000000010000
(qemu)
info registers
(qemu) info 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
(qemu) info irq
IRQ statistics for 7457_v1.2-powerpc-cpu:
2: 2208
4: 3804
7: 26
8: 3070656
10: 152168
73: 11
IRQ statistics for isa-i8259:
0: 1164
1: 57
2: 4655
9: 693
12: 3597
14: 1531
15: 632
(qemu)
info mtree
(qemu) info mtree
address-space: via-ac97
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: cpu-memory-0
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system
0000000000000000-000000003fffffff (prio 0, ram): pegasos2.ram
0000000080000000-00000000bfffffff (prio 0, i/o): alias pci1-mem0-win @pci1-mem 0000000080000000-00000000bfffffff
00000000c0000000-00000000dfffffff (prio 0, i/o): alias pci0-mem0-win @pci0-mem 00000000c0000000-00000000dfffffff
00000000f1000000-00000000f100ffff (prio 0, i/o): mv64361
00000000f8000000-00000000f8ffffff (prio 0, i/o): alias pci0-io-win @pci0-io 0000000000000000-0000000000ffffff
00000000f9000000-00000000f9ffffff (prio 0, i/o): alias pci0-mem1-win @pci0-mem 0000000000000000-0000000000ffffff
00000000fd000000-00000000fdffffff (prio 0, i/o): alias pci1-mem1-win @pci1-mem 0000000000000000-0000000000ffffff
00000000fe000000-00000000feffffff (prio 0, i/o): alias pci1-io-win @pci1-io 0000000000000000-0000000000ffffff
00000000ff800000-00000000ffffffff (prio 0, i/o): alias pci1-mem3-win @pci1-mem 00000000ff800000-00000000ffffffff
00000000fff00000-00000000fff7ffff (prio 0, rom): pegasos2.rom
address-space: mv64361-pcibridge
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
address-space: bochs-display
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
address-space: via-mc97
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
address-space: vt82c686b-usb-uhci
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: mv64361-pcibridge
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: vfio-pci
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
address-space: I/O
0000000000000000-000000000000ffff (prio 0, i/o): io
address-space: vt8231-isa
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: via-ide
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: vt82c686b-usb-uhci
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
address-space: vt8231-pm
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
address-space: vfio-pci
0000000000000000-ffffffffffffffff (prio 0, i/o): bus master container
0000000000000000-ffffffffffffffff (prio 0, i/o): alias bus master @system 0000000000000000-ffffffffffffffff
memory-region: system
0000000000000000-ffffffffffffffff (prio 0, i/o): system
0000000000000000-000000003fffffff (prio 0, ram): pegasos2.ram
0000000080000000-00000000bfffffff (prio 0, i/o): alias pci1-mem0-win @pci1-mem 0000000080000000-00000000bfffffff
00000000c0000000-00000000dfffffff (prio 0, i/o): alias pci0-mem0-win @pci0-mem 00000000c0000000-00000000dfffffff
00000000f1000000-00000000f100ffff (prio 0, i/o): mv64361
00000000f8000000-00000000f8ffffff (prio 0, i/o): alias pci0-io-win @pci0-io 0000000000000000-0000000000ffffff
00000000f9000000-00000000f9ffffff (prio 0, i/o): alias pci0-mem1-win @pci0-mem 0000000000000000-0000000000ffffff
00000000fd000000-00000000fdffffff (prio 0, i/o): alias pci1-mem1-win @pci1-mem 0000000000000000-0000000000ffffff
00000000fe000000-00000000feffffff (prio 0, i/o): alias pci1-io-win @pci1-io 0000000000000000-0000000000ffffff
00000000ff800000-00000000ffffffff (prio 0, i/o): alias pci1-mem3-win @pci1-mem 00000000ff800000-00000000ffffffff
00000000fff00000-00000000fff7ffff (prio 0, rom): pegasos2.rom
memory-region: pci1-mem
0000000000000000-00000000ffffffff (prio 0, i/o): pci1-mem
memory-region: pci0-mem
0000000000000000-00000000ffffffff (prio 0, i/o): pci0-mem
00000000000a0000-00000000000bffff (prio 1, i/o): vfio-vga-mmio@0xa0000
00000000c0000000-00000000cfffffff (prio 1, i/o): 0000:0b:00.0 base BAR 0
00000000c0000000-00000000cfffffff (prio 0, i/o): 0000:0b:00.0 BAR 0
00000000d0000000-00000000d003ffff (prio 1, i/o): 0000:0b:00.0 base BAR 2
00000000d0000000-00000000d003ffff (prio 0, i/o): 0000:0b:00.0 BAR 2
00000000d0004000-00000000d00040ff (prio 1, i/o): vfio-ati-bar2-4000-quirk
memory-region: pci0-io
0000000000000000-000000000000ffff (prio 0, i/o): pci0-io
00000000000003b0-00000000000003bb (prio 1, i/o): vfio-vga-io@0x3b0
00000000000003c0-00000000000003df (prio 1, i/o): vfio-vga-io@0x3c0
00000000000003c3-00000000000003c3 (prio 0, i/o): vfio-ati-3c3-quirk
0000000000001000-00000000000010ff (prio 1, i/o): 0000:0b:00.0 base BAR 4
0000000000001000-00000000000010ff (prio 0, i/o): 0000:0b:00.0 BAR 4
0000000000001000-0000000000001003 (prio 1, i/o): vfio-ati-bar4-window-address-quirk
0000000000001004-0000000000001007 (prio 1, i/o): vfio-ati-bar4-window-data-quirk
memory-region: pci1-io
0000000000000000-000000000000ffff (prio 0, i/o): pci1-io
0000000000000000-0000000000000007 (prio 0, i/o): dma-chan
0000000000000008-000000000000000f (prio 0, i/o): dma-cont
0000000000000020-0000000000000021 (prio 0, i/o): pic
0000000000000040-0000000000000043 (prio 0, i/o): pit
0000000000000060-0000000000000060 (prio 0, i/o): i8042-data
0000000000000064-0000000000000064 (prio 0, i/o): i8042-cmd
0000000000000070-0000000000000071 (prio 0, i/o): rtc
0000000000000070-0000000000000070 (prio 0, i/o): rtc-index
0000000000000081-0000000000000083 (prio 0, i/o): dma-page
0000000000000087-0000000000000087 (prio 0, i/o): dma-page
0000000000000089-000000000000008b (prio 0, i/o): dma-page
000000000000008f-000000000000008f (prio 0, i/o): dma-page
00000000000000a0-00000000000000a1 (prio 0, i/o): pic
00000000000000b2-00000000000000b3 (prio 0, i/o): apm-io
00000000000000c0-00000000000000cf (prio 0, i/o): dma-chan
00000000000000d0-00000000000000df (prio 0, i/o): dma-cont
00000000000002f8-00000000000002ff (prio 0, i/o): serial
0000000000000378-000000000000037f (prio 0, i/o): parallel
00000000000003f1-00000000000003f5 (prio 0, i/o): fdc
00000000000003f7-00000000000003f7 (prio 0, i/o): fdc
00000000000004d0-00000000000004d0 (prio 0, i/o): elcr
00000000000004d1-00000000000004d1 (prio 0, i/o): elcr
0000000000000f00-0000000000000f7f (prio 0, i/o): via-pm
0000000000000f00-0000000000000f03 (prio 0, i/o): acpi-evt
0000000000000f04-0000000000000f05 (prio 0, i/o): acpi-cnt
0000000000000f08-0000000000000f0b (prio 0, i/o): acpi-tmr
0000000000001000-0000000000001007 (prio 1, i/o): via-ide0-data
000000000000100c-000000000000100f (prio 1, i/o): via-ide0-cmd
0000000000001010-0000000000001017 (prio 1, i/o): via-ide1-data
000000000000101c-000000000000101f (prio 1, i/o): via-ide1-cmd
0000000000001020-000000000000102f (prio 1, i/o): via-bmdma-container
0000000000001020-0000000000001023 (prio 0, i/o): via-bmdma
0000000000001024-0000000000001027 (prio 0, i/o): bmdma
0000000000001028-000000000000102b (prio 0, i/o): via-bmdma
000000000000102c-000000000000102f (prio 0, i/o): bmdma
0000000000001030-0000000000001033 (prio 1, i/o): via-ac97.fm
0000000000001034-0000000000001037 (prio 1, i/o): via-ac97.midi
0000000000001040-000000000000105f (prio 1, i/o): uhci
0000000000001060-000000000000107f (prio 1, i/o): uhci
0000000000001100-00000000000011ff (prio 1, i/o): via-ac97.sgd
(qemu)
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 17:32
#42
|
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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 14:30
#43
|
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
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 14:13
#44
|
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+
encode+ encode+ encode+ encode+ " 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+
encode+ encode+ encode+ " 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@0 (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@C (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,1 (spi)
/pci@80000000/ide@C,1/cdrom@1,0 (block)
/pci@80000000/usb@C,2 (usb)
/pci@80000000/usb@C,3 (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]
[000] 55AA80E9 71020000 00000000 00000000
[010] 00000000 00000000 24020000 00004942
[020] 4DD3F49B 00000000 00000000 00000004
[030] 20373631 32393535 32300000 00000000
[040] 69020000 00000000 FE010000 00000000
[050] 31312F30 362F3133 2030303A 31350000
[060] 33000000 E9580300 E9670300 0000D800
[070] 80000060 A06000C0 10526210 00840000
[080] C428100A 00000008 00000000 00000300
[090] 1E3E7800 80B85840 2C0DA501 0022D020
[0A0] 00000000 00000000 004048B0 94305758
[0B0] 007F92C3 00000000 00000000 9E000000
[0C0] 00000900 00000000 00000000 00000000
[0D0] 00000000 00000000 3131332D 43363330
[0E0] 30313030 2D583031 00435552 4143414F
[0F0] 00504349 5F455850 52455353 00474444
[100] 5235000D 0A313133 2D4D5349 54563330
[110] 354D532E 31303320 43363330 30312043
[120] 55524143 414F2050 524F2044 44523520
[130] 36344D78 33322032 47422020 20202020
[140] 20202020 20202020 20202020 20202020
[150] 200D0A00 0D0A200D 0A002843 29203139
[160] 38382D32 3031302C 20416476 616E6365
[170] 64204D69 63726F20 44657669 6365732C
[180] 20496E63 2E004154 4F4D4249 4F53424B
[190] 2D414D44 20564552 3031352E 3034312E
[1A0] 3030302E 3030302E 30303330 33380056
[1B0] 33303530 31532E45 31342000 39373230
[1C0] 36362020 00323736 35363320 20002020
[1D0] 20202020 20200043 36333030 315F4355
[1E0] 52414341 4F5F5052 4F5F4744 355F3247
[1F0] 425C636F 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 controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R
9 270]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3050
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 A routed to IRQ 9
Region 0: Memory at c0000000 (64-bit, prefetchable) [disabled] [size=256M]
Region 2: Memory at d0000000 (64-bit, non-prefetchable) [disabled] [size=256K]
Region 4: I/O ports at 1000 [disabled] [size=256]
Expansion ROM at d0040000 [disabled] [size=128K]
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-
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...
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 13:48
#45
|
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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 13:47
#46
|
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@0 (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@C (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,1 (spi)
/pci@80000000/ide@C,1/cdrom@1,0 (block)
/pci@80000000/usb@C,2 (usb)
/pci@80000000/usb@C,3 (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]
[000] 55AA80E9 71020000 00000000 00000000
[010] 00000000 00000000 24020000 00004942
[020] 4DD3F49B 00000000 00000000 00000004
[030] 20373631 32393535 32300000 00000000
[040] 69020000 00000000 FE010000 00000000
[050] 31312F30 362F3133 2030303A 31350000
[060] 33000000 E9580300 E9670300 0000D800
[070] 80000060 A06000C0 10526210 00840000
[080] C428100A 00000008 00000000 00000300
[090] 1E3E7800 80B85840 2C0DA501 0022D020
[0A0] 00000000 00000000 004048B0 94305758
[0B0] 007F92C3 00000000 00000000 9E000000
[0C0] 00000900 00000000 00000000 00000000
[0D0] 00000000 00000000 3131332D 43363330
[0E0] 30313030 2D583031 00435552 4143414F
[0F0] 00504349 5F455850 52455353 00474444
[100] 5235000D 0A313133 2D4D5349 54563330
[110] 354D532E 31303320 43363330 30312043
[120] 55524143 414F2050 524F2044 44523520
[130] 36344D78 33322032 47422020 20202020
[140] 20202020 20202020 20202020 20202020
[150] 200D0A00 0D0A200D 0A002843 29203139
[160] 38382D32 3031302C 20416476 616E6365
[170] 64204D69 63726F20 44657669 6365732C
[180] 20496E63 2E004154 4F4D4249 4F53424B
[190] 2D414D44 20564552 3031352E 3034312E
[1A0] 3030302E 3030302E 30303330 33380056
[1B0] 33303530 31532E45 31342000 39373230
[1C0] 36362020 00323736 35363320 20002020
[1D0] 20202020 20200043 36333030 315F4355
[1E0] 52414341 4F5F5052 4F5F4744 355F3247
[1F0] 425C636F 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 controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R
9 270]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3050
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PER
R- INTx-
Interrupt: pin A routed to IRQ 9
Region 0: Memory at c0000000 (64-bit, prefetchable) [disabled] [size=256M]
Region 2: Memory at d0000000 (64-bit, non-prefetchable) [disabled] [size=256K]
Region 4: I/O ports at 1000 [disabled] [size=256]
Expansion ROM at d0040000 [disabled] [size=128K]
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 TAbort- <TAbort- 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-
after script values will follow soon...
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/8 12:57
#47
|
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
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/7 15:10
#48
|
Not too shy to talk
|
@MartinW
thats correct - 1st with romfile="", 2nd without.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/7 15:02
#49
|
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
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/7 14:48
#50
|
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
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/7 14:45
#51
|
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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/7 14:17
#52
|
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).
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/2 19:41
#53
|
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.....
0010: 2A 18 01 04 A5 20 14 78 06 EE 91 A3 54 4C 99 26 *......x....TL.&
0020: 0F 50 54 21 08 00 E1 C0 D1 C0 D1 00 A9 40 B3 00 .PT!.........@..
0030: 95 00 81 80 81 40 EA 29 00 C0 51 20 1C 30 40 26 .....@.)..Q..0@&
0040: 44 40 45 CB 10 00 00 18 00 00 00 F7 00 0A 00 40 D@E............@
0050: 82 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 }...............
0070: 00 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 ................
00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
peg2ide.device 53.20 (24.9.2014)
...
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/2 19:36
#54
|
Not too shy to talk
|
@balaton Pegasos 2 with sm501 for gfx, and radeon R9 270 passthrough qemu monitor output
(qemu) info qtree
bus: main-system-bus
type System
dev: ps2-mouse, id ""
gpio-out "" 1
dev: ps2-kbd, id ""
gpio-out "" 1
dev: mv64361-pcihost, id ""
index = 1 (0x1)
x-config-reg-migration-enabled = true
bypass-iommu = false
bus: pci.1
type PCI
dev: vfio-pci, id ""
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 = 0 (0x0)
yres = 0 (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 = 0 (0x0)
x-nv-gpudirect-clique = 255 (0xff)
x-msix-relocation = "off"
addr = 03.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Audio controller, addr 00:03.0, pci id 1002:aab0 (sub 1462:aab0)
bar 0: mem at 0xffffffffffffffff [0x3ffe]
dev: vfio-pci, id ""
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 = 0 (0x0)
yres = 0 (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 = 0 (0x0)
x-nv-gpudirect-clique = 255 (0xff)
x-msix-relocation = "off"
addr = 02.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = true
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class VGA controller, addr 00:02.0, pci id 1002:6811 (sub 1462:3050)
bar 0: mem at 0xffffffffffffffff [0xffffffe]
bar 2: mem at 0xffffffffffffffff [0x3fffe]
bar 4: i/o at 0xffffffffffffffff [0xfe]
bar 6: mem at 0xffffffffffffffff [0x1fffe]
dev: sm501, id ""
vram-size = 67108864 (0x4000000)
x-pixman = 7 (0x7)
addr = 01.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
x-pcie-err-unc-mask = true
class Display controller, addr 00:01.0, pci id 126f:0501 (sub 1af4:1100)
bar 0: mem at 0x80000000 [0x83ffffff]
bar 1: mem at 0x84000000 [0x841fffff]
bus: sm501.i2c
type i2c-bus
dev: i2c-ddc, id ""
xres = 1280 (0x500)
yres = 800 (0x320)
xmax = 0 (0x0)
ymax = 0 (0x0)
refresh_rate = 0 (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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/7/2 18:09
#55
|
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 (c) 2002-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 Bytes, Pass: 00000000 Failed: 00000000
RAM TEST (fill linear)... Done.
FFFFFFFF
SmartFirmware:
cpu0: PowerPC,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 MISC: UNHANDLED 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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/6/26 22:37
#56
|
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 (c) 2002-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 Bytes, Pass: 00000000 Failed: 00000000
RAM TEST (fill linear)... Done.
FFFFFFFF
SmartFirmware:
cpu0: PowerPC,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 MISC: UNHANDLED 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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/6/26 19:33
#57
|
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?
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/6/25 22:07
#58
|
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 PCI, desc "Cirrus CLGD 54xx VGA"
name "secondary-vga", bus PCI
name "sm501", bus PCI, desc "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 PCI, alias "virtio-gpu-gl"
name "virtio-gpu-pci", bus PCI, alias "virtio-gpu"
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/6/25 21:54
#59
|
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.
|
|
|
|
Re: What the fastest possible x64 emulation way of OS4 today ?
|
Posted on: 2023/6/24 14:16
#60
|
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 Rev. B 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: Sam460ex, PCIe 4x + SATA-2
I2C: ready
DRAM: 2 GiB (ECC not enabled, 460 MHz, CL0)
*** Warning - bad CRC, using 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)
SM502: found
VGA: ERROR EXECUTING BIOS
info qtree
(qemu) info qtree
bus: main-system-bus
type System
dev: cfi.pflash01, id ""
drive = ""
num-blocks = 16 (0x10)
sector-length = 65536 (0x10000)
width = 1 (0x1)
device-width = 0 (0x0)
max-device-width = 0 (0x0)
big-endian = true
secure = false
id0 = 137 (0x89)
id1 = 24 (0x18)
id2 = 0 (0x0)
id3 = 0 (0x0)
name = "sam460ex.flash"
old-multiple-chip-handling = false
mmio 00000004fff00000/0000000000100000
dev: serial-mm, id ""
gpio-out "sysbus-irq" 1
regshift = 0 (0x0)
endianness = 1 (0x1)
mmio ffffffffffffffff/0000000000000008
dev: ppc440-pcix-host, id ""
gpio-out "sysbus-irq" 1
x-config-reg-migration-enabled = true
bypass-iommu = false
mmio 0000000c0ec00000/00000000000800ff
bus: pci.0
type PCI
dev: sii3112, id ""
gpio-in "" 2
addr = 01.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
class RAID controller, addr 00:01.0, pci id 1095:3112 (sub 1af4:1100)
bar 0: i/o at 0x1000 [0x1007]
bar 1: i/o at 0x1008 [0x100b]
bar 2: i/o at 0x1010 [0x1017]
bar 3: i/o at 0x1018 [0x101b]
bar 4: i/o at 0x1020 [0x102f]
bar 5: mem at 0x80000000 [0x800001ff]
bus: ide.1
type IDE
bus: ide.0
type IDE
dev: sm501, id ""
vram-size = 67108864 (0x4000000)
x-pixman = 7 (0x7)
addr = 06.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
class Display controller, addr 00:06.0, pci id 126f:0501 (sub 1af4:1100)
bar 0: mem at 0x84000000 [0x87ffffff]
bar 1: mem at 0x88000000 [0x881fffff]
bus: sm501.i2c
type i2c-bus
dev: i2c-ddc, id ""
xres = 1280 (0x500)
yres = 800 (0x320)
xmax = 0 (0x0)
ymax = 0 (0x0)
refresh_rate = 0 (0x0)
address = 80 (0x50)
dev: ppc4xx-host-bridge, id ""
addr = 00.0
romfile = ""
romsize = 4294967295 (0xffffffff)
rombar = 1 (0x1)
multifunction = false
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
class Bridge, addr 00:00.0, pci id 1014:027f (sub 1014:cafe)
dev: ppc460ex-pcie-host, id ""
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-pci, id ""
host = "0000:0b:00.0"
sysfsdev = "/sys/bus/pci/devices/0000:0b:00.0"
x-pre-copy-dirty-page-tracking = "on"
display = "off"
xres = 0 (0x0)
yres = 0 (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 = 0 (0x0)
x-nv-gpudirect-clique = 255 (0xff)
x-msix-relocation = "off"
addr = 00.0
romfile = "gpu.rom"
romsize = 131072 (0x20000)
rombar = 1 (0x1)
multifunction = true
x-pcie-lnksta-dllla = true
x-pcie-extcap-init = true
failover_pair_id = ""
acpi-index = 0 (0x0)
class VGA controller, addr 00:00.0, pci id 1002:6811 (sub 1462:3050)
bar 0: mem at 0xffffffffffffffff [0xffffffe]
bar 2: mem at 0xb0000000 [0xb003ffff]
bar 4: i/o at 0x1000 [0x10ff]
bar 6: mem at 0xa0000000 [0xa001ffff]
dev: ppc460ex-pcie-host, id ""
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-ohci, id ""
gpio-out "sysbus-irq" 1
masterbus = "usb-bus.0"
num-ports = 6 (0x6)
firstport = 0 (0x0)
dma-offset = 0 (0x0)
mmio 00000004bffd0000/0000000000000100
dev: ppc4xx-ehci-usb, id ""
gpio-out "sysbus-irq" 1
maxframes = 128 (0x80)
companion-enable = true
mmio 00000004bffd0400/0000000000001000
bus: usb-bus.0
type usb-bus
dev: usb-mouse, id ""
usb_version = 2 (0x2)
port = ""
serial = ""
msos-desc = true
pcap = ""
addr 0.3, port 2, speed 480, name QEMU USB Mouse, attached
dev: usb-kbd, id ""
usb_version = 2 (0x2)
display = ""
port = ""
serial = ""
msos-desc = true
pcap = ""
addr 0.2, port 1, speed 480, name QEMU USB Keyboard, attached
dev: ppc4xx-mal, id ""
gpio-out "sysbus-irq" 4
txc-num = 4 (0x4)
rxc-num = 16 (0x10)
dev: ppc4xx-ebc, id ""
dev: ppc4xx-i2c, id ""
gpio-out "sysbus-irq" 1
mmio 00000004ef600800/0000000000000012
bus: i2c
type i2c-bus
dev: ppc4xx-i2c, id ""
gpio-out "sysbus-irq" 1
mmio 00000004ef600700/0000000000000012
bus: i2c
type i2c-bus
dev: m41t80, id ""
address = 104 (0x68)
dev: smbus-eeprom, id ""
address = 80 (0x50)
dev: ppc4xx-sdram-ddr2, id ""
nbanks = 1 (0x1)
dev: ppc-uic, id ""
gpio-in "" 32
gpio-out "sysbus-irq" 2
dcr-base = 240 (0xf0)
use-vectors = true
dev: ppc-uic, id ""
gpio-in "" 32
gpio-out "sysbus-irq" 2
dcr-base = 224 (0xe0)
use-vectors = true
dev: ppc-uic, id ""
gpio-in "" 32
gpio-out "sysbus-irq" 2
dcr-base = 208 (0xd0)
use-vectors = true
dev: ppc-uic, id ""
gpio-in "" 32
gpio-out "sysbus-irq" 2
dcr-base = 192 (0xc0)
use-vectors = true
dev: ppc4xx-plb, id ""
(qemu)
|
|
|
|