[coreboot-gerrit] New patch to review for coreboot: soc/intel/apollolake: save GNVS pointer to SMM handler

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Fri Jun 10 22:55:20 CEST 2016


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15152

-gerrit

commit 0ee336666dc076b9a8560d488336470d115a75ca
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Fri Jun 10 15:50:34 2016 -0500

    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
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 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 07a5fcb..c950255 100644
--- a/src/soc/intel/apollolake/acpi.c
+++ b/src/soc/intel/apollolake/acpi.c
@@ -21,6 +21,7 @@
 #include <arch/smp/mpspec.h>
 #include <cbmem.h>
 #include <cpu/x86/smm.h>
+#include <cpu/cpu.h>
 #include <soc/acpi.h>
 #include <soc/intel/common/acpi.h>
 #include <soc/iomap.h>
@@ -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("\\");



More information about the coreboot-gerrit mailing list