Opened 3 years ago

Closed 3 years ago

#17266 closed bug (fixed)

XHCI: endpoint is not initialized

Reported by: Lindenov Owned by: waddlesplash
Priority: critical Milestone: R1/beta4
Component: Drivers/USB/XHCI Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by Lindenov)

This KDL appears on hrev55419. The system cannot start with USB devices pluged on, unlike on previous revisions or beta 3.

Attachments (8)

IMG_3212.JPG (2.6 MB ) - added by Lindenov 3 years ago.
IMG_32151.JPG (274.5 KB ) - added by Lindenov 3 years ago.
syslog usb 55419.txt (20.0 KB ) - added by Lindenov 3 years ago.
listdev.txt (71.0 KB ) - added by Lindenov 3 years ago.
syslog 55403 (263.8 KB ) - added by Lindenov 3 years ago.
syslog (420.1 KB ) - added by Lindenov 3 years ago.
syslog.old (264.4 KB ) - added by Lindenov 3 years ago.
syslog.2 (103.6 KB ) - added by Lindenov 3 years ago.
i dunno but it looks like even worse than previous ones

Change History (28)

by Lindenov, 3 years ago

Attachment: IMG_3212.JPG added

comment:1 by waddlesplash, 3 years ago

X512 sent me a picture of this last night. It does not reproduce on QEMU unfortunately; I suspect it may be a race condition of some kind, but so far I am kind of lost as to the details.

comment:2 by waddlesplash, 3 years ago

Milestone: Unscheduled
Priority: normalcritical

in reply to:  1 comment:3 by Lindenov, 3 years ago

Replying to waddlesplash:

X512 sent me a picture of this last night. It does not reproduce on QEMU unfortunately; I suspect it may be a race condition of some kind, but so far I am kind of lost as to the details.

Do you need any additional information from me?

comment:4 by waddlesplash, 3 years ago

Is it possible for you to run "syslog | grep usb" at the KDL prompt and take a picture of that?

in reply to:  4 comment:5 by Lindenov, 3 years ago

Replying to waddlesplash:

Is it possible for you to run "syslog | grep usb" at the KDL prompt and take a picture of that?

I noticed that occasionally the system DOES start with device plugged in. Perhaps it depends on how the system has been booted. "Cold start" shows KDL every single time. Rebooting from another system state (ex. I'm using beta 3 now) and switching to hrev55419 allows it to boot normaly.

Last edited 3 years ago by Lindenov (previous) (diff)

by Lindenov, 3 years ago

Attachment: IMG_32151.JPG added

comment:6 by waddlesplash, 3 years ago

Can you attach a syslog from a successful cold boot? (Please delete your syslog files if doing this on an existing installation.)

comment:7 by Lindenov, 3 years ago

Description: modified (diff)

comment:8 by Lindenov, 3 years ago

It was too tricky to get system started with plugged devices, but somehow I got lucky and here is the syslog. However, it's not too much useful info in it. I'll keep hrev55419 up as long as it needed to get any kind of info, cause I'm not sure I'll be able to boot it once again without KDL appearing.

by Lindenov, 3 years ago

Attachment: syslog usb 55419.txt added

by Lindenov, 3 years ago

Attachment: listdev.txt added

comment:9 by waddlesplash, 3 years ago

Sorry, I meant to say, from a successful cold boot on a hrev where it works. The syslog fragment you sent here appears to be from such a prior hrev, as the message within it was removed in hrev55404, which is where the panic in the original screenshot was added.

So, this demonstrates that hrev55404 does not cause any new problems, it just exposes an issue which was already there. Please get me a full syslog from a "fully working" version if you would.

in reply to:  9 comment:10 by Lindenov, 3 years ago

Replying to waddlesplash:

Please get me a full syslog from a "fully working" version if you would.

This is a hrev55403, the revision I used before updating to hrev55419. Full syslog comming right now.

by Lindenov, 3 years ago

Attachment: syslog 55403 added

comment:11 by waddlesplash, 3 years ago

Unfortunately the critical parts of the syslog are cut off. Can you delete your syslogs, reboot, and attach both syslog and syslog.old?

by Lindenov, 3 years ago

Attachment: syslog added

by Lindenov, 3 years ago

Attachment: syslog.old added

comment:12 by waddlesplash, 3 years ago

The critical bits are still missing; I guess they must get cut off early in the boot process. Can you edit the "kernel" settings file by uncommenting the "syslog_buffer_size" line and setting some large value (probably 512KB will be enough) and trying again?

comment:13 by KapiX, 3 years ago

Isn't "critical parts missing" #15455?

comment:14 by waddlesplash, 3 years ago

No. XHCI only starts after the kernel is loaded. And it looks like #15455 may be fixed already anyway.

in reply to:  12 comment:15 by Lindenov, 3 years ago

Replying to waddlesplash:

probably 512KB will be enough

So, 524288? Ok, I did it.

by Lindenov, 3 years ago

Attachment: syslog.2 added

i dunno but it looks like even worse than previous ones

comment:16 by waddlesplash, 3 years ago

Now there are no XHCI errors at all! Maybe this is intermittent, somehow?

I guess the only way to get the bits we need at this point is to use on-screen paging during the boot with SMP disabled. That's pretty annoying to do, though.

comment:17 by waddlesplash, 3 years ago

Hang on, I have a lead on this and the other USB crashes, at last.

comment:18 by waddlesplash, 3 years ago

Please retest after hrev55429.

in reply to:  18 comment:19 by Lindenov, 3 years ago

Replying to waddlesplash:

Please retest after hrev55429.

hrev55438 works fine

comment:20 by waddlesplash, 3 years ago

Milestone: R1/beta4
Resolution: fixed
Status: newclosed

Excellent!

Note: See TracTickets for help on using tickets.