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

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