From: Frans Pop <elendil@planet.nl>
To: Tejun Heo <htejun@gmail.com>
Cc: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: No IDE drivers loaded for Toshiba Satellite 320 CDS
Date: Sun, 13 Apr 2008 15:59:20 +0200 [thread overview]
Message-ID: <200804131559.21664.elendil@planet.nl> (raw)
In-Reply-To: <48017248.4030600@gmail.com>
On Sunday 13 April 2008, Tejun Heo wrote:
> Please be advised that some modern controllers are dual interfaced.
> Native one and legacy one. The legacy one is SFF compliant and
> depending on configuration may appear at legacy IO addresses, so if you
> aren't careful, you can end up with two drivers driving the same
> hardware which usually doesn't end too well. Loading generic drivers
> w/o knowing that it's needed is quite dangerous. I would strongly
> advise against it.
I totally agree. The problem being discussed here is exactly how to know it
is needed. If you have better suggestions for that, I'd appreciate it.
As you specifically say "modern controllers", I suspect that the problem is
limited as I guess those are fairly unlikely to be found in machines that
have an ISA bus.
I also think the way I've implemented in the Debian installer should be
relatively safe:
1) ide-generic is only loaded _after_ any otherwise detected modules
2) it is only loaded if an ISA bus is present
3) it is only included in the initrd for the installed system if loading it
in the installer resulted in additional block devices appearing
I would unload ide-generic in the installer if no additional block devices
appear, but unfortunately that's not possible as it is marked "permanent".
By loading it after any other drivers I expect there will be no issues
during the installation (as the other driver will already have claimed the
device). Making sure it is only loaded for the installed system if actually
needed should avoid problems there.
ATM I can only see this causing problems in systems that need both
ide-generic and some other driver as adding ide-generic in the initrd is
likely to result in it being loaded before that other driver.
Again, if anyone has a better suggestion how to implement this (preferably
without asking the user whether he has a device that needs ide-generic,
which most users are unlikely to know anyway), I'd appreciate it.
Cheers,
FJP
next prev parent reply other threads:[~2008-04-13 13:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 13:24 No IDE drivers loaded for Toshiba Satellite 320 CDS Frans Pop
2008-04-02 13:27 ` Frans Pop
2008-04-02 13:57 ` Lennart Sorensen
2008-04-02 14:29 ` Frans Pop
2008-04-02 15:46 ` Lennart Sorensen
2008-04-02 16:20 ` Frans Pop
2008-04-02 19:49 ` Lennart Sorensen
2008-04-03 17:47 ` Frans Pop
2008-04-03 19:31 ` Lennart Sorensen
2008-04-04 6:59 ` Frans Pop
2008-04-13 2:39 ` Tejun Heo
2008-04-13 13:59 ` Frans Pop [this message]
2008-04-14 13:52 ` Lennart Sorensen
2008-04-14 13:56 ` Alan Cox
2008-04-14 15:29 ` Frans Pop
2008-04-14 15:48 ` Frans Pop
2008-04-14 13:47 ` Lennart Sorensen
2008-04-14 13:53 ` Alan Cox
2008-04-15 2:37 ` Tejun Heo
2008-04-15 10:04 ` Alan Cox
2008-04-15 23:25 ` Tejun Heo
2008-04-15 14:47 ` Lennart Sorensen
2008-04-15 23:31 ` Tejun Heo
2008-04-16 18:08 ` Frans Pop
2008-04-16 22:12 ` Tejun Heo
2008-04-17 14:05 ` Lennart Sorensen
2008-04-24 3:48 ` Tejun Heo
2008-04-16 23:24 ` Alan Cox
2008-04-02 16:33 ` Ondrej Zary
2008-04-02 20:05 ` Lennart Sorensen
2008-04-02 20:10 ` Ondrej Zary
2008-04-02 20:22 ` Lennart Sorensen
2008-04-02 20:34 ` Ondrej Zary
2008-04-03 17:50 ` Alan Cox
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=200804131559.21664.elendil@planet.nl \
--to=elendil@planet.nl \
--cc=bzolnier@gmail.com \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lsorense@csclub.uwaterloo.ca \
/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 NNTP newsgroup(s).