x86/gpu: reserve ICL's graphics stolen memory
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 May 2018 20:32:51 +0000 (13:32 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 10 Jul 2018 23:28:47 +0000 (16:28 -0700)
commitdb0c8d8b031d2b5960f6407f7f2ca20e97e00605
tree81bea7313ceeb9c9199d9ccfbf87763d97d399a0
parent7ab87ede5078af1daccf26951096e16ac16e19cb
x86/gpu: reserve ICL's graphics stolen memory

ICL changes the registers and addresses to 64 bits.

I also briefly looked at implementing an u64 version of the PCI config
read functions, but I concluded this wouldn't be trivial, so it's not
worth doing it for a single user that can't have any racing problems
while reading the register in two separate operations.

v2:
 - Scrub the development (non-public) changelog (Joonas).
 - Remove the i915.ko bits so this can be easily backported in order
   to properly avoid stolen memory even on machines without i915.ko
   (Joonas).
 - CC stable for the reasons above.

Issue: VIZ-9250
CC: stable@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: x86@kernel.org
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Fixes: 412310019a20 ("drm/i915/icl: Add initial Icelake definitions.")
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180504203252.28048-1-paulo.r.zanoni@intel.com
arch/x86/kernel/early-quirks.c
include/drm/i915_drm.h