]> git.baikalelectronics.ru Git - kernel.git/commit
x86: cap iomem_resource to addressable physical memory
authorH. Peter Anvin <hpa@zytor.com>
Wed, 10 Jun 2009 01:20:39 +0000 (18:20 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 17 Jun 2009 00:47:31 +0000 (17:47 -0700)
commit4d85869d66daf2995d15ea536d68ef10408d5f6d
tree64479687a95b07bad97b886f1e97c3a391daf934
parent7ff23dcae87d6f59b68e3c282d9d7add2f2f63a9
x86: cap iomem_resource to addressable physical memory

iomem_resource is by default initialized to -1, which means 64 bits of
physical address space if 64-bit resources are enabled.  However, x86
CPUs cannot address 64 bits of physical address space.  Thus, we want
to cap the physical address space to what the union of all CPU can
actually address.

Without this patch, we may end up assigning inaccessible values to
uninitialized 64-bit PCI memory resources.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Martin Mares <mj@ucw.cz>
Cc: stable@kernel.org
arch/x86/kernel/cpu/common.c