On 21/07/17(Fri) 10:45, Paul Irofti wrote:
> On Fri, Jul 21, 2017 at 10:45:01AM +0300, p...@irofti.net wrote:
> > >Synopsis:  Booting OpenBSD with external keyboard randomly panics in xhci
> > >Category:  kernel
> > >Environment:
> >     System      : OpenBSD 6.1
> >     Details     : OpenBSD 6.1-current (GENERIC.MP) #6: Fri Jul 21 10:29:44 
> > EEST 2017
> >                      
> > bulib...@sci.irofti.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> >     Architecture: OpenBSD.amd64
> >     Machine     : amd64
> > >Description:
> >     Not that often my laptop panics on boot when using an external keyboard
> >     and mouse that are hooked up via an USB hub provided by the external
> >     monitor.
> 
> Forgot to post the trace and ps: http://irofti.net/tmp/x250/xhci/

This problem is due to two bugs.

 - First the device babble, see 'XHCI_CODE_BABBLE'.  This seems to
   happen to much with our xhci(4) and I believe it is a symptom for
   wrongly setup TRBs.

 - Secondly the code resetting the endpoint xhci_cmd_reset_ep_async()
   assumes interrupt are working.  However during boot the USB stack
   works in polling mode.

Fixing any of the two bugs should solve your issue.

Reply via email to