hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc
Public bug reported:
The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware.
However, the qemu emulation does not allow this (for reasons I don't understand).
The change below fixes the problem.
** Affects: qemu
Importance: Undecided
Status: New
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: New Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions
** Patch added: "esp.c.patch"
https://bugs.launchpad.net/bugs/1014099/+attachment/3192643/+files/esp.c.patch
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: New Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions
Quoted 2 lines · Martin Husemann
** Patch added: "esp.c.patch"
https://bugs.launchpad.net/bugs/1014099/+attachment/3192643/+files/esp.c.patch
Please see this on how to contribute patches to QEMU:
http://wiki.qemu.org/Contribute/SubmitAPatch
Stefan
Guess I understand the code now - so here is a working version - though it may be considered slightly hackish
** Patch added: "esp.c.patch"
https://bugs.launchpad.net/qemu/+bug/1014099/+attachment/3192942/+files/esp.c.patch
** Patch removed: "esp.c.patch"
https://bugs.launchpad.net/qemu/+bug/1014099/+attachment/3192643/+files/esp.c.patch
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: New Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions
Patch removed, as it was bogus and your workflow is weird, so I'll post a better patch to the devel list
** Patch removed: "esp.c.patch"
https://bugs.launchpad.net/qemu/+bug/1014099/+attachment/3192942/+files/esp.c.patch
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: New Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions
Has this problem been fixed in 2012, so that we could close this ticket now? Or is there still something left to do?
** Changed in: qemu
Status: New => Incomplete
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: Incomplete Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions
Yes. Just to make sure I tested qemu 2.8 against an old disk image from 2012 and it boots fine w/o any complaints during the device probes.
** Changed in: qemu
Status: Incomplete => Fix Released
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/1014099 Title: hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc Status in QEMU: Fix Released Bug description: The NetBSD ncr53c9x.c driver does a TEST_UNIT_READY command with SELATN but dma disabled sometimes (early during bus enumeration). This is fine, as the command will not produce nor consume any data, and works on real hardware. However, the qemu emulation does not allow this (for reasons I don't understand). The change below fixes the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1014099/+subscriptions