Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Vivek Goyal <vgoyal@xxxxxxxxxx>
- Date: Mon, 26 Jun 2006 13:16:59 -0400
On Mon, Jun 26, 2006 at 10:00:55AM -0600, Eric W. Biederman wrote:
[..]
Looks like there are two problems to be solved.
- Framework/capability to mark and isolate the drivers, either at compile
time or run time, which are not hardened enough to initialize properly
when the underlying device is in operational or in unknown state.
- Actually hardening a driver to be able to initialize in a potentially
unreliable environment.
Solving first problem will help more in terms of people knowing in advance
that certain drivers are known to have problems in specific environemnt and
a user has got the option of skipping the execution/compilation of those
drivers. (This is something close to what CONFIG_EXPERIMENTAL does)
Second problem deals more with actually hardening the driver and not
skipping its compilation/execution.
I think people would like to change a driver's behaviour at run time.
For example if they are booting in a unreliable environment they would
like to reset the device otherwise they would skip that as BIOS has
already done that for them.
In the general case the device reset does not hurt.
I think it does hurt.
- I have seen the case of MPT fusion drvier. It takes significantly more
time to come up if we choose to reset the device during initialization.
One of the reasons that we wait in a tight loop for the controller to
come up after a reset message.
- Long back we fixed ips driver and I remember that the maintainer had
a similar issue with the reset of device. He did not want to reset the
device in normal boot because otherwise it took significantly longer
for the driver to initialize.
- Just now Mike also confirmed that resetting the device definitely
hurts in terms of time.
Yes there
is the case of the slow scsi probe. But a lot of that appears
to be a poor implementation of the scsi probe. So I can see a kernel
command line option to play fast and loose but we should be safe
and thorough by default.
The more code paths you introduce the harder code is to maintain
and test. The earlier discussion suggested you cannot harden
some drivers. We can take action against drivers like that simply
and easily.
Hacks in the driver initialization are a completely different story.
So it is matter of making a choice in case the device does not have a
software reset capability.
- Either try to make driver work through some hacks based on crashboot
option.
- Or mark the driver unusable in kdump scenarios.
Even if one decides to go for second option, at least "crashboot" or
similar parameter will be required so that driver can choose whether
to reset the device or not during initialization due to significant
time penalty.
Thanks
Vivek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Eric W. Biederman
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Andrew Morton
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- References:
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Andrew Morton
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Vivek Goyal
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Andrew Morton
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Vivek Goyal
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Eric W. Biederman
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Maneesh Soni
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Vivek Goyal
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Eric W. Biederman
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Vivek Goyal
- Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- From: Eric W. Biederman
- Re: [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- Prev by Date: Re: [PATCH] binfmt: turn MAX_ARG_PAGES into a sysctl tunable
- Next by Date: Re: [PATCH] Kconfig for radio cards to allow VIDEO_V4L1_COMPAT
- Previous by thread: Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- Next by thread: Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
- Index(es):
Relevant Pages
|