[SWDEV-540665] Remove amdsmi_set_power_cap API Guest Restriction
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Change-Id: I682506b48c10eefbd04f9b494ad57fb8ae8842b0
Este commit está contenido en:
@@ -3404,14 +3404,6 @@ amdsmi_status_t
|
||||
amdsmi_set_power_cap(amdsmi_processor_handle processor_handle,
|
||||
uint32_t sensor_ind, uint64_t cap) {
|
||||
|
||||
// Bare Metal and passthrough only feature
|
||||
amdsmi_virtualization_mode_t virt_mode;
|
||||
if (amdsmi_get_gpu_virtualization_mode(processor_handle, &virt_mode) == AMDSMI_STATUS_SUCCESS) {
|
||||
if (virt_mode == AMDSMI_VIRTUALIZATION_MODE_GUEST) {
|
||||
return AMDSMI_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
}
|
||||
|
||||
return rsmi_wrapper(rsmi_dev_power_cap_set, processor_handle, 0,
|
||||
sensor_ind, cap);
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user