Merge amd-staging into amd-master 20220224

Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I371300c32821939aec486a70d22bcdd005971e95
Этот коммит содержится в:
Hao Zhou
2022-02-24 16:41:38 +08:00
родитель 19c569146c 9b871fcd9f
Коммит 35ad11c7d5
4 изменённых файлов: 45 добавлений и 38 удалений
+2 -2
Просмотреть файл
@@ -2902,7 +2902,7 @@ if __name__ == '__main__':
groupAction.add_argument('--resetperfdeterminism', help='Disable performance determinism', action='store_true')
groupAction.add_argument('--setclock',
help='Set Clock Frequency Level(s) for specified clock (requires manual Perf level)',
type=str, metavar='LEVEL', nargs=2)
metavar=('TYPE','LEVEL'), nargs=2)
groupAction.add_argument('--setsclk', help='Set GPU Clock Frequency Level(s) (requires manual Perf level)',
type=int, metavar='LEVEL', nargs='+')
groupAction.add_argument('--setmclk', help='Set GPU Memory Clock Frequency Level(s) (requires manual Perf level)',
@@ -3160,7 +3160,7 @@ if __name__ == '__main__':
if args.showenergycounter:
showEnergy(deviceList)
if args.setclock:
setClocks(deviceList, args.setclock[0], args.setclock[1])
setClocks(deviceList, args.setclock[0], [int(args.setclock[1])])
if args.setsclk:
setClocks(deviceList, 'sclk', args.setsclk)
if args.setmclk: