soc/intel/common: Add InSMM.STS support
commit232222727d51f2d254121738b2e3ff92b8c1dc1f
authorAngel Pons <th3fanbus@gmail.com>
Thu, 25 Mar 2021 12:02:22 +0000 (25 13:02 +0100)
committerPatrick Rudolph <siro@das-labor.org>
Mon, 21 Jun 2021 08:26:41 +0000 (21 08:26 +0000)
treebf8be8f510686c774581c8afa6df0dfb6cc1a391
parentd21b463fb058deccef3a2c2ad80d771b5aba9f19
soc/intel/common: Add InSMM.STS support

Tested on HP 280 G2, SMMSTORE v1 and v2 still work.

Other tests:
- If one does not set BIOS_CONTROL bit WPD, SMMSTORE breaks.
- If one does not write the magic MSR `or 1`, SMMSTORE breaks.

Change-Id: Ia90c0e3f8ccf895bfb6d46ffe26750393dab95fb
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51796
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/include/cpu/intel/msr.h
src/soc/intel/common/block/smm/smihandler.c
src/soc/intel/common/pch/lockdown/lockdown.c