[SWDEV-513807] Fix amd-smi partition --accelerator not returning AMDSMI_STATUS_NO_PERM (#192)
* [SWDEV-513807] Fix amd-smi partition --accelerator not returning AMDSMI_STATUS_NO_PERM Changes: - Fixed amdsmi_get_gpu_accelerator_partition_profile_config() from not returning AMDSMI_STATUS_NO_PERM - Changed amd-smi partition --accelerator to provide user with a warning if users does not use sudo or root permissions. - Updated changelog for fixes planned for 6.4.1 release Signed-off-by: Charis Poag <Charis.Poag@amd.com>
This commit is contained in:
@@ -2003,6 +2003,9 @@ amdsmi_status_t
|
||||
amdsmi_get_gpu_accelerator_partition_profile_config(amdsmi_processor_handle processor_handle,
|
||||
amdsmi_accelerator_partition_profile_config_t *profile_config) {
|
||||
AMDSMI_CHECK_INIT();
|
||||
if (!amd::smi::is_sudo_user()) {
|
||||
return AMDSMI_STATUS_NO_PERM;
|
||||
}
|
||||
std::ostringstream ss;
|
||||
ss << __PRETTY_FUNCTION__
|
||||
<< " | START ";
|
||||
|
||||
Reference in New Issue
Block a user