[SWDEV-530385] Update aca-decode with parsing fixes (#435)

*Update aca-decode to #4cd539d that fixes some errors in parsing cper files for afid extraction
*Without this fix, we get garbage value for some cper input files relating GFX_poison_cpers

Signed-off-by: Oosman Saeed <oossaeed@amd.com>

[ROCm/amdsmi commit: 2c3fa591b5]
Ta zmiana jest zawarta w:
Saeed, Oosman authored and GitHub committed 2025-06-04 18:49:05 -05:00
1 rodzic e38de3932f
złożenie 99df131155
10 plików zmienionych
+399 -18

Żadne pliki nie pasują do Twojego wyszukiwania

+9 -3
Wyświetl plik
@@ -1,6 +1,8 @@
#include "error_map.h"
#include <string.h>
#define AFID_VERSION "0.7"
static const error_map_entry_t error_map[] = {
{1, "Boot-Time Errors", "FW Load", "CPER", "Fail-to-init"},
{2, "Boot-Time Errors", "HBM BIST Test", "CPER", "Fail-to-init"},
@@ -31,7 +33,11 @@ static const error_map_entry_t error_map[] = {
{27, "Device Internal Errors", "Watchdog Timeout (WDT)", "CPER", "Fatal"},
{28, "Device Internal Errors", "All Others", "CPER", "Uncorrected, Non-fatal"},
{29, "Device Internal Errors", "All Others", "CPER", "Corrected"},
{30, "Device Internal Errors", "All Others", "CPER", "Fatal"}};
{30, "Device Internal Errors", "All Others", "CPER", "Fatal"},
{31, "CPER Format", "Malformed CPER", "CPER", "ALL"},
{32, "CPER Format", "Incomplete ACA Data", "CPER", "ALL"},
{33, "CPER Format", "Invalid ACA Data", "CPER", "ALL"},
{34, "Unidentified Errors", "Unidentified Error", "CPER", "ALL"}};
static const size_t NUM_ERROR_ENTRIES = sizeof(error_map) / sizeof(error_map[0]);
@@ -42,7 +48,7 @@ int get_error_id(const char *error_category, const char *error_type, const char
strcmp(error_type, "UNKNOWN") == 0 ||
strcmp(error_severity, "UNKNOWN") == 0)
{
return -1;
return 33; // Return ID for "Invalid Error" if any input is "UNKNOWN" or NULL
}
for (size_t i = 0; i < NUM_ERROR_ENTRIES; i++)
@@ -55,5 +61,5 @@ int get_error_id(const char *error_category, const char *error_type, const char
}
}
return -1;
return 34; // Return ID for "Unidentified Errors" if no match found
}