You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is also present on the head of rpi-3.9.y. I rewound back to ecba5d7 (dwc_otg: fix NAK holdoff and allow on split transactions only) and the problem is not present. I don't really have time to finish bisecting it to pin-point the offending commit right now, however.
We erroneously don't force the dwc_otg_hcd_urb_enqueue atomic_alloc parameter when inside the critical section. QTD is then allocated potentially without the atomic flag passed to kmalloc.
Changing this last parameter to dwc_otg_hcd_urb_enqueue to 1 inside this section fixes the issue with BUG()s for sleeping inside atomic for me, can you confirm?
Thank you. I apologize for not getting with you sooner on this. I was just about to do this when my apartment complex began to fumigate my apartment with toxic fumes leading me to have to take an ambulance to the hospital!! Anyway, I'll try to check this out soon and thank you for your work on this.
Oh no, that's not all! It would appear that the problem with my URB
callbacks not being called is fixed as well! I'm running the latest
3.10.y (with a small patch of my own for something unrelated) and my
MCP2210 driver in full verbose-debug-spam mode and not a single URB had
to be killed and re-submitted. Good work guys!
Activity
daniel-santos commentedon Aug 1, 2013
The issue is also present on the head of rpi-3.9.y. I rewound back to ecba5d7 (dwc_otg: fix NAK holdoff and allow on split transactions only) and the problem is not present. I don't really have time to finish bisecting it to pin-point the offending commit right now, however.
P33M commentedon Aug 1, 2013
Can you try 30500d9 vs 8cdf875?
P33M commentedon Aug 1, 2013
Found it, I think. In dwc_otg_hcd_linux.c:
We erroneously don't force the dwc_otg_hcd_urb_enqueue atomic_alloc parameter when inside the critical section. QTD is then allocated potentially without the atomic flag passed to kmalloc.
Changing this last parameter to dwc_otg_hcd_urb_enqueue to 1 inside this section fixes the issue with BUG()s for sleeping inside atomic for me, can you confirm?
P33M commentedon Aug 2, 2013
Should be fixed as of #347
daniel-santos commentedon Aug 2, 2013
Thank you. I apologize for not getting with you sooner on this. I was just about to do this when my apartment complex began to fumigate my apartment with toxic fumes leading me to have to take an ambulance to the hospital!! Anyway, I'll try to check this out soon and thank you for your work on this.
popcornmix commentedon Aug 2, 2013
@daniel-santos
rpi-update will get firmware with #347
daniel-santos commentedon Aug 2, 2013
hmm. To be honest, I didn't know how to deal with that, so I just wrote a quick-n-dirty script to create a tarball that I unpack in the pi's / dir.
then on my pi, I basically
#!/bin/bash tar xf /home/pi/kernel.tgz --no-same-permissions -C / syncSo I'm guessing that
rpi-updateis a cleaner way of updating the firmware eh? :)Oh yes, and I almost forgot the most important part, no more sleeping in atomic! :) Thanks!
popcornmix commentedon Aug 2, 2013
For the future:
https://github.com/Hexxeh/rpi-update
may be easier, but glad to hear it's fixed.
daniel-santos commentedon Aug 2, 2013
On 08/02/2013 04:08 PM, popcornmix wrote:
Oh no, that's not all! It would appear that the problem with my URB
callbacks not being called is fixed as well! I'm running the latest
3.10.y (with a small patch of my own for something unrelated) and my
MCP2210 driver in full verbose-debug-spam mode and not a single URB had
to be killed and re-submitted. Good work guys!
Daniel
net: fec: Ensure that initialization is done prior to request_irq()
um: ubd: Submit all data segments atomically
um: ubd: Submit all data segments atomically
selftests/bpf: Add netkit test for pkt_type
powerpc/bpf/32: Fix failing test_bpf tests
powerpc/bpf/32: Fix failing test_bpf tests