From 5a910a86be7e8174d81d194a2a6042e3452ccaf8 Mon Sep 17 00:00:00 2001 From: Anatol Pomazau Date: Thu, 18 Jan 2018 13:46:50 -0800 Subject: Add support for HW alerts - Add a vendor command that provides alert counter. Userspace can use it e.g. for user metric analysis. - Add 'alerts' debug console command. It provides information about chip alerts: supported alerts, fuse status, interrupt status, alert counter. - Add 'alerts fire [INT]' command to fire a software defined alert (globalsec/fwN where N is 0,1,2,3). Signed-off-by: Anatol Pomazau BUG=b:63523947 TEST=ran the FW at Pyro and checked alerts data sent to host Change-Id: I7cec0c451ed71076b44dad14a151b147ff1337e8 Reviewed-on: https://chromium-review.googlesource.com/817639 Commit-Ready: Anatol Pomazau Tested-by: Anatol Pomazau Reviewed-by: Vadim Bendebury --- include/tpm_vendor_cmds.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/tpm_vendor_cmds.h') diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h index b61ca2623c..09d578493f 100644 --- a/include/tpm_vendor_cmds.h +++ b/include/tpm_vendor_cmds.h @@ -50,6 +50,7 @@ enum vendor_cmd_cc { VENDOR_CC_DISABLE_RMA = 32, VENDOR_CC_MANAGE_CCD_PWD = 33, VENDOR_CC_CCD = 34, + VENDOR_CC_GET_ALERTS_DATA = 35, LAST_VENDOR_COMMAND = 65535, }; -- cgit v1.2.1