[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 0/2] ohci: try to mimic real hardware command lat
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PATCH v2 0/2] ohci: try to mimic real hardware command latency |
Date: |
Wed, 6 Jan 2016 20:45:23 +0100 |
OHCI linux driver has some critical sections not protected against
device interrupts. Because of real hardware latency, it is generally
not a problem as interrupts cannot be triggered fast enough to happen
during these critical sections.
But theoretically, it can happen. And with QEMU used on an overcommitted
CPU, the vCPU becomes slow enough and it happens.
This series fixes a kernel crash on boot (CPU stuck) when the OHCI driver
tries to resume or suspend the device.
v2: Address comments from Thomas
update code comments
split ohci_sof() to add ohci_eof_timer()
Laurent Vivier (2):
ohci: delay first SOF interrupt
ohci: clear pending SOF on suspend
hw/usb/hcd-ohci.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
--
1.8.3.1
- [Qemu-devel] [PATCH v2 0/2] ohci: try to mimic real hardware command latency,
Laurent Vivier <=