On Tue, Mar 09, 2021 at 04:22:09AM +0000, Marfaba Stewart wrote: > > On Monday, March 8, 2021 3:47 PM, Marcus Glocker <[email protected]> wrote: > > > Does this patch make a difference? > > > > Index: sys/dev/usb/dwc2/dwc2.c > > > > very cool, it didn't take long at all to build the patched kernel. > > After rebooting: > > uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev > 2.00/1.00 addr 1 > panic: kernel diagnostic assertion "dwc2_urb->packet_count == xfer->nframes" > failed: file "/usr/src/sys/dev/usb/dwc2/dwc2.c", line 1238 > Stopped at panic+0x158: mov w0, w20 > TID PID UID PRFLAGS PFLAGS CPU COMMAND > *335639 18049 0 0x14000 0x200 0K usbtask > db_enter() at panic+0x154 > panic() at __assert+0x24 > panic() at dwc2_device_start+0x518 > dwc2_device_start() at usbd_transfer+0x154 > usbd_transfer() at usbd_do_request_flags+0x168 > usbd_do_request_flags() at usbd_get_desc+0x40 > usbd_get_desc() at usbd_new_device+0x294 > https://www.openbsd.org/ddb.html describes the minimum info required in bug > reports. Insufficient info makes it difficult to find and fix bugs.
Hmm, I was trying to sync this function with the NetBSD code, but it looks like the gap between them is too large. Since I can't test this myself here I'm afraid I can't help much with that, sorry.
