]> git.baikalelectronics.ru Git - kernel.git/commit
x86/Sandy Bridge: reserve pages when integrated graphics is present
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 14 Nov 2012 20:43:31 +0000 (20:43 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 11 Jan 2013 22:26:38 +0000 (14:26 -0800)
commit1d11e3bcdd8b4e7d338e501caf9638ccc4f71f73
tree15d39f3b236bc5956bbe487749852c326f9d1bc6
parent61a66af064b656c6751cab843c11870b9f46179d
x86/Sandy Bridge: reserve pages when integrated graphics is present

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.  So reserve those at boot if set detect a SNB gfx device on the
CPU to avoid GPU hangs.

Stephane Marchesin had a similar patch to the page allocator awhile
back, but rather than reserving pages up front, it leaked them at
allocation time.

[ hpa: made a number of stylistic changes, marked arrays as static
  const, and made less verbose; use "memblock=debug" for full
  verbosity. ]

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/setup.c