pcmcia crashes and oopses
Norman Diamond
n0diamond at yahoo.co.jp
Sun Apr 10 20:18:06 PDT 2016
First, here is the most serious problem.Porteus 3.1 uses kernel 3.17.4.
64-bit Porteus 3.1 works fine on an NEC VF-6.
32-bit Porteus 3.1 hangs in udev during boot. It's not a 120-second
delay for udevadm settle, it's a hard crash which doesn't even display
an oops in text mode, doesn't even flash two keyboard lamps, and
doesn't even respond to the Caps Lock or Num Lock keys or
Ctrl+Alt+Delete. It needs a press of the power button.
It appears that the particular device is highly relevant:
0a:01.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev b6)
Subsystem: NEC Corporation Device [1033:88ec]
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
I tested two other PCs with pcmcia slots made by different manufacturers.
One was cardbus only, and had no problem.
One was cardbus + 16-bit pcmcia, and had no problem, not made by Ricoh.
So the particular Ricoh controller looks relevant.
In /lib/udev/rules.d/60-pcmcia.rules I commented out these two lines:
SUBSYSTEM=="pcmcia_socket", \
RUN+="/lib/udev/pcmcia-socket-startup"
After commenting them out, 32-bit Linux also boots with no problem.
Sorry to repeat for the nth time, but 64-bit Linux doesn't have this probem
but 32-bit Linux's version of pcmcia-socket-startup kills the kernel hard
on this very same PC.
The same problem exists in kernel 4.0.4, 32 bits.
Next, here are two oopses from kernel 4.0.4, 32 bits, when the
above-mentioned lines are commented out.
This first one occurs intermittently during boot before udev starts.
It is non-fatal and I can even use a pcmcia device.
[ 7.900418] ------------[ cut here ]------------
[ 7.906355] WARNING: CPU: 0 PID: 979 at kernel/sched/core.c:7302 __might_sleep+0x66/0x82()
[ 7.912393] do not call blocking ops when !TASK_RUNNING; state=1 set at [<c13de002>] pccardd+0xce/0x313
[ 7.918479] usb usb3: SerialNumber: 0000:00:1a.0
[ 7.924591] Modules linked in:
[ 7.930622] hub 3-0:1.0: USB hub found
[ 7.936383] CPU: 0 PID: 979 Comm: pccardd Not tainted 4.0.4-xxxxxxxxxxxx #1
[ 7.942209] Hardware name: NEC PC-VY20MFD5RJX6/AK3ML, BIOS NOTE BIOS Version /554A0800 10/31/2008
[ 7.948217] 00000000 00000000 f4167ea4 c152c76a f4167ee4 f4167ed4 c103598d c17ab6bc
[ 7.954333] f4167f00 000003d3 c17ab587 00001c86 c104e13e c104e13e c13de002 00000001
[ 7.960462] 00000000 f4167eec c10359d2 00000009 f4167ee4 c17ab6bc f4167f00 f4167f20
[ 7.966596] Call Trace:
[ 7.972620] [<c152c76a>] dump_stack+0x49/0x73
[ 7.978687] [<c103598d>] warn_slowpath_common+0x98/0xaf
[ 7.984760] [<c104e13e>] ? __might_sleep+0x66/0x82
[ 7.990843] [<c104e13e>] ? __might_sleep+0x66/0x82
[ 7.996874] [<c13de002>] ? pccardd+0xce/0x313
[ 8.002815] [<c10359d2>] warn_slowpath_fmt+0x2e/0x30
[ 8.008752] [<c104e13e>] __might_sleep+0x66/0x82
[ 8.014631] [<c13de002>] ? pccardd+0xce/0x313
[ 8.020461] [<c13de002>] ? pccardd+0xce/0x313
[ 8.026190] [<c152f8a7>] mutex_lock+0x17/0x2f
[ 8.031906] [<c13de06e>] pccardd+0x13a/0x313
[ 8.037645] [<c152f1d5>] ? preempt_schedule+0x1f/0x21
[ 8.043388] [<c12a3378>] ? ___preempt_schedule+0x8/0xc
[ 8.049121] [<c13ddf34>] ? socket_complete_resume+0x2e/0x2e
[ 8.054850] [<c13ddf34>] ? socket_complete_resume+0x2e/0x2e
[ 8.060528] [<c104928d>] kthread+0x8c/0x91
[ 8.066266] [<c1531681>] ret_from_kernel_thread+0x21/0x30
[ 8.071978] [<c1049201>] ? __kthread_parkme+0x6e/0x6e
[ 8.077663] hub 3-0:1.0: 2 ports detected
[ 8.083527] uhci_hcd 0000:00:1a.1: UHCI Host Controller
[ 8.089150] uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
[ 8.094822] uhci_hcd 0000:00:1a.1: detected 2 ports
[ 8.100476] uhci_hcd 0000:00:1a.1: irq 21, io base 0x00001860
[ 8.106204] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 8.111938] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.117672] usb usb4: Product: UHCI Host Controller
[ 8.123353] usb usb4: Manufacturer: Linux 4.0.4-xxxxxxxxxxxx uhci_hcd
[ 8.129331] usb usb4: SerialNumber: 0000:00:1a.1
[ 8.135174] hub 4-0:1.0: USB hub found
[ 8.140799] hub 4-0:1.0: 2 ports detected
[ 8.146632] uhci_hcd 0000:00:1a.2: UHCI Host Controller
[ 8.152280] uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
[ 8.157945] uhci_hcd 0000:00:1a.2: detected 2 ports
[ 8.163558] uhci_hcd 0000:00:1a.2: irq 19, io base 0x00001880
[ 8.169172] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[ 8.174784] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.180377] usb 2-2: new high-speed USB device number 2 using ehci-pci
[ 8.185970] usb usb5: Product: UHCI Host Controller
[ 8.191420] usb usb5: Manufacturer: Linux 4.0.4-xxxxxxxxxxxx uhci_hcd
[ 8.196775] usb usb5: SerialNumber: 0000:00:1a.2
[ 8.202294] hub 5-0:1.0: USB hub found
[ 8.207640] hub 5-0:1.0: 2 ports detected
[ 8.213132] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[ 8.218301] ---[ end trace 711724ffae446cbc ]---
The second oops is also intermittent and is fatal.
The oops scrolled off the screen before two keyboard lights started flashing.
I think the driver was Qlogicfas.
I inserted a 16-bit pcmcia SCSI adapter, attached to a vintager CD-ROM drive.
The kernel recognized the drive.
I inserted a CD-R that was burned during this millennium and I guess the drive
couldn't read it, and a driver probably Qlogicfas couldn't handle the
error report.
Sorry, I only saw it once and didn't want to spend half an hour writing down the
tail end of the oops report.
=+=+=+
Sorry for using a Windows system to access web sites and my web mail.
But despite Microsoft being Microsoft, I wonder why Microsoft Edge and SmartScreen
display a big warning on a red background saying that web site
http://lists.infradead.org/pipermail/linux-pcmcia/
is infected. It didn't even say that about page
http://lists.infradead.org/mailman/listinfo/linux-pcmcia
More information about the linux-pcmcia
mailing list