[PATCH] DMI: only ioremap stuff we actually need
[PATCH] DMI: only ioremap stuff we actually need

dmi_scan_machine() tries to ioremap 0x10000 (64K) bytes, even though it only
looks at the first 32 bytes or so.  If the SMBIOS table is near the end of a
memory region, the ioremap() may fail when it shouldn't.

This is in the efi_enabled path, so it really only affects ia64 at the moment.

Signed-off-by: Bjorn Helgaas <10beeee9ebfac68af8330145c8378a1d1bb2a283@hp.com>
Cc: Matt Domsch <04e96a82b027a3325dae0e2e6c77a776e282ec67@dell.com>
Cc: "Tolentino, Matthew E" <5998b6aaad254ab2427bbd859370899beb26af5a@intel.com>
Cc: "Brown, Len" <b060cfa1096cc6e8be83699ddb4ed8a77dd63af5@intel.com>
Cc: Andi Kleen <0474aee45985f5ae829f53849df476200e876990@muc.de>
Acked-by: "Luck, Tony" <e7984595ec0368ff920a7b3521dc7093683f6f26@intel.com>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@osdl.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@osdl.org>

KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas