From 7afb8e90705d939044a08ed5d5aa184161feaa7f Mon Sep 17 00:00:00 2001 From: Cleanroom Laptop L15 Date: Fri, 29 Apr 2022 23:22:44 +0200 Subject: [PATCH] execution status codes --- .../PlocSupervisorDefinitions.h | 114 +++++++++++++----- 1 file changed, 87 insertions(+), 27 deletions(-) diff --git a/linux/devices/devicedefinitions/PlocSupervisorDefinitions.h b/linux/devices/devicedefinitions/PlocSupervisorDefinitions.h index c841b22c..23f3f758 100644 --- a/linux/devices/devicedefinitions/PlocSupervisorDefinitions.h +++ b/linux/devices/devicedefinitions/PlocSupervisorDefinitions.h @@ -1304,8 +1304,8 @@ class VerificationReport : public TmPacket { uint16_t refApid = 0; size_t size = 0; uint8_t* refApidPtr = this->getPacketData(); - ReturnValue_t result = SerializeAdapter::deSerialize(&refApid, refApidPtr, &size, - SerializeIF::Endianness::BIG); + ReturnValue_t result = + SerializeAdapter::deSerialize(&refApid, refApidPtr, &size, SerializeIF::Endianness::BIG); if (result != HasReturnvaluesIF::RETURN_OK) { sif::debug << "ExecutionReport: Failed to deserialize reference APID field" << std::endl; return result; @@ -1378,8 +1378,8 @@ class AcknowledgmentReport : public VerificationReport { break; } case StatusCode::DEFAULT_NAK: { - sif::warning << "Supervisor acknowledgment report status: Default code for nak" << - std::endl; + sif::warning << "Supervisor acknowledgment report status: Default code for nak" + << std::endl; break; } case StatusCode::ROUTE_PACKET: { @@ -1456,20 +1456,21 @@ class ExecutionReport : public VerificationReport { MPSOC_BOOT_FAILED = 0x106, SP_NOT_AVAILABLE = 0x200, SP_DATA_INSUFFICIENT = 0x201, - MPSOC_NOT_IN_RESET = 0x202, - FLASH_INIT_FAILED = 0x203, - FLASH_ERASE_FAILED = 0x204, - FLASH_WRITE_FAILED = 0x205, - FLASH_VERIFY_FAILED = 0x206, - CANNOT_ACCESS_TM = 0x207, - CANNOT_SEND_TM = 0x208, + SP_MEMORY_ID_INVALID = 0x202, + MPSOC_NOT_IN_RESET = 0x203, + FLASH_INIT_FAILED = 0x204, + FLASH_ERASE_FAILED = 0x205, + FLASH_WRITE_FAILED = 0x206, + FLASH_VERIFY_FAILED = 0x207, + CANNOT_ACCESS_TM = 0x208, + CANNOT_SEND_TM = 0x209, PG_LOW = 0x300, PG_5V_LOW = 0x301, PG_0V85_LOW = 0x302, PG_1V8_LOW = 0x303, PG_MISC_LOW = 0x304, PG_3V3_LOW = 0x305, - PG__MB_VAIO_LOW = 0x306, + PG_MB_VAIO_LOW = 0x306, PG_MB_MPSOCIO_LOW = 0x307 }; @@ -1581,36 +1582,95 @@ class ExecutionReport : public VerificationReport { break; } case StatusCode::OUT_OF_HEAP_MEMORY: { - sif::warning - << "Supervisor execution report status: Out of heap memory" << std::endl; + sif::warning << "Supervisor execution report status: Out of heap memory" << std::endl; break; } case StatusCode::INVALID_STATE_TRANSITION: { - sif::warning - << "Supervisor execution report status: Invalid state transition" << std::endl; + sif::warning << "Supervisor execution report status: Invalid state transition" << std::endl; break; } case StatusCode::MPSOC_BOOT_FAILED: { - sif::warning - << "Supervisor execution report status: MPSoC boot failed" << std::endl; + sif::warning << "Supervisor execution report status: MPSoC boot failed" << std::endl; break; } case StatusCode::SP_NOT_AVAILABLE: { - sif::warning - << "Supervisor execution report status: SP not available" << std::endl; - break; - } + sif::warning << "Supervisor execution report status: SP not available" << std::endl; + break; + } case StatusCode::SP_DATA_INSUFFICIENT: { - sif::warning - << "Supervisor execution report status: SP data insufficient" << std::endl; - break; - } + sif::warning << "Supervisor execution report status: SP data insufficient" << std::endl; + break; + } + case StatusCode::SP_MEMORY_ID_INVALID: { + sif::warning << "Supervisor execution report status: SP data insufficient" << std::endl; + break; + } + case StatusCode::MPSOC_NOT_IN_RESET: { + sif::warning << "Supervisor execution report status: MPSoC not in reset" << std::endl; + break; + } + case StatusCode::FLASH_INIT_FAILED: { + sif::warning << "Supervisor execution report status: Flash init failed" << std::endl; + break; + } + case StatusCode::FLASH_ERASE_FAILED: { + sif::warning << "Supervisor execution report status: Flash erase failed" << std::endl; + break; + } + case StatusCode::FLASH_WRITE_FAILED: { + sif::warning << "Supervisor execution report status: Flash write failed" << std::endl; + break; + } + case StatusCode::FLASH_VERIFY_FAILED: { + sif::warning << "Supervisor execution report status: Flash verify failed" << std::endl; + break; + } + case StatusCode::CANNOT_ACCESS_TM: { + sif::warning << "Supervisor execution report status: Can not access tm" << std::endl; + break; + } + case StatusCode::CANNOT_SEND_TM: { + sif::warning << "Supervisor execution report status: Can not access tm" << std::endl; + break; + } + case StatusCode::PG_LOW: { + sif::warning << "Supervisor execution report status: PG low" << std::endl; + break; + } + case StatusCode::PG_5V_LOW: { + sif::warning << "Supervisor execution report status: PG 5V low" << std::endl; + break; + } + case StatusCode::PG_0V85_LOW: { + sif::warning << "Supervisor execution report status: PG 0V85 low" << std::endl; + break; + } + case StatusCode::PG_1V8_LOW: { + sif::warning << "Supervisor execution report status: PG 1V8 low" << std::endl; + break; + } + case StatusCode::PG_MISC_LOW: { + sif::warning << "Supervisor execution report status: PG misc low" << std::endl; + break; + } + case StatusCode::PG_3V3_LOW: { + sif::warning << "Supervisor execution report status: PG 3V3 low" << std::endl; + break; + } + case StatusCode::PG_MB_VAIO_LOW: { + sif::warning << "Supervisor execution report status: PG mb vaio low" << std::endl; + break; + } + case StatusCode::PG_MB_MPSOCIO_LOW: { + sif::warning << "Supervisor execution report status: PG mb mpsocio low" << std::endl; + break; + } default: sif::warning << "ExecutionReport::printStatusInformation: Invalid status code: 0x" << std::hex << static_cast(statusCode) << std::endl; break; - } } + } }; /**