Add support for reading GPU's unique ID
Add support and testing for reading the Unique ID associated with a specific GPU. This ID will persist across reboots, even if the GPU is moved to a different machine. Note that this is per-GPU, not per-card, as some cards have multiple GPUs, and each GPU will get a unique identifier Change-Id: Idce50c6febc2ceb1a4c1200d2489ec8b9d8fe174
Этот коммит содержится в:
@@ -726,6 +726,22 @@ rsmi_dev_subsystem_name_get(uint32_t dv_ind, char *name, size_t len);
|
||||
*/
|
||||
rsmi_status_t rsmi_dev_subsystem_vendor_id_get(uint32_t dv_ind, uint16_t *id);
|
||||
|
||||
/**
|
||||
* @brief Get Unique ID
|
||||
*
|
||||
* @details Given a device index @p dv_ind and a pointer to a uint64_t @p
|
||||
* id, this function will write the unique ID of the GPU pointed to @p
|
||||
* id.
|
||||
*
|
||||
* @param[in] dv_ind a device index
|
||||
*
|
||||
* @param[inout] id a pointer to uint64_t to which the unique ID of the GPU
|
||||
* is written
|
||||
*
|
||||
* @retval ::RSMI_STATUS_SUCCESS is returned upon successful call.
|
||||
*/
|
||||
rsmi_status_t rsmi_dev_unique_id_get(uint32_t dv_ind, uint64_t *id);
|
||||
|
||||
/** @} */ // end of IDQuer
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
@@ -91,6 +91,7 @@ enum DevInfoTypes {
|
||||
kDevMemUsedVisVRAM,
|
||||
kDevMemUsedVRAM,
|
||||
kDevPCIEReplayCount,
|
||||
kDevUniqueId,
|
||||
};
|
||||
|
||||
class Device {
|
||||
|
||||
Ссылка в новой задаче
Block a user