Re: 14-CURRENT Kernel Panic due to USB hub?

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 03 Dec 2021 18:38:32 UTC
On 12/1/21 17:32, Hans Petter Selasky wrote:
> On 12/1/21 12:39, Andrew Turner wrote:
>> I have. I’m hitting the KASSERT at [1]. Looking at the memory around 
>> td->td_pcb->pcb_fpflags makes me think the memory has been trashed as 
>> there are bits set that could never be so in the flags fields, and 
>> kernel pointer values that point to user memory.
>>
>> Andrew
>>
>> [1]https://cgit.freebsd.org/src/tree/sys/arm64/arm64/trap.c?id=6e9309bd3b04501b69593900a14e01114c7f2404#n627 
>>
>>
> 
> Hi,
> 
> Could you also dump:
> 
> td->td_name
> 
> Exactly which thread is this?
> 
> We do have a user-space build for XHCI at stand/usb/test . It won't 
> attach, but maybe there is some compiler warning there?
> 
> Did you try do build a kernel with -O0 I.E. no optimization options?
> 
> --HPS
> 

One more thing:

The XHCI hardware in question is little-endian?

--HPS