From: Martin Wilck <mwilck@arcor.de>
To: Dan Williams <dan.j.williams@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>, NeilBrown <neilb@suse.de>
Subject: Re: Implementing --detail-platform for DDF
Date: Fri, 13 Sep 2013 19:25:22 +0200 [thread overview]
Message-ID: <52334A82.8070303@arcor.de> (raw)
In-Reply-To: <CAA9_cmcoSkDL_afvnBL09eSryAPYd-90wk1XJZ_Hvo4CdEQgpg@mail.gmail.com>
On 09/13/2013 02:18 AM, Dan Williams wrote:
> On Wed, Sep 11, 2013 at 2:00 PM, Martin Wilck <mwilck@arcor.de> wrote:
>> Hi Neil,
>>
>> I thought I might come up with an implementation of mdadm
>> --detail-platform for DDF, but I encountered a problem I'd like to discuss.
>>
>> For DDF, we can't scan PCI devices like IMSM does, because we don't know
>> all controllers supporting DDF. Thus I considered scanning block devices
>> instead and looking at "foreign" vendor strings in the meta data;
>> possibly also filtering by device names or types. It occured to me that
>> it might be elegant to simply call conf_get_devs() for a list of devices
>> to be scanned. But if I do that, config.o and its dependencies must be
>> linked with mdmon, blowing up its size considerably. I figure that
>> that's a no-go. But I'm also reluctant to write my own DDF-specific
>> block device scanning code while there is conf_get_devs() already.
>>
>> Perhaps I am misunderstanding the purpose of --detail-platform?
>> I wouldn't bother with it if YaST2/libstorage didn't call it in order to
>> check if a "fake RAID" platform is present.
>
> --detail-platform is more about finding the presence of the raid
> option-rom / firmware support. I can imagine the installer may want
> to confirm that an array is bootable before installing to it.
>
> Is it enough to scan for devices that self-report as raid controllers?
> Problem then becomes finding a cross-implementation method to parse
> the firmware signature to detect DDF capabilities.
That'd certainly be nice to have, but I can't imagine a way how to
collect these data unless the vendors contribute directly, as Intel did.
For LSI I'd be able to dig up a list of PCI IDs of RAID-capable
controllers, but that's about all I can think of. For other vendors I
have no information.
Regards
Martin
>
> --
> Dan
prev parent reply other threads:[~2013-09-13 17:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 21:00 Implementing --detail-platform for DDF Martin Wilck
2013-09-12 6:00 ` NeilBrown
2013-09-12 18:14 ` Martin Wilck
2013-09-13 0:18 ` Dan Williams
2013-09-13 17:25 ` Martin Wilck [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=52334A82.8070303@arcor.de \
--to=mwilck@arcor.de \
--cc=dan.j.williams@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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