From: Choprboy <choprboy@dakotacom.net>
To: linux-laptop@vger.kernel.org
Subject: Re: kernel panic for cardbus adapter - please help
Date: Sat, 5 Apr 2003 15:46:59 -0700 [thread overview]
Message-ID: <200304051546.59098.choprboy@dakotacom.net> (raw)
In-Reply-To: <3E8F171D.29F09E50@tataelxsi.co.in>
On Saturday 05 April 2003 10:49 am, Prasanta Sadhukhan wrote:
> Hi,
> We are using Madge 16/4 MK 2 CardBus Adapter in Redhat linux 8.0 on
> Comapaq laptop i586.
> We are using pcmcia-cs 3.2.4 source tree which we have compiled and
> installed.
> The problem we are facing is when we are plugging out the adapter from
> the socket, it's giving the following dump and the processor hangs.
[snip]
Well, it's hard to tell exactly from the information you gave (as we'd need
the driver code and a function listing from your compiled kernel to track
down specifics) but from your description it sounds like the Madge 16/4
PCMCIA driver is not responding correctly to unload requests. More
specifically, when a forced removal occurs (you pull the card) the driver is
still trying to talk to the card, so it walks all over places it shouldn't
be. It's a driver problem specific to that card, not a general kernel
problem.
How good of a kernel hacker are you? The best solution is to dig into the
driver, figure out what's wrong, and submit a patch to fix it... But since
not all of us are proficient kernel hackers (myself included), a simple work
around would be to make sure you "soft eject" the card first. That is, tell
the PCMCIA core to remove the card before you actually pull the card out.
The PCMCIA card control program is called "cardctl" (it's in /sbin, so as a
normal user you'll have to add it to your path). Just do a:
"cardctl eject"
Or, if your have more than one card in at a time, do a "cardctl status" to
figure out which slot the Madge is in and do a "cardctl eject <slot#>". This
will soft remove the card and unload the driver before you pull the card.
Adrian
prev parent reply other threads:[~2003-04-05 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-05 17:49 kernel panic for cardbus adapter - please help Prasanta Sadhukhan
2003-04-05 22:46 ` Choprboy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304051546.59098.choprboy@dakotacom.net \
--to=choprboy@dakotacom.net \
--cc=linux-laptop@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).