aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mm.h
diff options
context:
space:
mode:
authorXudong Hao <xudong.hao@intel.com>2013-03-26 14:22:07 +0100
committerJan Beulich <jbeulich@suse.com>2013-03-26 14:22:07 +0100
commitdb537fe3023bf157b85c8246782cb72a6f989b31 (patch)
tree552d8ac07bffa0e516a260b8c2f74d9a58aaeb09 /xen/include/asm-x86/mm.h
parentbabea0a412ee24a94ed0bd03543060b2c6bc0bbd (diff)
downloadxen-db537fe3023bf157b85c8246782cb72a6f989b31.tar.gz
xen-db537fe3023bf157b85c8246782cb72a6f989b31.tar.bz2
xen-db537fe3023bf157b85c8246782cb72a6f989b31.zip
x86: reserve pages when SandyBridge integrated graphics
SNB graphics devices have a bug that prevent them from accessing certain memory ranges, namely anything below 1M and in the pages listed in the table. Xen does not initialize below 1MB to heap, i.e. below 1MB pages don't be allocated, so it's unnecessary to reserve memory below the 1 MB mark that has not already been reserved. So reserve those pages listed in the table at xen boot if set detect a SNB gfx device on the CPU to avoid GPU hangs. Signed-off-by: Xudong Hao <xudong.hao@intel.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/mm.h')
-rw-r--r--xen/include/asm-x86/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
index 41d3209264..031525735b 100644
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -322,6 +322,7 @@ int is_iomem_page(unsigned long mfn);
void clear_superpage_mark(struct page_info *page);
+const unsigned long *get_platform_badpages(unsigned int *array_size);
/* Per page locks:
* page_lock() is used for two purposes: pte serialization, and memory sharing.
*