Blame SOURCES/sos-bz2034001-nvidia-GPU-info.patch

819553
From f2cc67750f55a71edff0c527a1bfc14fde8132c3 Mon Sep 17 00:00:00 2001
819553
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
819553
Date: Mon, 8 Nov 2021 10:50:03 +0530
819553
Subject: [PATCH] [nvidia]:Patch to update nvidia plugin for GPU info
819553
819553
This patch is to update nvidia plugin to collect
819553
logs for Nvidia GPUs
819553
819553
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
819553
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
819553
Reported-by: Yesenia Jimenez <yesenia@us.ibm.com>
819553
---
819553
 sos/report/plugins/nvidia.py | 15 +++++++++++++--
819553
 1 file changed, 13 insertions(+), 2 deletions(-)
819553
819553
diff --git a/sos/report/plugins/nvidia.py b/sos/report/plugins/nvidia.py
819553
index 09aaf586b..9e21b478e 100644
819553
--- a/sos/report/plugins/nvidia.py
819553
+++ b/sos/report/plugins/nvidia.py
819553
@@ -23,13 +23,24 @@ def setup(self):
819553
             '--list-gpus',
819553
             '-q -d PERFORMANCE',
819553
             '-q -d SUPPORTED_CLOCKS',
819553
-            '-q -d PAGE_RETIREMENT'
819553
+            '-q -d PAGE_RETIREMENT',
819553
+            '-q',
819553
+            '-q -d ECC',
819553
+            'nvlink -s',
819553
+            'nvlink -e'
819553
         ]
819553
 
819553
         self.add_cmd_output(["nvidia-smi %s" % cmd for cmd in subcmds])
819553
 
819553
         query = ('gpu_name,gpu_bus_id,vbios_version,temperature.gpu,'
819553
-                 'utilization.gpu,memory.total,memory.free,memory.used')
819553
+                 'utilization.gpu,memory.total,memory.free,memory.used,'
819553
+                 'clocks.applications.graphics,clocks.applications.memory')
819553
+        querypages = ('timestamp,gpu_bus_id,gpu_serial,gpu_uuid,'
819553
+                      'retired_pages.address,retired_pages.cause')
819553
         self.add_cmd_output("nvidia-smi --query-gpu=%s --format=csv" % query)
819553
+        self.add_cmd_output(
819553
+            "nvidia-smi --query-retired-pages=%s --format=csv" % querypages
819553
+        )
819553
+        self.add_journal(boot=0, identifier='nvidia-persistenced')
819553
 
819553
 # vim: set et ts=4 sw=4 :