From b7829db10a871e3009440dffb9d8d984c896fc0c Mon Sep 17 00:00:00 2001 From: Yazen AL Musaffar Date: Tue, 27 Jan 2026 13:33:03 -0600 Subject: [PATCH] [AMD-SMI] [SWDEV-553392] Removed Driver Reload capability from amd-smi cli only. (#2665) * Removed Driver Reload capability from amd-smi cli only Signed-off-by: yalmusaf_amdeng * Updates Signed-off-by: yalmusaf_amdeng * updates Signed-off-by: yalmusaf_amdeng * Update CHANGELOG.md --------- Signed-off-by: yalmusaf_amdeng Co-authored-by: Maisam Arif --- projects/amdsmi/CHANGELOG.md | 8 +++++++- projects/amdsmi/amdsmi_cli/amdsmi_parser.py | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/amdsmi/CHANGELOG.md b/projects/amdsmi/CHANGELOG.md index bb95105a94..f2ccdb1338 100644 --- a/projects/amdsmi/CHANGELOG.md +++ b/projects/amdsmi/CHANGELOG.md @@ -41,7 +41,13 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr ### Removed -- N/A +- **Removed `amd-smi reset --reload-driver` option from CLI only.** + - Use modprobe to reload driver, e.g., + ```bash + sudo modprobe -r amdgpu + sudo modprobe amdgpu + ``` + - For historical reference; this option has been removed [Separated driver reload from `amdsmi_set_gpu_memory_partition()` / `amdsmi_set_gpu_memory_partition_mode()` and CLI (`sudo amd-smi set -M `)](#separate-driver-reload-anchor) ### Optimized diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_parser.py b/projects/amdsmi/amdsmi_cli/amdsmi_parser.py index e345999c6e..f172c3a3ae 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_parser.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_parser.py @@ -1475,7 +1475,7 @@ class AMDSMIParser(argparse.ArgumentParser): reset_perf_det_help = "Disable performance determinism" reset_power_cap_help = "Reset the PPT0 and PPT1 power capacity limit to max capable" reset_gpu_clean_local_data_help = "Clean up local data in LDS/GPRs on a per partition basis" - reset_gpu_driver_help = "Triggers a chain that resets all GPU's" + # Create reset subparser reset_parser = subparsers.add_parser('reset', help=reset_help, description=reset_subcommand_help) @@ -1498,7 +1498,7 @@ class AMDSMIParser(argparse.ArgumentParser): # Add Baremetal and Virtual OS reset arguments reset_exclusive_group.add_argument('-l', '--clean-local-data', action='store_true', required=False, help=reset_gpu_clean_local_data_help) - reset_exclusive_group.add_argument('-r', '--reload-driver', action='store_true', required=False, help=reset_gpu_driver_help) + # Reset accepts default devices of all self._add_device_arguments(reset_parser, required=False)