Skip to contentSkip to conversation

PPC: VGA broken in git master

Qemu-devel Mark Cave-Ayland 4 participants 7 messages Mar 4, 2012 – Mar 5, 2012

lore
Share & tools
lore

Mark Cave-Ayland

author Reviewed-by Richard Henderson
#0 lore raw

Hi all,

I've just done a git pull to update my local repository, and it now appears that the VGA device is broken in QEMU - rather than displaying the OpenBIOS banner in my VNC client, the framebuffer remains constantly black.

A git bisect shows that the problem is caused by the following commit:

de58ac72b6a062d1a61478284c0c0f8a0428613e is the first bad commit commit de58ac72b6a062d1a61478284c0c0f8a0428613e

Author: Avi Kivity <[email protected]>
Date:   Sun Jan 8 19:46:17 2012 +0200

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't use it. Use an alias instead.

Avi/Richard - please would it be possible for you to review this commit and come up with a suitable fix?

Many thanks,

Mark.

#1 lore raw
Quoted 20 lines · Mark Cave-Ayland

Hi all,

I've just done a git pull to update my local repository, and it now appears that the VGA device is broken in QEMU - rather than displaying the OpenBIOS banner in my VNC client, the framebuffer remains constantly black.

A git bisect shows that the problem is caused by the following commit:

de58ac72b6a062d1a61478284c0c0f8a0428613e is the first bad commit commit de58ac72b6a062d1a61478284c0c0f8a0428613e

Author: Avi Kivity <[email protected]>
Date:   Sun Jan 8 19:46:17 2012 +0200

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't use it. Use an alias instead.

Quoted 7 lines

Avi/Richard - please would it be possible for you to review this commit and come up with a suitable fix?

Can you provide the command line needed to reproduce the problem?

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw
Quoted 21 lines · Avi Kivity
Quoted 20 lines · Mark Cave-Ayland

Hi all,

I've just done a git pull to update my local repository, and it now appears that the VGA device is broken in QEMU - rather than displaying the OpenBIOS banner in my VNC client, the framebuffer remains constantly black.

A git bisect shows that the problem is caused by the following commit:

de58ac72b6a062d1a61478284c0c0f8a0428613e is the first bad commit commit de58ac72b6a062d1a61478284c0c0f8a0428613e

Author: Avi Kivity<[email protected]>
Date:   Sun Jan 8 19:46:17 2012 +0200

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't use it. Use an alias instead.

Quoted 8 lines
Quoted 7 lines

Avi/Richard - please would it be possible for you to review this commit and come up with a suitable fix?

Can you provide the command line needed to reproduce the problem?

From the bug description I would say:

$ ./qemu-system-ppc

Alex

#3 lore raw
In reply to Avi Kivity
Quoted 25 lines · Avi Kivity
Quoted 24 lines · Mark Cave-Ayland

Hi all,

I've just done a git pull to update my local repository, and it now appears that the VGA device is broken in QEMU - rather than displaying the OpenBIOS banner in my VNC client, the framebuffer remains constantly black.

A git bisect shows that the problem is caused by the following commit:

de58ac72b6a062d1a61478284c0c0f8a0428613e is the first bad commit commit de58ac72b6a062d1a61478284c0c0f8a0428613e

Author: Avi Kivity<[email protected]>
Date:   Sun Jan 8 19:46:17 2012 +0200

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't use it. Use an alias instead.

Quoted 5 lines
Quoted 3 lines

Avi/Richard - please would it be possible for you to review this commit and come up with a suitable fix?

Can you provide the command line needed to reproduce the problem?

Sure. I can reproduce it here using something as simple as:

./qemu-system-ppc -cdrom /dev/null -boot d -vnc :1

What you'll see is that the framebuffer remains black in your VNC client, as opposed to displaying the OpenBIOS startup banner.

Note that de58ac72b6a062d1a61478284c0c0f8a0428613e (and the previous commit) have a qdev bug which segfaults qemu-system-ppc on startup, however the attached patch will resolve this for you.

I've also confirmed over the weekend that the bug also affects SPARC64, although testing shows that SPARC32 still seems to work okay.

HTH,

Mark.

