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
Bu işleme şunda yer alıyor:
khashaik
2023-12-18 07:25:09 -05:00
işlemeyi yapan: Guan Yu
ebeveyn cdf31b8d6a
işleme 1c90b1dea7
+4 -2
Dosyayı Görüntüle
@@ -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,