after I do basic ohci configuration, I setup interrupts and do next reads when HccaDoneHead flag is triggered. The problem is that after a few successful request-responses it stops it does not receive next interrupt.
For simplicity I made it now to send same package every time and I can reproduce the issue every time after 3 successful control requests. The log shows 2 last interrupt routings that sends same package, but last never generated interrupt.
(it is running in qemu, simulating allwinner h3)
Code: Select all
---[USB] Interrupt 00000006
StartOfFrame
WritebackDoneHead
after TD[0](4003bf10), 3e00000, 0, 0, 4003bf57
after TD[1](4003bf20), 2f00000, 0, 4003bf10, 4003bf61
after TD[2](4003bf30), 2080000, 0, 4003bf20, 0
Response: 0a 03
HccaFrameNumber: 3
HccaDoneHead: 4003bf30
—get_descriptor_string 00000001 2 <— here it start a new request, attempt 3
Control ED: 00082000, 4003bf10, 4003bf40, 00000000
Setup TD[0](4003bf10), e2e00000, 4003bf50, 4003bf20, 4003bf57
Setup TD[1](4003bf20), e3f00000, 4003bf60, 4003bf30, 4003bf61
Setup TD[2](4003bf30), e3080000, 0, 4003bf40, 0
Setup Request: 80 06 01 03 09 04 02 00
HcControl: 00000090 <— printing regs at the end of ira routing
HcControlHeadED: 4003bf00
HcControlCurrentED: 00000000
HcInterruptEnable: 8000007b
HcInterruptStatus: 00000000
---[USB] Interrupt 00000006
StartOfFrame
WritebackDoneHead
after TD[0](4003bf10), 3e00000, 0, 0, 4003bf57
after TD[1](4003bf20), 2f00000, 0, 4003bf10, 4003bf61
after TD[2](4003bf30), 2080000, 0, 4003bf20, 0
Response: 0a 03
HccaFrameNumber: 5
HccaDoneHead: 4003bf30
—get_descriptor_string 00000001 2 <— here it start a new request, attempt 4
Control ED: 00082000, 4003bf10, 4003bf40, 00000000
Setup TD[0](4003bf10), e2e00000, 4003bf50, 4003bf20, 4003bf57
Setup TD[1](4003bf20), e3f00000, 4003bf60, 4003bf30, 4003bf61
Setup TD[2](4003bf30), e3080000, 0, 4003bf40, 0
Setup Request: 80 06 01 03 09 04 02 00
HcControl: 00000090 <— printing regs at the end of ira routing
HcControlHeadED: 4003bf00
HcControlCurrentED: 00000000
HcInterruptEnable: 8000007b
HcInterruptStatus: 00000000