Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-24 Thread Guenter Roeck
On 4/24/24 08:23, Guenter Roeck wrote: On 4/24/24 04:16, Gerd Hoffmann wrote: qemu hack:   hw/usb/hcd-ohci.c | 11 +++   hw/usb/hcd-ohci.h |  1 +   2 files changed, 12 insertions(+) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index fc8fc91a1d..99e52ad13a 100644 --- a/hw/usb/hcd-o

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-24 Thread Guenter Roeck
On 4/24/24 04:16, Gerd Hoffmann wrote: qemu hack: hw/usb/hcd-ohci.c | 11 +++ hw/usb/hcd-ohci.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index fc8fc91a1d..99e52ad13a 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -267,6

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-24 Thread Guenter Roeck
On 4/23/24 19:11, Alan Stern wrote: [ ... ] To avoid the overhead of repeated interrupts, it would be best to check the interrupt status at the end of the routine and restart if any of the enabled bits are set, as in your first patch. If you would like to clean it up (get rid of the debugging s

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-24 Thread Gerd Hoffmann
> qemu hack: > > hw/usb/hcd-ohci.c | 11 +++ > hw/usb/hcd-ohci.h | 1 + > 2 files changed, 12 insertions(+) > > diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c > index fc8fc91a1d..99e52ad13a 100644 > --- a/hw/usb/hcd-ohci.c > +++ b/hw/usb/hcd-ohci.c > @@ -267,6 +267,10 @@ static inli

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Alan Stern
On Tue, Apr 23, 2024 at 02:10:13PM -0700, Guenter Roeck wrote: > Hi Alan, > > On 4/23/24 10:30, Alan Stern wrote: > > On Tue, Apr 23, 2024 at 10:04:17AM -0700, Guenter Roeck wrote: > > > Hi, > > > > > > when testing usb-ohci > > > > What is usb-ohci? Do you mean ohci-hcd? > > > > > with qemu

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Guenter Roeck
Hi Alan, On 4/23/24 10:30, Alan Stern wrote: On Tue, Apr 23, 2024 at 10:04:17AM -0700, Guenter Roeck wrote: Hi, when testing usb-ohci What is usb-ohci? Do you mean ohci-hcd? with qemu's pci-ohci emulation, I keep getting random usb interface timeouts. Sometimes the usb_hub_wq times out.

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Alan Stern
On Tue, Apr 23, 2024 at 10:04:17AM -0700, Guenter Roeck wrote: > Hi, > > when testing usb-ohci What is usb-ohci? Do you mean ohci-hcd? > with qemu's pci-ohci emulation, I keep getting > random usb interface timeouts. Sometimes the usb_hub_wq times out. ... > Sometimes there is an i/o scheduli

Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Guenter Roeck
Hi, when testing usb-ohci with qemu's pci-ohci emulation, I keep getting random usb interface timeouts. Sometimes the usb_hub_wq times out. [9.555666] Waiting for root device /dev/sda... [ 62.452625] INFO: task kworker/0:2:42 blocked for more than 30 seconds. [ 62.453036] Tainted: G