From 38641aa8b40ef66e5a5016f6f299a3aa1fb9b0d5 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 31 Mar 2020 17:51:18 +0200 Subject: drivers/intel/gma/acpi: Bail out on empty display list Whether the GMA is used depends on the mainboard, so we shouldn't rely on the presence of the static ACPI code around `GFX0`. Change-Id: I4d20b459b8361e43435b535b2b395f51ce1704e6 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/39978 Reviewed-by: Angel Pons Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/drivers/intel/gma/acpi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/drivers/intel/gma') diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c index c0eef880a9..5a10ab4ed7 100644 --- a/src/drivers/intel/gma/acpi.c +++ b/src/drivers/intel/gma/acpi.c @@ -13,6 +13,9 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info * const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" }; int counters[ARRAY_SIZE(names)] = { 0 }; + if (!conf->ndid) + return; + acpigen_write_scope("\\_SB.PCI0.GFX0"); /* -- cgit v1.2.3