soc/intel/skylake: Fix AP timeout issue while executing sgx_configure

Increase AP timeout limit for sgx_configure function. As per debug log
sgx_configure was not successful on all cores with given timeout value.

TEST=Ensures no timeout error in AP function execution.

Change-Id: Ia83f7a7eb6cd6c4808d55febfebe32724a633173
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/26286
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Caveh Jalali <caveh@google.com>
This commit is contained in:
Subrata Banik 2018-05-15 13:31:28 +05:30
parent 13f8998026
commit 1c9d8632fa
1 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,7 @@
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <soc/smm.h> #include <soc/smm.h>
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <timer.h>
/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */ /* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */
static const u8 power_limit_time_sec_to_msr[] = { static const u8 power_limit_time_sec_to_msr[] = {
@ -477,9 +478,9 @@ static void post_mp_init(void)
smm_lock(); smm_lock();
#endif #endif
mp_run_on_all_cpus(vmx_configure, NULL, 2000); mp_run_on_all_cpus(vmx_configure, NULL, 2 * USECS_PER_MSEC);
mp_run_on_all_cpus(sgx_configure, NULL, 2000); mp_run_on_all_cpus(sgx_configure, NULL, 14 * USECS_PER_MSEC);
} }
static const struct mp_ops mp_ops = { static const struct mp_ops mp_ops = {