fix(intel): flush dcache before sending certificate to mailbox

Due to the cache coherency issue the dcache need to flush
before sending the certificate to the mailbox

Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: I39d5144519d9c7308597698b4cbea1b8aba0a849
This commit is contained in:
Boon Khai Ng 2021-05-26 01:50:34 +08:00 committed by Sieu Mun Tang
parent 651841f201
commit 49d44ec5f3

View file

@ -74,6 +74,8 @@ uint32_t intel_fcs_send_cert(uint64_t addr, uint64_t size,
(uint32_t *)addr, size / MBOX_WORD_BYTE, (uint32_t *)addr, size / MBOX_WORD_BYTE,
CMD_DIRECT); CMD_DIRECT);
flush_dcache_range(addr, size);
if (status < 0) { if (status < 0) {
return INTEL_SIP_SMC_STATUS_ERROR; return INTEL_SIP_SMC_STATUS_ERROR;
} }