Skip to contentSkip to conversation

hw/esp.c does not properly deal with TEST_UNIT_READY in NetBSD/sparc

Qemu-devel Martin Husemann 3 participants 7 messages Jun 16, 2012 – Feb 24, 2017

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

** 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
#3 lore raw
In reply to Martin Husemann

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
#4 lore raw
In reply to Martin Husemann

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
#5 lore raw
In reply to Martin Husemann

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
#6 lore raw
In reply to Martin Husemann

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