[SWDEV_562432] update inband CPER meta data to be more consistent with OOB (#824)

* Added Product Serial Number to the raw_bytes cper entries
* Added Product Serial Number to the Python API return
---------

Signed-off-by: Saeed, Oosman <Oosman.Saeed@amd.com>
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com>
This commit is contained in:
Saeed, Oosman
2025-11-17 13:25:56 -06:00
committed by GitHub
parent 23f68555db
commit 05ea00dcc4
7 changed files with 88 additions and 9 deletions
+1 -1
View File
@@ -220,5 +220,5 @@ struct cper_1_0 {
amdsmi_status_t amdsmi_get_gpu_cper_entries_by_path(const char *amdgpu_ring_cper_file, uint32_t severity_mask,
char *cper_data, uint64_t *buf_size, amdsmi_cper_hdr_t **cper_hdrs,
uint64_t *entry_count, uint64_t *cursor);
uint64_t *entry_count, uint64_t *cursor, uint64_t product_serial);
std::vector<int> cper_decode(const amdsmi_cper_hdr_t *cper);
+11
View File
@@ -187,4 +187,15 @@ void fill_2d_array(A& arr, T value) {
}
}
/**
* @brief Get the product serial number given the processor handle.
*
* @param[in] processor_handle a pointer to amdsmi_processor_handle
* which the corresponding processor_handle will be stored
*
* @retval ::The serial number
* ::0 if it cannot be determined
*/
uint64_t get_product_serial_number(amdsmi_processor_handle processor_handle);
#endif // AMD_SMI_INCLUDE_AMD_SMI_UTILS_H_