From: Neil Brown <neilb@suse.de>
To: Dan Williams <dan.j.williams@intel.com>
Cc: linux-raid <linux-raid@vger.kernel.org>,
Kay Sievers <kay.sievers@vrfy.org>
Subject: Re: [mdadm git pull] support for detecting platform raid capabilities and some fixes
Date: Tue, 2 Dec 2008 17:18:29 +1100 [thread overview]
Message-ID: <18740.54069.607869.865438@notabene.brown> (raw)
In-Reply-To: message from Dan Williams on Friday November 28
On Friday November 28, dan.j.williams@intel.com wrote:
> On Thu, Nov 27, 2008 at 4:39 PM, Neil Brown <neilb@suse.de> wrote:
> > So what happens when you try to create an array on devices that aren't
> > attached to a detected platform? Or create an array that crosses two
> > separate controllers?
> > Just a warning? Require --force? Do nothing ??
> >
> > Sounds like a useful thing!
>
> Right now it just returns errors from ->validate_geometry and
> ->add_to_super. The environment variable IMSM_NO_PLATFORM turns off
> this checking. The --assemble case could take advantage of this as
> well to warn or fail to assemble when disks are found on "non-raid"
> ports, currently 'platform' checking is silent at assembly. Different
> environments could have different policies...
>
> Here is a lingering idea that may be post mdadm-3.0 material: What
> about exposing these policy decisions via a new configuration file
> variable: HBA?
> HBA device=<'platform' | sysfs device path | some other identification
> tuple> enforce_ports=<no | yes | warn> auto_hotplug=<no | yes>
>
> Where enforce_ports checks for assembly or create events talking to
> HBA-attached disks and 'auto_hotplug' handles re-adding disks on a
> hotplug event where the administrator expects this to happen for the
> "raid controller" but not for example usb-storage.
I think were certainly want something like that.
> > And I notice that you hunt through all of the option-rom memory to
> > find the option from for the IMSM to read some details.
> > Once you have the I/O Controller, can you just look in the "resource"
> > file to get start/length info and read just that area ???
>
> Scanning through option-rom memory was a bit unpalatable to me as
> well, and I expected to find this region mapped via an expansion-rom
> bar. However this is not the case as there does not appear to be an
> associated 'resource' file with this range. /proc/iomem reports:
> 000c0000-000dffff : pnp 00:01
>
> /sys/bus/pnp/devices/00:01/ does not contain anything that would point
> me to the eventual 0xce840 in this case.
That's fairly boring.
Can we at least check that it is 'mem' space rather than 'io' space
that we are hunting through.
I can see in /sys/bus/pnp/devices/*/resources that some ranges are
'mem' and some are 'io'.
??
Thanks,
NeilBrown
prev parent reply other threads:[~2008-12-02 6:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 23:45 [mdadm git pull] support for detecting platform raid capabilities and some fixes Dan Williams
2008-11-27 0:13 ` Kay Sievers
2008-11-27 3:25 ` Dan Williams
2008-11-27 6:24 ` Kay Sievers
2008-11-28 17:24 ` Dan Williams
2008-11-27 23:39 ` Neil Brown
2008-11-28 19:16 ` Dan Williams
2008-12-02 6:18 ` Neil Brown [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=18740.54069.607869.865438@notabene.brown \
--to=neilb@suse.de \
--cc=dan.j.williams@intel.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-raid@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