QEMU fails to boot DR DOS Plus since 0.6.1
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.
** 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.
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
@@ -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.
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.
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.
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.
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
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
** 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