[PATCH][2.4.21] orinoco_cs card reinsertion
From: Sebastian Reichelt (SebastianR_at_gmx.de)
Date: 08/31/03
- Previous message: Sebastian Piecha: "Re: PROBLEM: Powerquest Drive Image let the kernel panic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Aug 2003 16:05:44 +0200 To: linux-kernel@vger.kernel.org
Hello!
After switching from 2.4.20 to 2.4.21 (Debian unstable package
kernel-source-2.4.21-5), my wireless LAN PCMCIA card stopped working
when I hot-removed and reinserted it. I got these messages in
/var/log/syslog, plus a high beep on removal and a high and then a low
beep on reinsertion:
Upon removal:
Aug 29 16:00:41 SebastianL2 kernel: orinoco_lock() called with
hw_unavailable (dev=cf34b800)
Upon reinsertion:
Aug 29 16:00:44 SebastianL2 cardmgr[192]: socket 0: ZCOMAX
AirRunner/XI-300
Aug 29 16:00:44 SebastianL2 kernel: GetNextTuple(). No matching CIS
configuration, maybe you need the ignore_cis_vcc=1 parameter.
Aug 29 16:00:44 SebastianL2 kernel: orinoco_cs: GetFirstTuple: No more
items
Aug 29 16:00:45 SebastianL2 cardmgr[192]: get dev info on socket 0
failed: Resource temporarily unavailable
I looked at the changes between the two kernels, in orinoco.c,
orinoco_cs.c, and hermes.c, and it seems that quite a bit of code was
restructured. So unfortunately, I cannot narrow it down to a single
change that caused this. The attached patch fixes the problem for me,
but it is NOT a simple copy from the old driver, and it may not be
correct at all. However, it might give someone a hint about what went
wrong. Anyway, even with this patch, I still get the "orinoco_lock()
called with hw_unavailable" message when I remove the card.
Sorry if I'm posting a patch for a problem that has already been fixed
in 2.4.22. The Debian package is still at 2.4.21, and I don't know
anything about the Debian patches and why they are needed, etc. If I can
just install a kernel from kernel.org, I will do this, and try to see if
the problem is still there (I can see an item "orinoco driver update"
in the changelog, but it's not specific). Should I also install a 2.6
kernel and check?
I have attached the output of lspci -vvv and the parts of the syslog
that identify my card and show the problem. The controller is this entry
in lspci.txt:
00:08.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller
Here is the output of ver_linux:
------------------------------------------------------------------------
Linux SebastianL2 2.4.21 #1 Sat Aug 30 00:22:04 CEST 2003 i686 GNU/Linux
Gnu C 3.3.2
Gnu make 3.80
binutils 2.14.90.0.5
util-linux 2.11z
mount 2.11z
modutils 0.9.13
e2fsprogs 1.35-WIP
pcmcia-cs 3.2.2
Linux C Library 2.3.2
Dynamic linker (ldd) 2.3.2
Procps 3.1.11
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 5.0.90
------------------------------------------------------------------------
Hopefully someone can find the true cause of the problem. Good luck.
-- Sebastian Reichelt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- text/plain attachment: orinoco_cs.diff
- text/plain attachment: lspci.txt
- text/plain attachment: syslog.txt
- Previous message: Sebastian Piecha: "Re: PROBLEM: Powerquest Drive Image let the kernel panic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: SUSE 10
... > Fritz Box SL Wlan and get an IP Adress, ... or the Netgear MA301 PCI
Card. ... kernel source for the running kernel available as you will be building a
... Configuration successful. ... (alt.os.linux.suse) - allocation failures with CBQ bandwidth limiting & high net use (was Re: Filesystem kernel hangup
... limiting, queuing and prioritization, *and* high network use (using ... "full_kernel_output"
file for an idea of what kernel messages I was ... My IRQ is shared with that above TV card,
... kernel messages for about two hours from boot to crash). ... (Linux-Kernel) - athlon-xp + fakeraid regression
... The build completes fine, the kernel boots fine, the machine will seem to be fine as
long as it remains quiescent. ... At the beginning, just after hitting enter on the make command,
one of the ad4 disk light goes on solid for several seconds. ... There is a well known
thing where these cheap pata fakeraid cards will try to do ata133 if the drive says it can, when really,
even if he drives are new ata133 drives and the cables are new and short and shielded, you still
shouldn't try to do ata133 since the spec is too tight and you'll just get bit errors or other failures.
... The fix is use ata100 somehow, either by disabling dma entirely in loader.conf (since you
have no more selective option there, and the raid card bios never has an option for controlling
pio/dma mode like motherboard bios's have) and then use atacontrol in rc.early to set udma5, or by using
disks that can only do ata100 and only advertise ata100 to the controller. ... (freebsd-current) - Re: modem works in sarge but not etch or lenny
... When I ran sarge with the modem card physically removed, ... I don't really
understand the structure of the kernel so I don't ... It worked in Sarge but I have
not been able to get it to work in my ... (Debian-User) - PCMCIA please help
... G) Kernel Configuration ... I try to run an Edimax cardbus fast ethernet
card with David Hinds pcmcia ... cs: IO port probe 0x0208-0x021f: clean. ...
(Debian-User)