Skip to content

Commit b179839

Browse files
BenjaminLimJLsieumunt
authored andcommitted
fix(intel): agilex bitstream pre-authenticate
HSD #15012010816: To add in bitstream pre-authentication checking. Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
1 parent 20b86ad commit b179839

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

plat/intel/soc/common/include/socfpga_mailbox.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
#define SOFTFUNC_STATUS_CONF_DONE (1 << 0)
140140
#define MBOX_CFGSTAT_STATE_IDLE 0x00000000
141141
#define MBOX_CFGSTAT_STATE_CONFIG 0x10000000
142+
#define MBOX_CFGSTAT_VAB_BS_PREAUTH 0x20000000
142143
#define MBOX_CFGSTAT_STATE_FAILACK 0x08000000
143144
#define MBOX_CFGSTAT_STATE_ERROR_INVALID 0xf0000001
144145
#define MBOX_CFGSTAT_STATE_ERROR_CORRUPT 0xf0000002

plat/intel/soc/common/soc/socfpga_mailbox.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ int intel_mailbox_get_config_status(uint32_t cmd, bool init_done)
609609
}
610610

611611
res = response[RECONFIG_STATUS_STATE];
612+
613+
if (res == MBOX_CFGSTAT_VAB_BS_PREAUTH) {
614+
return MBOX_CFGSTAT_STATE_CONFIG;
615+
}
616+
612617
if ((res != 0U) && (res != MBOX_CFGSTAT_STATE_CONFIG)) {
613618
return res;
614619
}

0 commit comments

Comments
 (0)