sgabios outputs incorrect video modes

Bug #1670509 reported by Herbie Robinson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Herbie Robinson
sgabios (Ubuntu)
Confirmed
Undecided
Herbie Robinson

Bug Description

When run with a bootstrap loader that uses int 0x10 with 0x1301 in %ax, incorrect video modes are output to the serial port. I believe the VGA image will be correct. This might also affect the returned values for some interrupts.

This is caused because the set_cursor_position routine fails to save and restore %bx.

I'm working on a fix for this.

Tags: patch sgabios
Herbie Robinson (hrob)
Changed in qemu:
assignee: nobody → Herbie Robinson (hrob)
Herbie Robinson (hrob)
affects: qemu → sgabios (Ubuntu)
Revision history for this message
Herbie Robinson (hrob) wrote :

I think I have submitted the fix to the qemu development list, but have no way to be sure it made it past Stratus' corporate firewall. If it didn't make it (or if that was the wrong place to send it), please let me know.

TIA

Herbie Robinson (hrob)
Changed in qemu:
assignee: nobody → Herbie Robinson (hrob)
Revision history for this message
Herbie Robinson (hrob) wrote :

I don't think my e-mailed patch got through... I'm going to keep trying, but in case anyone needs the patch in the interim...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Herbie Robinson (hrob) wrote :

That patch is wrong. The correct patch has been submitted and checked on the QEMU mailing lists

(http://patchwork.ozlabs.org/patch/737446/).

Revision history for this message
Nathan Rennie-Waldock (nathan-renniewaldock) wrote :

Any chance of getting this patch included?
I've deleted the incorrect patch and attached the correct one (taken from QEMU's sgabios repo).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sgabios (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Huth (th-huth) wrote :

Looks like the fix has been included in QEMU's sgabios repository here:

 https://git.qemu.org/?p=sgabios.git;a=commitdiff;h=cbaee52287e5f32373181cf

And the binary in the QEMU repository has been updated here:

 https://git.qemu.org/?p=qemu.git;a=commitdiff;h=c8c33fca88fc3ab8a5e4b

So this fix is included in QEMU since version 2.10.

Changed in qemu:
status: New → Fix Released
Revision history for this message
Nathan Rennie-Waldock (nathan-renniewaldock) wrote :

Fixed in qemu, yes. But not Ubuntu. Ubuntu strips prebuilt files from qemu and builds them from source. For sgabios, using the abandoned source from Google code.

Revision history for this message
Herbie Robinson (hrob) wrote :

I believe QEMU has handed ownership of this off to coreboot. Which makes sense.

https://review.coreboot.org/cgit/sgabios.git

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.