diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c index 29a0c2192b..ef1105cfdf 100644 --- a/src/soc/intel/common/block/cse/cse.c +++ b/src/soc/intel/common/block/cse/cse.c @@ -268,6 +268,13 @@ bool cse_is_hfs1_cws_normal(void) return false; } +bool cse_is_hfs1_cws_m3_no_uma(void) +{ + union me_hfsts1 hfs1; + hfs1.data = me_read_config32(PCI_ME_HFSTS1); + return hfs1.fields.working_state == ME_HFS1_CWS_M3_NO_UMA; +} + bool cse_is_hfs1_com_normal(void) { return cse_check_hfs1_com(ME_HFS1_COM_NORMAL); diff --git a/src/soc/intel/common/block/include/intelblocks/cse.h b/src/soc/intel/common/block/include/intelblocks/cse.h index 99dd7d5e17..ac3f2cdcf9 100644 --- a/src/soc/intel/common/block/include/intelblocks/cse.h +++ b/src/soc/intel/common/block/include/intelblocks/cse.h @@ -57,6 +57,7 @@ enum mkhi_group_id { #define MKHI_BUP_COMMON_GET_BOOT_PERF_DATA 0x8 /* ME Current Working States */ +#define ME_HFS1_CWS_M3_NO_UMA 0x4 #define ME_HFS1_CWS_NORMAL 0x5 /* ME Current Operation Modes */ @@ -453,6 +454,12 @@ void print_me_fw_version(void *unused); */ bool cse_is_hfs1_cws_normal(void); +/* + * Checks current working operation state is M3_NO_UMA or not. + * Returns true if CSE's current working state is M3_NO_UMA, otherwise false. + */ +bool cse_is_hfs1_cws_m3_no_uma(void); + /* * Checks CSE's current operation mode is normal or not. * Returns true if CSE's current operation mode is normal, otherwise false.