From 1c90b1dea7afeaf2fe1d73e45ca7133225645a13 Mon Sep 17 00:00:00 2001 From: khashaik Date: Mon, 18 Dec 2023 07:25:09 -0500 Subject: [PATCH] amdsmi_cli: Fix issue in static cpu to fetch only smu fw version when smu is pased as option - Fix issue in static cpu to fetch only smu fw version or prototype whne smu or prototype is passed as option Change-Id: Idec3b4e571ae576d1f71df74fa9a5befea5a1585 --- amdsmi_cli/amdsmi_commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/amdsmi_cli/amdsmi_commands.py b/amdsmi_cli/amdsmi_commands.py index b4f6bea6d2..64b47e5100 100644 --- a/amdsmi_cli/amdsmi_commands.py +++ b/amdsmi_cli/amdsmi_commands.py @@ -726,12 +726,14 @@ class AMDSMICommands(): if args.cpu == None: args.cpu = self.cpu_handles - if (len(self.cpu_handles) and (((not gpus) and (not cpus)) or cpus)): + if (len(self.cpu_handles) and ((((not gpus) and (not cpus)) or cpus) + and not gpu_options)): self.get_static_cpu(args, cpu) else: logging.info("No CPU devices present") - if (len(self.device_handles) and (((not gpus) and (not cpus)) or gpus)): + if (len(self.device_handles) and ((((not gpus) and (not cpus)) or gpus) + and not cpu_options)): self.logger.clear_multiple_devices_ouput() self.get_static_gpu(args, multiple_devices, gpu, asic, bus, vbios, limit, driver, ras,