From: NeilBrown <neilb@suse.de>
To: "Hawrylewicz Czarnowski,
Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Williams, Dan J" <dan.j.williams@intel.com>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>,
"Neubauer, Wojciech" <Wojciech.Neubauer@intel.com>
Subject: Re: [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI.
Date: Mon, 28 Mar 2011 10:43:09 +1100 [thread overview]
Message-ID: <20110328104309.39e1982d@notabene.brown> (raw)
In-Reply-To: <66C59AD0932712458090B447266D638C012841F2C3@irsmsx504.ger.corp.intel.com>
On Fri, 25 Mar 2011 15:18:13 +0000 "Hawrylewicz Czarnowski, Przemyslaw"
<przemyslaw.hawrylewicz.czarnowski@intel.com> wrote:
> OEM table does not suit our needs so it cannot be used.
> This patch removes feature added in commit 8a0bf4f378c8b.
>
I've applied this and the next one - thanks.
NeilBrown
> Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
> ---
> platform-intel.c | 10 +---------
> 1 files changed, 1 insertions(+), 9 deletions(-)
>
> diff --git a/platform-intel.c b/platform-intel.c
> index 64542b9..fe6785c 100644
> --- a/platform-intel.c
> +++ b/platform-intel.c
> @@ -236,8 +236,7 @@ static int scan(const void *start, const void *end, const void *data)
>
> for (offset = 0; offset < len; offset += 4) {
> imsm_mem = start + offset;
> - if ((memcmp(imsm_mem->signature, "$VER", 4) == 0) ||
> - (memcmp(imsm_mem->signature, "$OEM", 4) == 0)) {
> + if ((memcmp(imsm_mem->signature, "$VER", 4) == 0)) {
> imsm_orom[dev] = *imsm_mem;
> populated_orom[dev] = 1;
> return populated_orom[SYS_DEV_SATA] && populated_orom[SYS_DEV_SAS];
> @@ -349,7 +348,6 @@ static const struct imsm_orom *find_imsm_hba_orom(enum sys_dev_type hba_id)
>
> #define SYS_EFI_VAR_PATH "/sys/firmware/efi/vars"
> #define SCU_PROP "RstScuV"
> -#define SCU_PROP_OEM "RstScuO"
> #define AHCI_PROP "RstSataV"
>
> #define VENDOR_GUID \
> @@ -395,12 +393,6 @@ const struct imsm_orom *find_imsm_efi(enum sys_dev_type hba_id)
>
> dprintf("EFI VAR: path=%s\n", path);
> dfd = open(path, O_RDONLY);
> - if ((dfd < 0) && (hba_id == SYS_DEV_SAS)) {
> - /* check OEM parameters */
> - snprintf(path, PATH_MAX, "%s/%s-%s", SYS_EFI_VAR_PATH, SCU_PROP_OEM, guid_str(buf, VENDOR_GUID));
> - dfd = open(path, O_RDONLY);
> - dprintf("EFI VAR: path=%s\n", path);
> - }
> if (dfd < 0) {
> populated_efi[hba_id] = 0;
> return NULL;
prev parent reply other threads:[~2011-03-27 23:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 15:18 [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI Hawrylewicz Czarnowski, Przemyslaw
2011-03-25 15:58 ` Please update mdadm 3.2.1 release Labun, Marcin
2011-03-27 23:43 ` NeilBrown [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=20110328104309.39e1982d@notabene.brown \
--to=neilb@suse.de \
--cc=Wojciech.Neubauer@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=przemyslaw.hawrylewicz.czarnowski@intel.com \
/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).