From: "christophe barbé" <christophe.barbe@lineo.fr>
To: linux-kernel@vger.kernel.org
Cc: "Justin T . Gibbs" <gibbs@scsiguy.com>
Subject: Re: [PATCH] export pci_table in aic7xxx for Hotplug
Date: Tue, 16 Oct 2001 22:16:45 +0200 [thread overview]
Message-ID: <20011016221645.A346@online.fr> (raw)
In-Reply-To: <20011015222311.E2665@turing> <200110152031.f9FKVlY56104@aslan.scsiguy.com> <20011016181726.E935@turing>
In-Reply-To: <20011016181726.E935@turing>
About the Oops, I think it's a hotplug problem but I could be wrong.
I get a Oops when I do the following :
. Insert my card (card detected and driver loaded)
. mount /dev/sdc0 /cdrw
. use /cdrw
. umount /cdrw
. Remove the card (remove event detected but driver not unloaded)
. mount /dev/sdc0 /cdrw (oops and mount segfault)
lspci show the adaptec card after insertion and no more after removing.
Actually the hotplug stuff doesn't unload the driver. This is not simple
because another card can use the driver. This is a new problem compared
to pcmcia stuff where you use a specific module.
My understanding is that the hotplug code should notify to the driver
that a device managed by it has been removed. And the driver should
rescan for available devices.
I can send you the oops but I'm convinced that the Oops is caused by the
aic7xxx driver accessing a no more there device.
Is there a common way to ask to a driver to rescan it's devices (an
IOCTL). I'm afraid that not but it looks like a generic hotplug problem.
Christophe
On Tue, Oct 16, 2001 at 06:17:26PM +0200, christophe barbe wrote:
> I've patch my kernel with aic7xxx v6.2.4. The pci_table is correctly
> exported.
> I've a little problem (Oops) when I hot-remove the card and try to mount a
> device no more available. But I believe it's a hotplug issue so I will mail
> details to the hotplug ml.
>
> Thank,
> Christophe
>
> Le 2001.10.15 22:31:47 +0200, Justin T. Gibbs a écrit :
> > >I have defined __NO_VERSION__ before including module.h because in my
> > >understanding this is required when you include it in a multi-files
> > module.
> > >Only one file must include module.h without defining the __NO_VERSION__.
> >
> > I can find no reference to "__NO_VERSION__" in module.h or the files
> > it includes. Perhaps this is a requirement for old kernels?
> >
> > >I remember to read something about a repository for your new driver.
> > Please
> > >could you point it to me and I will try it ASAP.
> >
> > http://people.FreeBSD.org/~gibbs/linux/
> >
> > --
> > Justin
> >
> --
> Christophe Barbé <christophe.barbe@online.fr>
> GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
> -
> 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/
--
Christophe Barbé <christophe.barbe@online.fr>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
next prev parent reply other threads:[~2001-10-16 20:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-15 17:59 [PATCH] export pci_table in aic7xxx for Hotplug christophe barbe
2001-10-15 19:02 ` Justin T. Gibbs
2001-10-15 20:23 ` christophe barbe
2001-10-15 20:31 ` Justin T. Gibbs
2001-10-15 20:45 ` christophe barbe
2001-10-16 4:41 ` Keith Owens
2001-10-16 16:17 ` christophe barbe
2001-10-16 20:16 ` christophe barbé [this message]
2001-10-16 20:50 ` christophe barbé
2001-10-16 20:59 ` christophe barbe
2001-10-16 21:18 ` Justin T. Gibbs
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=20011016221645.A346@online.fr \
--to=christophe.barbe@lineo.fr \
--cc=gibbs@scsiguy.com \
--cc=linux-kernel@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