You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/usb
Phil Dennis-Jordan ef82ab6924 hw/usb/hcd-xhci-pci: Use event ring 0 if mapping unsupported
The XHCI specification, section 4.17.1 specifies that "If the
Number of Interrupters (MaxIntrs) field is greater than 1, then
Interrupter Mapping shall be supported." and "If Interrupter
Mapping is not supported, the Interrupter Target field shall be
ignored by the xHC and all Events targeted at Interrupter 0."

QEMU's XHCI device has so far not specially addressed this case,
so we add a check to xhci_event() to redirect to event ring and
interrupt 0 if mapping is disabled.

Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241227121336.25838-4-phil@philjordan.eu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
1 week ago
..
Kconfig hw/usb: Remove MUSB USB host controller 4 months ago
bus-stub.c include: Rename sysemu/ -> system/ 1 month ago
bus.c hw/usb: Inline usb_new() 1 week ago
canokey.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
canokey.h
ccid-card-emulated.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
ccid-card-passthru.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
ccid.h
chipidea.c
combined-packet.c
core.c
desc-msos.c
desc.c
desc.h
dev-audio.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-hid.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-hub.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-mtp.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-network.c Accel & Exec patch queue 1 month ago
dev-serial.c hw/usb: Inline usb_new() 1 week ago
dev-smartcard-reader.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-storage-bot.c
dev-storage-classic.c Accel & Exec patch queue 1 month ago
dev-storage.c hw/usb/msd: Add status to usb_msd_packet_complete() function 1 month ago
dev-uas.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
dev-wacom.c
hcd-dwc2.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-dwc2.h include: Rename sysemu/ -> system/ 1 month ago
hcd-dwc3.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-ehci-pci.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-ehci-sysbus.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-ehci.c include: Rename sysemu/ -> system/ 1 month ago
hcd-ehci.h include: Rename sysemu/ -> system/ 1 month ago
hcd-ohci-pci.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-ohci-sysbus.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-ohci.c hw/usb/hcd-ohci: Fix ohci_service_td: accept zero-length TDs where CBP=BE+1 7 months ago
hcd-ohci.h include: Rename sysemu/ -> system/ 1 month ago
hcd-uhci.c hw/usb/uhci: Introduce and use register defines 3 weeks ago
hcd-uhci.h hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS 11 months ago
hcd-xhci-nec.c hw/usb/hcd-xhci-pci: Move msi/msix properties from NEC to superclass 3 weeks ago
hcd-xhci-pci.c hw/usb/hcd-xhci-pci: Use modulo to select MSI vector as per spec 1 week ago
hcd-xhci-pci.h
hcd-xhci-sysbus.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
hcd-xhci-sysbus.h
hcd-xhci.c hw/usb/hcd-xhci-pci: Use event ring 0 if mapping unsupported 1 week ago
hcd-xhci.h include: Rename sysemu/ -> system/ 1 month ago
host-libusb.c Accel & Exec patch queue 1 month ago
imx-usb-phy.c hw: Use device_class_set_legacy_reset() instead of opencoding 4 months ago
libhw.c include: Rename sysemu/ -> system/ 1 month ago
meson.build hw/usb: Remove MUSB USB host controller 4 months ago
pcap.c
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c Accel & Exec patch queue 1 month ago
trace-events hw/usb/hcd-ohci: Fix ohci_service_td: accept zero-length TDs where CBP=BE+1 7 months ago
trace.h
u2f-emulated.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
u2f-passthru.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 1 month ago
u2f.c
u2f.h
vt82c686-uhci-pci.c
xen-usb.c hw/xen: Make XenDevOps structures const 8 months ago
xlnx-usb-subsystem.c
xlnx-versal-usb2-ctrl-regs.c hw, target: Add ResetType argument to hold and exit phase methods 9 months ago