From: Nick Warne <nick@linicks.net>
To: linux-kernel@vger.kernel.org
Subject: Re: IDE probing IDE_MAX_HWIFS
Date: Sat, 25 Jun 2005 14:47:09 +0100 [thread overview]
Message-ID: <200506251447.09633.nick@linicks.net> (raw)
> Now my question :-) Is there a specific reason why this isn't included in
> other architectures? I am asking as I guess one hell of a lot of people
> running on i386 have only two IDE interfaces anyway, and it could do with
> defining it as 2...
I have a patch here, works very well. But I need to see if I am a bit 'Mickey
Mouse' and need to ask all you proper coders if this would be an acceptable
patch.
In drivers/ide/Kconfig
if IDE
config IDE_HWIFS_NUM
bool "Specify the number of IDE Interfaces"
depends on (ALPHA || SUPERH || X86)
default n
help
ALPHA and SUPERH say 'y' here.
X86 say 'y' to this if you wish to specify the number of IDE
interfaces on your system. If unsure, say 'n' to use
the kernel default options (6 or 10).
config IDE_MAX_HWIFS
int "Max IDE interfaces"
depends on IDE_HWIFS_NUM
default 4
help
This is the maximum number of IDE hardware interfaces that will
be supported by the driver. Make sure it is at least as high as
the number of IDE interfaces in your system.
On X86 architecture default is (10 or 6) IDE interfaces if this
is not used (IDE_HWIFS_NUM = n)
and in include/asm-i386/ide.h
#ifndef MAX_HWIFS
#ifndef CONFIG_IDE_HWIFS_NUM
# ifdef CONFIG_BLK_DEV_IDEPCI
#define MAX_HWIFS 10
# else
#define MAX_HWIFS 6
# endif
#else
#define MAX_HWIFS CONFIG_IDE_MAX_HWIFS
#endif
#endif
I have just built and it works great - boot time seems to increase a lot (but
I haven't measured as such). It also eliminates me needing all the
idex=noprobe also.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
next reply other threads:[~2005-06-25 13:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-25 13:47 Nick Warne [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-06-25 11:10 IDE probing IDE_MAX_HWIFS Nick Warne
2005-06-26 17:51 ` Alan Cox
2005-06-26 18:08 ` Nick Warne
2005-06-26 19:33 ` 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=200506251447.09633.nick@linicks.net \
--to=nick@linicks.net \
--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