diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-07-31 17:11:41 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-07-31 17:11:41 -0700 |
commit | 969c255511a4bd12e6becc11b2a822f24c1fbb76 (patch) | |
tree | 537dab66d2bd7d45adfd6f5ab69ccb77c75a01da /probe_roms.h | |
parent | 148acb7baaa810b68d55df4c1784d6bd0dfd1b78 (diff) | |
download | mdadm-969c255511a4bd12e6becc11b2a822f24c1fbb76.tar.gz mdadm-969c255511a4bd12e6becc11b2a822f24c1fbb76.tar.xz mdadm-969c255511a4bd12e6becc11b2a822f24c1fbb76.zip |
platform: relax rom scanning alignment for ahci platforms
The PCI-3.0 Firmware specification allows for option-roms to have
512-byte alignment rather than 2048-byte. As there does not appear to
be a reliable method to detect a PCI-3.0 compliant BIOS from userspace
we allow the imsm platform detection code to presume that a system
modern enough to have an Intel AHCI controller does not have
dangerous/legacy ISA regions in the option-ROM memory space.
An environment variable to disable this behaviour, IMSM_SAFE_OROM_SCAN,
is added in case this presumption is ever proven wrong.
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'probe_roms.h')
-rw-r--r-- | probe_roms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/probe_roms.h b/probe_roms.h index 557e933..a1e291a 100644 --- a/probe_roms.h +++ b/probe_roms.h @@ -18,7 +18,7 @@ */ void probe_roms_exit(void); -int probe_roms_init(void); +int probe_roms_init(unsigned long align); typedef int (*scan_fn)(const void *start, const void *end); int scan_adapter_roms(scan_fn fn); void probe_roms(void); |