* [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI.
@ 2011-03-25 15:18 Hawrylewicz Czarnowski, Przemyslaw
2011-03-25 15:58 ` Please update mdadm 3.2.1 release Labun, Marcin
2011-03-27 23:43 ` [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI NeilBrown
0 siblings, 2 replies; 3+ messages in thread
From: Hawrylewicz Czarnowski, Przemyslaw @ 2011-03-25 15:18 UTC (permalink / raw)
To: NeilBrown
Cc: linux-raid@vger.kernel.org, Williams, Dan J, Ciechanowski, Ed,
Neubauer, Wojciech
OEM table does not suit our needs so it cannot be used.
This patch removes feature added in commit 8a0bf4f378c8b.
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;
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Please update mdadm 3.2.1 release
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 ` Labun, Marcin
2011-03-27 23:43 ` [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI NeilBrown
1 sibling, 0 replies; 3+ messages in thread
From: Labun, Marcin @ 2011-03-25 15:58 UTC (permalink / raw)
To: NeilBrown
Cc: linux-raid@vger.kernel.org, Hawrylewicz Czarnowski, Przemyslaw,
Neubauer, Wojciech
Hi Neil,
Please include both fixes in mdadm 3.2.1 release:
RE: [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI.
RE: [PATCH 2/2] imsm: reading of UEFI variables needs an update
The first one removes OEM parameter table reading. We no longer scan OROM for "$OEM" string or read EFI "RstScuO" variable.
They do not contain the information that we are looking for.
The second one sets correct directory and file name for EFI RST version table.
The fixes are a minor change to mdadm as whole, but enable proper handling of EFI/OROM information.
Thank you,
Marcin Labun
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
> owner@vger.kernel.org] On Behalf Of Hawrylewicz Czarnowski, Przemyslaw
> Sent: Friday, March 25, 2011 4:18 PM
> To: NeilBrown
> Cc: linux-raid@vger.kernel.org; Williams, Dan J; Ciechanowski, Ed;
> Neubauer, Wojciech
> Subject: [PATCH 1/2] imsm: remove OEM table from detection of OROM and
> EFI.
>
> OEM table does not suit our needs so it cannot be used.
> This patch removes feature added in commit 8a0bf4f378c8b.
>
> 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;
> --
> 1.7.3.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI.
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
1 sibling, 0 replies; 3+ messages in thread
From: NeilBrown @ 2011-03-27 23:43 UTC (permalink / raw)
To: Hawrylewicz Czarnowski, Przemyslaw
Cc: linux-raid@vger.kernel.org, Williams, Dan J, Ciechanowski, Ed,
Neubauer, Wojciech
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-27 23:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 1/2] imsm: remove OEM table from detection of OROM and EFI NeilBrown
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).