From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Collins Date: Sat, 17 Aug 2002 01:29:54 +0000 Subject: kernel panic/oops hotplugging USB flash storage on MIPS Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org I'm doing development for a MIPS-based (little endian, Globespan IVR=20 reference platform) product, and am attempting to add hotplug support=20 for USB mass storage to my current 2.4.19 kernel (no modules --=20 everything compiled into kernel). I'm not sure if this should go to=20 hotplug-devel or usb-devel, so I'm sending to both groups. The kernel works fine for plugging in a USB flash storage device when I=20 don't have the hotplug features compiled in (shows up as /dev/sda,=20 mountable, etc.). When I compile them in, I get a kernel panic when I=20 plug the USB flash in. For now, /sbin/hotplug is just a copy of /bin/true. It was originally a=20 shell script, but I thought that might have been causing the panic. I'm including part of the logs, but am still new to kernel debugging so=20 I don't know how to match this file up with my System.map to provide=20 useful information. If someone wants to point me in the right=20 direction, I'm willing to do some more work to track down the cause of=20 the panic/oops. I can tell you that System map for 0000002c (referenced=20 in "Unable to handle kernel paging request below") is usbdevfs_cleanup. It seems odd to me that the first two entries in my System.map are: 000000000000002c A usbdevfs_cleanup 00000000000000f8 A usb_stor_exit All other entries in System.map start with ffffffff. Also odd that usbdevfs_cleanup would get called if I don't have module=20 support compiled in... -- Tom Collins tom@tomlogic.com root@(none):/# cat /proc/sys/kernel/hotplug /sbin/hotplug root@(none):/# /sbin/hotplug (plug USB flash device in here) root@(none):/# Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sda: 31936 512-byte hdwr sectors (16 MB) sda: Write Protect is off sda1 Kernel unaligned instruction access in unaligned.c:do_ade, line 409: $0 : 00000000 b000fc00 00000000 0fb82d15 808ed010 0fb82d04 00001000=20 00000010 $8 : 00000010 808ed000 00000000 00000003 ffffffe8 00000400 00000400=20 00000000 $16: 808ed000 1000001f 00000001 808ed000 ffffffff 7fff7678 004008c2=20 0000000a $24: 00000010 0fb9a950 83cb2000 83cb3ee8 004008c2=20 80139c4c Hi : 00000000 Lo : 00000000 epc : 80139a64 Not tainted Status: b000fc03 Cause : 00800010 Process (pid: 109, stackpage=83cb2000) Stack: 83cb2000 83cb3f10 7fff7828 80107010 808ed000 00000000 00000001=20 80139c4c b000fc03 1080002c 7fff7848 00000000 00000001 ffffffff 0fbac498=20 7fff7270 801088a8 80112b98 00000000 00000000 00000000 00000000 00000000=20 7fff7e90 00000000 0fbac4a0 00000fa5 00000002 0fb82d04 00000000 00000001=20 0fbac460 24242424 7efefeff 00000000 00000000 00000000 00000400 00000400=20 00000000 7fff7848 ... Call Trace: Code: afb00010 8f9103cc 00005021 <8e2b0010> 8e29001c 8e2d000c =20 000b1143 000 Unable to handle kernel paging request at virtual address 0000002c,=20 epc =3D 80170 Oops in fault.c:do_page_fault, line 206: $0 : 00000000 802a0000 00000001 00000002 00000019 00000000 00000000=20 802ffd50 $8 : b000fc01 0000000a 83cb3cb9 00000000 802e8b09 fffffffe 83cb3c76=20 ffffffff $16: 00000010 00000199 83cb2264 8025e490 8025e478 0000000b 004008c2=20 0000000a $24: 00000010 00000006 83cb2000 83cb3d88 004008c2=20 80118a50 Hi : 00000000 Lo : 00000012 epc : 8017cbb0 Not tainted Status: b000fc03 Cause : 00800008 Process (pid: 109, stackpage=83cb2000) Stack: 801152c4 00000199 83cb3e38 808ed000 8028c4e0 00000199 83cb2000=20 8025e490 80118a50 801189f0 83cb3e38 808ed000 83cb2000 83cb3de0 8025d3b8=20 00000199 83cb3e38 808ed000 ffffffff 7fff7678 80106aa4 80808400 8025c930=20 83f7a000 00000001 00000000 808ed000 83cb3e38 00000001 80106ac8 80c42e2c=20 00000000 0fb8b350 00400168 80108f18 80126a48 83cb2000 83cb3e40 7fff7828=20 80107010 808ed000 ... Call Trace: Code: 8f900268 1200002c 27920264 <8e05001c> 04a10002 00a01021 =20 24a27fff 000 Unable to handle kernel paging request at virtual address 0000002c,=20 epc =3D 80170 Oops in fault.c:do_page_fault, line 206: $0 : 00000000 b000fc00 00000001 00000000 00000000 b000fc01 00000000=20 83cb3bf4 $8 : ffffffff 0000000a 83cb3ae4 00000000 802e8b09 fffffffe 83cb3a9c=20 ffffffff $16: 00000010 000000ce 83cb2264 8025e490 8025e478 0000000b 00000000=20 0000000a $24: 00000010 00000004 83cb2000 83cb3bb0 004008c2=20 80118a50 Hi : 00000000 Lo : 00000012 epc : 8017cbb0 Not tainted Status: b000fc03 Cause : 00800008 Process (pid: 109, stackpage=83cb2000) Stack: 8025dbd0 000000ce 83cb3cd8 0000002c 00000000 000000ce 83cb2000=20 8025e490 80118a50 801189f0 83cb3cd8 0000002c 83cb2000 83cb3c08 8025dbd0=20 000000ce 83cb3cd8 0000002c 00000000 83cb3cd8 80106aa4 80808400 8025c930=20 83f7a000 00000001 00000000 0000001c 00000199 83cb2000 8010bb74 8025db68=20 0000002c 8017cbb0 80118a50 807bc008 00030001 00004000 8025a86c 8011ee24=20 802f88e8 802a4894 ... Call Trace: Code: 8f900268 1200002c 27920264 <8e05001c> 04a10002 00a01021 =20 24a27fff 000 Unable to handle kernel paging request at virtual address 0000002c,=20 epc =3D 80170 Oops in fault.c:do_page_fault, line 206: ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel