sgabios outputs incorrect video modes
Public bug reported:
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.
** Affects: qemu
Importance: Undecided
Status: New
** Tags: sgabios
Signature · 23 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
** Changed in: qemu
Assignee: (unassigned) => Herbie Robinson (hrob)
Signature · 23 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
** Project changed: qemu => sgabios (Ubuntu)
Signature · 23 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in sgabios package in Ubuntu: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sgabios/+bug/1670509/+subscriptions
** Also affects: qemu
Importance: Undecided
Status: New
** Changed in: qemu
Assignee: (unassigned) => Herbie Robinson (hrob)
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
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...
** Patch added: "0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch"
https://bugs.launchpad.net/qemu/+bug/1670509/+attachment/4834118/+files/0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
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
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
That patch is wrong. The correct patch has been submitted and checked on the QEMU mailing lists
(http://patchwork.ozlabs.org/patch/737446/).
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
Any chance of getting this patch included?
I've deleted the incorrect patch and attached the correct one (taken from QEMU's sgabios repo).
** Patch removed: "0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch"
https://bugs.launchpad.net/ubuntu/+source/sgabios/+bug/1670509/+attachment/4834118/+files/0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch
** Patch added: "0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch"
https://bugs.launchpad.net/ubuntu/+source/sgabios/+bug/1670509/+attachment/5019029/+files/0001-SGABIOS-fix-wrong-video-attrs-for-int-10h-ah-13h.patch
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: sgabios (Ubuntu)
Status: New => Confirmed
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: New Status in sgabios package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
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
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: Fix Released Status in sgabios package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
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.
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: Fix Released Status in sgabios package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions
I believe QEMU has handed ownership of this off to coreboot. Which makes sense.
https://review.coreboot.org/cgit/sgabios.git
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1670509 Title: sgabios outputs incorrect video modes Status in QEMU: Fix Released Status in sgabios package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1670509/+subscriptions