[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:
Poag, Charis
2025-03-20 17:23:01 -05:00
committed by GitHub
parent 4a3c70136f
commit 0402bb4d75
5 changed files with 127 additions and 5 deletions
+3
View File
@@ -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 ";