ohci-pci: add qemu quirk
On a loaded virtualization host (dozen guests booting at the same time) it may happen that the ohci controller emulation doesn't manage to do timely frame processing, with the result that the io watchdog fires and considers the controller being dead, even though it's only the emulation being unusual slow due to the load peak. So, add a quirk for qemu and don't use the watchdog in case we figure we are running on emulated ohci. The virtual ohci controller masquerades as apple ohci controller, but we can identify it by subsystem id. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
@@ -231,7 +231,8 @@ static int ohci_urb_enqueue (
|
||||
|
||||
/* Start up the I/O watchdog timer, if it's not running */
|
||||
if (!timer_pending(&ohci->io_watchdog) &&
|
||||
list_empty(&ohci->eds_in_use)) {
|
||||
list_empty(&ohci->eds_in_use) &&
|
||||
!(ohci->flags & OHCI_QUIRK_QEMU)) {
|
||||
ohci->prev_frame_no = ohci_frame_no(ohci);
|
||||
mod_timer(&ohci->io_watchdog,
|
||||
jiffies + IO_WATCHDOG_DELAY);
|
||||
|
在新工单中引用
屏蔽一个用户