Add support for the HBM temperature

The rsmi_dev_temp_metric_get() can also support the HBM
temperatures which is retrieved from gpu_metrics.

Change-Id: I96b979296e90cf881523627b41b1a02849676416
This commit is contained in:
Bill(Shuzhou) Liu committed 2021-04-05 15:55:55 -04:00
1 parent f990d775b7
commit da480b4589
3 files changed
+43 -2

No files matched your search

+5 -2
View File
@@ -407,8 +407,11 @@ typedef enum {
RSMI_TEMP_TYPE_JUNCTION, //!< Junction/hotspot
//!< temperature
RSMI_TEMP_TYPE_MEMORY, //!< VRAM temperature
RSMI_TEMP_TYPE_LAST = RSMI_TEMP_TYPE_MEMORY,
RSMI_TEMP_TYPE_HBM_0, //!< HBM temperature instance 0
RSMI_TEMP_TYPE_HBM_1, //!< HBM temperature instance 1
RSMI_TEMP_TYPE_HBM_2, //!< HBM temperature instance 2
RSMI_TEMP_TYPE_HBM_3, //!< HBM temperature instance 3
RSMI_TEMP_TYPE_LAST = RSMI_TEMP_TYPE_HBM_3,
RSMI_TEMP_TYPE_INVALID = 0xFFFFFFFF //!< Invalid type
} rsmi_temperature_type_t;