Skip to contentSkip to conversation

qemu-system-ppc -M mac99 and -soundhw es1370 doesn't start

Qemu-devel Andrew Randrianasulu 2 participants 2 messages Jul 22, 2018 – Jul 24, 2018

lore
Share & tools
lore
#0 lore raw

Hello!

Currently I'm trying pre-releases of qemu, for avoiding situation when release was too bugged (2.12, for my taste ..qemu-system-alpha was broken, qemu-system-x86_64 -M q35 was broken ..)

using
qemu-system-ppc --version
QEMU emulator version 2.12.91 (v3.0.0-rc1-17-g5b3ecd3d94-dirty) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

I can't start qemu-system-ppc with -M mac99 and -soundhw es1370:

qemu-system-ppc -monitor stdio -soundhw es1370 -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) qemu-system-ppc: PCI bus not available for es1370

qemu-system-ppc64 starts fine:
emu-system-ppc64 -monitor stdio -soundhw es1370 -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) info pci
Bus 0, device 11, function 0:
Host bridge: PCI device 106b:004b
id ""
Bus 0, device 12, function 0:

    Class 65280: PCI device 106b:0022
      BAR0: 32 bit memory at 0x80000000 [0x8007ffff].
      id ""
  Bus  0, device  13, function 0:
    USB controller: PCI device 106b:003f
      IRQ 28.
      BAR0: 32 bit memory at 0x80080000 [0x800800ff].
      id ""
  Bus  0, device  14, function 0:
    VGA controller: PCI device 1234:1111
      BAR0: 32 bit prefetchable memory at 0x81000000 [0x81ffffff].
      BAR2: 32 bit memory at 0x82000000 [0x82000fff].
      BAR6: 32 bit memory at 0x82010000 [0x8201ffff].
      id ""
  Bus  0, device  15, function 0:
    Ethernet controller: PCI device 10ec:8029
      IRQ 30.
      BAR0: I/O at 0x1000 [0x10ff].
      BAR6: 32 bit memory at 0x82040000 [0x8207ffff].
      id ""
  Bus  0, device  16, function 0:
    Audio controller: PCI device 1274:5000
      IRQ 27.
      BAR0: I/O at 0x1100 [0x11ff].
      id ""

(qemu)

Note, I'm using 32-bit qemu build, configured like this:
setarch
i486 ./configure --prefix=/usr --disable-gtk --enable-virglrenderer --enable-sdl \ --with-sdlabi=2.0 --audio-drv-list=alsa,oss --host-cc=/opt/gcc49/bin/gcc \ --enable-opengl --extra-cflags="-I/usr/X11R7/include -O3 -march=i686 \ -mtune=native -m32 -Wno-maybe-uninitialized -Wno-nested-externs
\ -Wno-implicit-function-declaration" --disable-werror

for qemu-system-ppc -M mac99 'info pci' shows:

qemu-system-ppc -monitor stdio -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) info pci
Bus 0, device 11, function 0:
Host bridge: PCI device 106b:001f
id ""
Bus 0, device 12, function 0:

    Class 65280: PCI device 106b:0022
      BAR0: 32 bit memory at 0x80000000 [0x8007ffff].
      id ""
  Bus  0, device  13, function 0:
    USB controller: PCI device 106b:003f
      IRQ 28.
      BAR0: 32 bit memory at 0x80080000 [0x800800ff].
      id ""
  Bus  0, device  14, function 0:
    VGA controller: PCI device 1234:1111
      BAR0: 32 bit prefetchable memory at 0x81000000 [0x81ffffff].
      BAR2: 32 bit memory at 0x82000000 [0x82000fff].
      BAR6: 32 bit memory at 0x82010000 [0x8201ffff].
      id ""
  Bus  0, device  15, function 0:
    Ethernet controller: PCI device 10ec:8029
      IRQ 30.
      BAR0: I/O at 0x1000 [0x10ff].
      BAR6: 32 bit memory at 0x82040000 [0x8207ffff].
      id ""
  Bus  0, device  14, function 0:
    Host bridge: PCI device 106b:001e
      id ""
  Bus  0, device  11, function 0:
    Host bridge: PCI device 106b:0020
      id ""

(qemu)

Last two devices seems strange .....

Also, mouse seems to be confused, try finnix-ppc-110.iso (it enables gpm on startup, start like qemu-system-ppc -monitor stdio -M mac99 -cdrom ~/finnix-ppc-110.iso and try to move mouse inside qemu window. It feels like keyboard got some mouseclicks too? or mouse movement generates mouse button clicks, too) or http://cdimage.ubuntu.com/lubuntu/releases/16.04/release/ ->
[ ] lubuntu-16.04-desktop-powerpc.iso (but you must wait for nearly 10 min
until it finishes booting)

#1 lore raw
Quoted 6 lines · Andrew Randrianasulu

Hello!

Currently I'm trying pre-releases of qemu, for avoiding situation when release was too bugged (2.12, for my taste ..qemu-system-alpha was broken, qemu-system-x86_64 -M q35 was broken ..)

Quoted 6 lines

