summaryrefslogtreecommitdiff
path: root/plat/xilinx/zynqmp
diff options
context:
space:
mode:
authorNaman Trivedi Manojbhai <naman.trivedimanojbhai@amd.com>2023-03-07 12:41:11 +0530
committerAkshay Belsare <akshay.belsare@amd.com>2023-03-09 15:03:50 +0530
commit5e92be5121e8ecd81a0f89eaae0d1a7ac8f4bfd7 (patch)
tree467ed050765fc3e21d6dbb6c98f2fff1ec9f9ef1 /plat/xilinx/zynqmp
parent1035e3a87a887e86b54c9d297208095dcf8303fb (diff)
downloadarm-trusted-firmware-5e92be5121e8ecd81a0f89eaae0d1a7ac8f4bfd7.tar.gz
fix(xilinx): handle CRC failure in IPI
Currently, if CRC validation fails during IPI communication, pm_ipi_buff_read() logs error message but don't return error code to upper layers. Added CRC failure specific error code which will be returned by pm_ipi_buff_read() if CRC validation fails. Signed-off-by: Naman Trivedi Manojbhai <naman.trivedimanojbhai@amd.com> Change-Id: I33be330f276973471f4ce4115d1e1609ed8fb754
Diffstat (limited to 'plat/xilinx/zynqmp')
-rw-r--r--plat/xilinx/zynqmp/pm_service/pm_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/xilinx/zynqmp/pm_service/pm_defs.h b/plat/xilinx/zynqmp/pm_service/pm_defs.h
index 008cfdc90..f00ab4b1c 100644
--- a/plat/xilinx/zynqmp/pm_service/pm_defs.h
+++ b/plat/xilinx/zynqmp/pm_service/pm_defs.h
@@ -243,11 +243,13 @@ enum pm_opchar_type {
PM_OPCHAR_TYPE_LATENCY,
};
+/* TODO: move pm_ret_status from device specific location to common location */
/**
* @PM_RET_SUCCESS: success
* @PM_RET_ERROR_ARGS: illegal arguments provided (deprecated)
* @PM_RET_ERROR_NOTSUPPORTED: feature not supported (deprecated)
* @PM_RET_ERROR_NOT_ENABLED: feature is not enabled
+ * @PM_RET_ERROR_INVALID_CRC: invalid crc in IPI communication
* @PM_RET_ERROR_INTERNAL: internal error
* @PM_RET_ERROR_CONFLICT: conflict
* @PM_RET_ERROR_ACCESS: access rights violation
@@ -262,6 +264,7 @@ enum pm_ret_status {
PM_RET_ERROR_ARGS = (1U),
PM_RET_ERROR_NOTSUPPORTED = (4U),
PM_RET_ERROR_NOT_ENABLED = (29U),
+ PM_RET_ERROR_INVALID_CRC = (301U),
PM_RET_ERROR_INTERNAL = (2000U),
PM_RET_ERROR_CONFLICT = (2001U),
PM_RET_ERROR_ACCESS = (2002U),