On Mon, Nov 06, 2017 at 10:11:59AM +0100, Martin Pieuchot wrote: > On 06/11/17(Mon) 00:24, Paul Irofti wrote: > > Hi, > > > > This is a first step towards hopefully getting uvideo(4) to work with > > xhci(4). On my x260 I get buffer overrun and my machine freezes when > > running video(1) with xhci and uvideo debug messages enabled. > > Following fixes that. > > > > The proposed diff handles event under/overruns by dequeueing the current > > trb from the current segment on the event ring. I think we should do the > > same for other types of TRBs and that is why I added link support at the > > end of the dequeueing function. > > > > Thoughts? OKs? > > Why are we getting under/overruns in the first place? Is the driver > missing something?
On a related note, I wanted to ask you if and where do we handle the case of page-crossing TRBs. From my understanding of the code it seems that we do not.