Re: BBB gadgetfs freeze patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



when i say it hangs i mean the entire system locks up not just my
process. I was connected over SSH (the physical ethernet not USB
ethernet) and it stops responding to pings entirely. I also tried with
it hooked up to a monitor and keyboard, and it is totally unresponsive
to keypresses as well. This was on multiple kernel versions. (3.12.0
most recently)

On Fri, Dec 6, 2013 at 4:10 PM, Felipe Balbi <balbi@xxxxxx> wrote:
> Hi,
>
> On Fri, Dec 06, 2013 at 04:08:21PM -0500, palesius . wrote:
>> In working on a project (http://github.com/dominicgs/USBProxy) we ran
>> across an issue where io on endpoint 0 would cause the system to hang.
>>
>> We made the following change which resolved the problem for us. I'm
>> not sure if this is the "correct" fix, or if the problem is specific
>> to our platform BeagleBone Black with a musb-hrdc controller.
>>
>> --- inode.c    2013-11-18 14:46:25.255029000 -0500
>> +++ inode.c2    2013-11-19 06:30:36.579029000 -0500
>> @@ -679,7 +679,9 @@
>>              req->length = len;
>>              req->complete = ep_aio_complete;
>>              req->context = iocb;
>> +            spin_unlock_irq(&epdata->dev->lock);
>>              value = usb_ep_queue(epdata->ep, req, GFP_ATOMIC);
>> +            spin_lock_irq(&epdata->dev->lock);
>
> usb_ep_queue() should be able to be called from atomic. Do you have some
> dumps of the problem ? when BBB hangs, can you dump the stack ? (If
> you're using minicom -> CTRL + A + F + P should work).
>
> cheers
>
> --
> balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux