From e86214739e274fc96dfce2e58006e8b515d5723a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 10 Jun 2016 15:50:34 -0500 Subject: [PATCH] UPSTREAM: soc/intel/apollolake: save GNVS pointer to SMM handler Like other boards there will likely be information needed from GNVS in the SMM handler. Therefore, it's important that the point is stashed accordingly. BUG=chrome-os-partner:54275 TEST=Noted GNVS messages from SMM console on reef. Change-Id: If12b69731330a1e0af7f8fe880635e5ffd02d715 Original-Signed-off-by: Aaron Durbin Original-Reviewed-on: https://review.coreboot.org/15152 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Furquan Shaikh Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/352033 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Furquan Shaikh --- src/soc/intel/apollolake/acpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/intel/apollolake/acpi.c b/src/soc/intel/apollolake/acpi.c index 07a5fcbf88..c950255e73 100644 --- a/src/soc/intel/apollolake/acpi.c +++ b/src/soc/intel/apollolake/acpi.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -159,6 +160,8 @@ void southbridge_inject_dsdt(device_t device) if (gnvs) { acpi_create_gnvs(gnvs); acpi_save_gnvs((uintptr_t)gnvs); + /* And tell SMI about it */ + smm_setup_structures(gnvs, NULL, NULL); /* Add it to DSDT. */ acpigen_write_scope("\\");