Skip to contentSkip to conversation

QEMU fails to boot DR DOS Plus since 0.6.1

Qemu-devel Roy Tam 4 participants 9 messages Jun 2, 2010 – Jul 19, 2016

lore
Share & tools
lore

Roy Tam

author
#0 lore raw

Public bug reported:

The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
author
#1 lore raw

** Patch added: "Following patch partially reverts that commit and makes DOSPlus booting in QEMU again."
http://launchpadlibrarian.net/49557998/serial-ier-fix.patch

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
#2 lore raw
In reply to Roy Tam

This patch doesn't seem correct as the spec is pretty clear that THRE interrupt enable is set to high, then an interrupt is rased if LSR.THRE=1. Does the following also make DOSPlus boot again:

hw/serial.c +2 -1
index 9102edb..b0ac52f 100644
@@ -401,7 +401,8 @@ static void serial_ioport_write(void *opaque, uint32_t addr,
                      s->poll_msl = 0;
                 }
             }
-            if (s->lsr & UART_LSR_THRE) {
+            if (s->ier & UART_IER_THRI &&
+                s->lsr & UART_LSR_THRE) {
                 s->thr_ipending = 1;
                 serial_update_irq(s);
             }

** Changed in: qemu
Status: New => In Progress

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: In Progress

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
author
#3 lore raw
In reply to Roy Tam
Quoted 1 line

This patch doesn't seem correct as the spec is pretty clear that THRE

interrupt enable is set to high, then an interrupt is rased if LSR.THRE=1. Does the following also make DOSPlus boot again:

No it doesn't. Same as unpatched.

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: In Progress

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
#4 lore raw
In reply to Roy Tam

Can you add some debugging to see what IER is being set to?

Do you have any insight into why DR DOS Plus is failing?

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: In Progress

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
author
#5 lore raw
In reply to Roy Tam
Quoted 1 line

Can you add some debugging to see what IER is being set to?

With DEBUG_SERIAL defined, serial logs:
serial: event 2
serial: write addr=0x01 val=0x02
serial: read addr=0x01 val=0x02
serial: read addr=0x02 val=0x02
serial: write addr=0x01 val=0x00
serial: write addr=0x03 val=0x80
serial: write addr=0x00 val=0x0c
serial: write addr=0x01 val=0x00
serial: write addr=0x03 val=0x03
serial: write addr=0x04 val=0x0b
serial: read addr=0x05 val=0x60
serial: read addr=0x06 val=0xb0
serial: read addr=0x00 val=0x00
serial: write addr=0x01 val=0x0f
serial: read addr=0x02 val=0x02
serial: read addr=0x02 val=0x01 (stalls here)

Signature · 9 lines
QEMU fails to boot DR DOS Plus since 0.6.1
https://bugs.launchpad.net/bugs/588748
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: In Progress

Bug description:
The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents booting Digital Research DOS Plus.
#6 lore raw
In reply to Roy Tam

I think the interrupt should be raised only on the rising edge of THRE.

** Changed in: qemu
Assignee: (unassigned) => Paolo Bonzini (bonzini)

Signature · 16 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/588748

Title:
  QEMU fails to boot DR DOS Plus since 0.6.1

Status in QEMU:
  In Progress

Bug description:
  The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
  booting Digital Research DOS Plus.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/588748/+subscriptions
#7 lore raw
In reply to Roy Tam

Has this bug been fixed by this commit here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=1645b8eee558ffe2389
?
If so, I think we could now close this bug ticket...

Signature · 16 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/588748

Title:
  QEMU fails to boot DR DOS Plus since 0.6.1

Status in QEMU:
  In Progress

Bug description:
  The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
  booting Digital Research DOS Plus.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/588748/+subscriptions
#8 lore raw
In reply to Roy Tam

** Changed in: qemu
Status: In Progress => Fix Released

Signature · 16 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/588748

Title:
  QEMU fails to boot DR DOS Plus since 0.6.1

Status in QEMU:
  Fix Released

Bug description:
  The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
  booting Digital Research DOS Plus.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/588748/+subscriptions