hw/escc.c +2 -2
index 9fe282f..0ed9e8a 100644
@@ -695,8 +695,8 @@ MemoryRegion *escc_init(target_phys_addr_t base, qemu_irq irqA, qemu_irq irqB,
     qdev_prop_set_uint32(dev, "disabled", 0);
     qdev_prop_set_uint32(dev, "frequency", clock);
     qdev_prop_set_uint32(dev, "it_shift", it_shift);
-    qdev_prop_set_chr(dev, "chrB", chrB);
-    qdev_prop_set_chr(dev, "chrA", chrA);
+    //qdev_prop_set_chr(dev, "chrB", chrB);
+    //qdev_prop_set_chr(dev, "chrA", chrA);
     qdev_prop_set_uint32(dev, "chnBtype", ser);
     qdev_prop_set_uint32(dev, "chnAtype", ser);
     qdev_init_nofail(dev);
#4 lore raw
Quoted 41 lines · Mark Cave-Ayland
Quoted 26 lines · Avi Kivity
Quoted 25 lines · Mark Cave-Ayland

Hi all,

I've just done a git pull to update my local repository, and it now appears that the VGA device is broken in QEMU - rather than displaying the OpenBIOS banner in my VNC client, the framebuffer remains constantly black.

A git bisect shows that the problem is caused by the following commit:

de58ac72b6a062d1a61478284c0c0f8a0428613e is the first bad commit commit de58ac72b6a062d1a61478284c0c0f8a0428613e

Author: Avi Kivity<[email protected]>
Date:   Sun Jan 8 19:46:17 2012 +0200

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't
use it.
Use an alias instead.

Quoted 5 lines
Quoted 3 lines

Avi/Richard - please would it be possible for you to review this commit and come up with a suitable fix?

Can you provide the command line needed to reproduce the problem?

Sure. I can reproduce it here using something as simple as:

./qemu-system-ppc -cdrom /dev/null -boot d -vnc :1

What you'll see is that the framebuffer remains black in your VNC client, as opposed to displaying the OpenBIOS startup banner.

Quoted 6 lines

Note that de58ac72b6a062d1a61478284c0c0f8a0428613e (and the previous commit) have a qdev bug which segfaults qemu-system-ppc on startup, however the attached patch will resolve this for you.

I've also confirmed over the weekend that the bug also affects SPARC64, although testing shows that SPARC32 still seems to work okay.

Turned out that -vga std was broken cross-target. Please check

git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent

for a fix.

Signature · 1 line
error compiling committee.c: too many arguments to function
#5 lore raw
Quoted 17 lines · Avi Kivity
Quoted 9 lines
Quoted 1 line

Can you provide the command line needed to reproduce the problem?

Sure. I can reproduce it here using something as simple as:

./qemu-system-ppc -cdrom /dev/null -boot d -vnc :1

What you'll see is that the framebuffer remains black in your VNC client, as opposed to displaying the OpenBIOS startup banner.

Quoted 6 lines

Note that de58ac72b6a062d1a61478284c0c0f8a0428613e (and the previous commit) have a qdev bug which segfaults qemu-system-ppc on startup, however the attached patch will resolve this for you.

I've also confirmed over the weekend that the bug also affects SPARC64, although testing shows that SPARC32 still seems to work okay.

Quoted 5 lines

Turned out that -vga std was broken cross-target. Please check

git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent

for a fix.

Hi Avi,

I've just tested your patchset against git master and it looks good here - VGA for both PPC and SPARC64 now works again.

Many thanks,

Mark.

#6 lore raw
Quoted 21 lines · Mark Cave-Ayland
Quoted 19 lines · Avi Kivity
Quoted 9 lines
Quoted 1 line

Can you provide the command line needed to reproduce the problem?

Sure. I can reproduce it here using something as simple as:

./qemu-system-ppc -cdrom /dev/null -boot d -vnc :1

What you'll see is that the framebuffer remains black in your VNC client, as opposed to displaying the OpenBIOS startup banner.

Quoted 6 lines

Note that de58ac72b6a062d1a61478284c0c0f8a0428613e (and the previous commit) have a qdev bug which segfaults qemu-system-ppc on startup, however the attached patch will resolve this for you.

I've also confirmed over the weekend that the bug also affects SPARC64, although testing shows that SPARC32 still seems to work okay.

Turned out that -vga std was broken cross-target. Please check

Quoted 9 lines
Quoted 3 lines

git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent

for a fix.

Hi Avi,

I've just tested your patchset against git master and it looks good here - VGA for both PPC and SPARC64 now works again.

And x86_64-softmmu (just two last patches from memory/urgent).

Quoted 5 lines

Many thanks,

Mark.