[tip:x86/urgent] x86/gpu: Add TGL stolen memory support

From: tip-bot for Michel Thierry
Date: Tue Jul 16 2019 - 17:22:18 EST


Commit-ID: 080ac61bad4a3307880bb982cec48b225912b362
Gitweb: https://git.kernel.org/tip/080ac61bad4a3307880bb982cec48b225912b362
Author: Michel Thierry <michel.thierry@xxxxxxxxx>
AuthorDate: Fri, 12 Jul 2019 14:02:39 -0700
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitDate: Tue, 16 Jul 2019 23:13:49 +0200

x86/gpu: Add TGL stolen memory support

Reuse Gen11 stolen memory functionality since Tiger Lake uses the same BSM
register (and format).

Signed-off-by: Michel Thierry <michel.thierry@xxxxxxxxx>
Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
Link: https://lkml.kernel.org/r/20190712210238.5622-1-lucas.demarchi@xxxxxxxxx

---
arch/x86/kernel/early-quirks.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
index 6c4f01540833..6f6b1d04dadf 100644
--- a/arch/x86/kernel/early-quirks.c
+++ b/arch/x86/kernel/early-quirks.c
@@ -549,6 +549,7 @@ static const struct pci_device_id intel_early_ids[] __initconst = {
INTEL_CNL_IDS(&gen9_early_ops),
INTEL_ICL_11_IDS(&gen11_early_ops),
INTEL_EHL_IDS(&gen11_early_ops),
+ INTEL_TGL_12_IDS(&gen11_early_ops),
};

struct resource intel_graphics_stolen_res __ro_after_init = DEFINE_RES_MEM(0, 0);