soc/intel/common/block/smm: add case intrusion to SMI handler
commitccde6be13a64f369da61c70be0221d0bc24f0fe2
authorMichael Niewöhner <foss@mniewoehner.de>
Tue, 3 Mar 2020 19:48:30 +0000 (3 20:48 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 11 Mar 2020 15:36:31 +0000 (11 15:36 +0000)
tree8ba79724852f034f0c41221e11be7e2b76f493e5
parent5f26d8cb4ad17570a60f449022574d819f39d6c2
soc/intel/common/block/smm: add case intrusion to SMI handler

This adds case intrusion detection to the SMI handler. At this point one
can add the code to be executed when the INTRUDER signal gets asserted
(iow: when the case is opened).

Examples:
 - issue a warning
 - trigger an NMI
 - call poweroff()
 - ...

Tested on X11SSM-F.

Change-Id: Ifad675bb09215ada760efebdcd915958febf5778
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39265
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/soc/intel/common/block/smm/smihandler.c