using
qemu-system-ppc --version
QEMU emulator version 2.12.91 (v3.0.0-rc1-17-g5b3ecd3d94-dirty) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

I can't start qemu-system-ppc with -M mac99 and -soundhw es1370:

I'm actually surprised that this could ever work at all, since -soundhw is a legacy PC option and certainly isn't included in regular testing of the PPC Mac machines.

The confusion comes from the fact that the mac99 machine has multiple PCI buses, and my guess is that recent fixes the 3.0 dev cycle could have broken an assumption in the old option code.

In theory you should be able to get the correct configuration with something like this:

./qemu-system-ppc -monitor stdio -device ES1370 -M mac99

But I'm afraid this configuration is effectively unsupported.

Quoted 86 lines

qemu-system-ppc -monitor stdio -soundhw es1370 -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) qemu-system-ppc: PCI bus not available for es1370

qemu-system-ppc64 starts fine:
emu-system-ppc64 -monitor stdio -soundhw es1370 -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) info pci
Bus 0, device 11, function 0:
Host bridge: PCI device 106b:004b
id ""
Bus 0, device 12, function 0:

     Class 65280: PCI device 106b:0022
       BAR0: 32 bit memory at 0x80000000 [0x8007ffff].
       id ""
   Bus  0, device  13, function 0:
     USB controller: PCI device 106b:003f
       IRQ 28.
       BAR0: 32 bit memory at 0x80080000 [0x800800ff].
       id ""
   Bus  0, device  14, function 0:
     VGA controller: PCI device 1234:1111
       BAR0: 32 bit prefetchable memory at 0x81000000 [0x81ffffff].
       BAR2: 32 bit memory at 0x82000000 [0x82000fff].
       BAR6: 32 bit memory at 0x82010000 [0x8201ffff].
       id ""
   Bus  0, device  15, function 0:
     Ethernet controller: PCI device 10ec:8029
       IRQ 30.
       BAR0: I/O at 0x1000 [0x10ff].
       BAR6: 32 bit memory at 0x82040000 [0x8207ffff].
       id ""
   Bus  0, device  16, function 0:
     Audio controller: PCI device 1274:5000
       IRQ 27.
       BAR0: I/O at 0x1100 [0x11ff].
       id ""

(qemu)

Note, I'm using 32-bit qemu build, configured like this:
setarch
i486 ./configure --prefix=/usr --disable-gtk --enable-virglrenderer --enable-sdl \ --with-sdlabi=2.0 --audio-drv-list=alsa,oss --host-cc=/opt/gcc49/bin/gcc \ --enable-opengl --extra-cflags="-I/usr/X11R7/include -O3 -march=i686 \ -mtune=native -m32 -Wno-maybe-uninitialized -Wno-nested-externs
\ -Wno-implicit-function-declaration" --disable-werror

for qemu-system-ppc -M mac99 'info pci' shows:

qemu-system-ppc -monitor stdio -vga std -M mac99 QEMU 2.12.91 monitor - type 'help' for more information (qemu) info pci
Bus 0, device 11, function 0:
Host bridge: PCI device 106b:001f
id ""
Bus 0, device 12, function 0:

     Class 65280: PCI device 106b:0022
       BAR0: 32 bit memory at 0x80000000 [0x8007ffff].
       id ""
   Bus  0, device  13, function 0:
     USB controller: PCI device 106b:003f
       IRQ 28.
       BAR0: 32 bit memory at 0x80080000 [0x800800ff].
       id ""
   Bus  0, device  14, function 0:
     VGA controller: PCI device 1234:1111
       BAR0: 32 bit prefetchable memory at 0x81000000 [0x81ffffff].
       BAR2: 32 bit memory at 0x82000000 [0x82000fff].
       BAR6: 32 bit memory at 0x82010000 [0x8201ffff].
       id ""
   Bus  0, device  15, function 0:
     Ethernet controller: PCI device 10ec:8029
       IRQ 30.
       BAR0: I/O at 0x1000 [0x10ff].
       BAR6: 32 bit memory at 0x82040000 [0x8207ffff].
       id ""
   Bus  0, device  14, function 0:
     Host bridge: PCI device 106b:001e
       id ""
   Bus  0, device  11, function 0:
     Host bridge: PCI device 106b:0020
       id ""

(qemu)

Last two devices seems strange .....

Quoted 7 lines

Also, mouse seems to be confused, try finnix-ppc-110.iso (it enables gpm on startup, start like qemu-system-ppc -monitor stdio -M mac99 -cdrom ~/finnix-ppc-110.iso and try to move mouse inside qemu window. It feels like keyboard got some mouseclicks too? or mouse movement generates mouse button clicks, too) or http://cdimage.ubuntu.com/lubuntu/releases/16.04/release/ ->
[ ] lubuntu-16.04-desktop-powerpc.iso (but you must wait for nearly 10 min
until it finishes booting)

Is this a regression? Certainly it's not an image that is part of my regular test suite. And what is your host platform? Does a 64-bit build make any difference? What about using GTK and/or VNC instead of SDL? Does disabling the sound hardware change the responsiveness?

ATB,

Mark.