NetBSD-Bugs archive

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

Re: kern/50491: unkillable wait in usbd_transfer while using usmsc0 on raspberry pi 2



The following reply was made to PR kern/50491; it has been noted by GNATS.

From: Michael Plass <mfpnb%plass-family.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Michael Plass <mfpnb%plass-family.net@localhost>
Subject: Re: kern/50491: unkillable wait in usbd_transfer while using usmsc0 on raspberry pi 2
Date: Tue, 1 Dec 2015 20:55:32 -0800

 On Dec 1, 2015, at 12:50 PM, Nick Hudson wrote:
 
 > The following reply was made to PR kern/50491; it has been noted by =
 GNATS.
 >=20
 > From: Nick Hudson <skrll%netbsd.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
 > gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
 > Cc:=20
 > Subject: Re: kern/50491: unkillable wait in usbd_transfer while using =
 usmsc0
 > on raspberry pi 2
 > Date: Tue, 1 Dec 2015 14:33:58 +0000
 >=20
 > This is a multi-part message in MIME format.
 > --------------060900050601040906010405
 > Content-Type: text/plain; charset=3Dwindows-1252; format=3Dflowed
 > Content-Transfer-Encoding: 7bit
 >=20
 > On 12/01/15 06:50, mfpnb%plass-family.net@localhost wrote:
 >>> Number:         50491
 >>> Category:       kern
 >>> Synopsis:       unkillable wait in usbd_transfer while using usmsc0 =
 on raspberry pi 2
 >=20
 >=20
 >> usbd_do_request: not in process context
 >> usmsc0: warning: Failed to write register 0x10c
 >> usbd_do_request: not in process context
 >> usmsc0: warning: Failed to write register 0x110
 >> usbd_do_request: not in process context
 >> usmsc0: warning: Failed to write register 0x100
 >=20
 >=20
 > Please run with this patch to help determine why this is happening.
 >=20
 > It will drop to debugger where you can get a backtrace.
 >=20
 > Thanks,
 > Nick
 >=20
 > --------------060900050601040906010405
 > Content-Type: text/x-patch;
 >  name=3D"pr50491.diff"
 > Content-Transfer-Encoding: 7bit
 > Content-Disposition: attachment;
 >  filename=3D"pr50491.diff"
 >=20
 > Index: sys/dev/usb/usbdi.c
 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 > RCS file: /cvsroot/src/sys/dev/usb/usbdi.c,v
 > retrieving revision 1.161.2.1
 > diff -u -p -r1.161.2.1 usbdi.c
 > --- sys/dev/usb/usbdi.c	11 Feb 2015 09:32:19 -0000	=
 1.161.2.1
 > +++ sys/dev/usb/usbdi.c	1 Dec 2015 14:33:00 -0000
 > @@ -992,6 +992,8 @@ usbd_do_request_flags_pipe(usbd_device_h
 >  	usbd_xfer_handle xfer;
 >  	usbd_status err;
 >=20
 > +	ASSERT_SLEEPABLE();
 > +
 >  #ifdef DIAGNOSTIC
 >  	if (cpu_intr_p() || cpu_softintr_p()) {
 >  		printf("usbd_do_request: not in process context\n");
 >=20
 > --------------060900050601040906010405--
 >=20
 >=20
 >=20
 
 I'm running with the patch, and I still get the hangs, but so far this =
 condition has not been hit. I'll keep trying.
 
 - Michael=
 



Home | Main Index | Thread Index | Old Index