soc/amd/common/psp/psp_smi: report errors in 'handle_psp_command'

To see if things went wrong in the 'handle_psp_command' function, print
the status code in case it's not MBOX_PSP_SUCCESS.

Change-Id: I8c02e8e29ab5619282e5b864a8cea6f0703f6ef2
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85238
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2024-11-21 16:00:07 +01:00
commit 9b308f4d54

View file

@ -173,6 +173,9 @@ out:
if (status == MBOX_PSP_SUCCESS && rd_bios_mbox_checksum_en())
wr_bios_mbox_checksum(calc_psp_buffer_checksum8());
if (status != MBOX_PSP_SUCCESS)
printk(BIOS_ERR, "PSP: SMI processing error. staus code %#x\n", status);
}
/* TODO: check if all wbinvd() calls are necessary */