mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ehci: handle dma errors
Starting with commit 1c380f9460
dma
transfers can actually fail. This patch makes ehci keep track
of the busmaster bit in pci config space, by setting/clearing the
dma_context pointer. Attempts to dma without context will result
in raising HSE (Host System Error) interrupt and stopping the host
controller.
This patch fixes WinXP not booting with a usb stick attached to ehci.
Root cause is seabios activating ehci so you can boot from the stick,
and WinXP clearing the busmaster bit before resetting the host
controller, leading to ehci actually trying dma while it is disabled.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
40862309a9
commit
55903f1d2d
3 changed files with 62 additions and 19 deletions
|
@ -286,6 +286,7 @@ usb_ehci_irq(uint32_t level, uint32_t frindex, uint32_t sts, uint32_t mask) "lev
|
|||
usb_ehci_guest_bug(const char *reason) "%s"
|
||||
usb_ehci_doorbell_ring(void) ""
|
||||
usb_ehci_doorbell_ack(void) ""
|
||||
usb_ehci_dma_error(void) ""
|
||||
|
||||
# hw/usb/hcd-uhci.c
|
||||
usb_uhci_reset(void) "=== RESET ==="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue