Port rocm-smi function to amd-smi

Port most rocm-smi function to amd-smi and add unit tests.

Change-Id: I6387a4bdaf20ead2389c99bb01d438156ccd0747


[ROCm/amdsmi commit: f1d02aca79]
This commit is contained in:
Bill(Shuzhou) Liu
2022-08-31 15:21:33 -04:00
parent 236e4e2d3e
commit bfa976cf08
61 changed files with 6785 additions and 161 deletions
+2 -2
View File
@@ -334,7 +334,7 @@ typedef struct {
* Clock types
*/
typedef enum {
RSMI_CLK_TYPE_SYS = 0x0, //!< System clock
RSMI_CLK_TYPE_SYS = 0x0, //!< System clock
RSMI_CLK_TYPE_FIRST = RSMI_CLK_TYPE_SYS,
RSMI_CLK_TYPE_DF, //!< Data Fabric clock (for ASICs
//!< running on a separate clock)
@@ -1064,7 +1064,7 @@ rsmi_status_t rsmi_dev_id_get(uint32_t dv_ind, uint16_t *id);
* @retval ::RSMI_STATUS_INVALID_ARGS the provided arguments are not valid
*
*/
rsmi_status_t rsmi_dev_sku_get(uint32_t dv_ind, char *sku);
rsmi_status_t rsmi_dev_sku_get(uint32_t dv_ind, uint16_t *sku);
/**
* @brief Get the device vendor id associated with the device with provided