summaryrefslogtreecommitdiff
path: root/units/graphics
diff options
authorray.chen <ray.chen@canonical.com>2019-10-02 10:42:25 +0800
committerray.chen <ray.chen@canonical.com>2019-10-08 17:57:39 +0800
commita3d3f950fa9fad4641c4cdcc8cb9e9c9e0d2569b (patch)
treeff77357664df1b03a4d5154886f8fae6366b0996 /units/graphics
parent26cc8a96b718ffde13d57965279f6869a3adf710 (diff)
graphics: add job and script for nvlink link status check
Diffstat (limited to 'units/graphics')
-rw-r--r--units/graphics/jobs.pxu13
1 files changed, 13 insertions, 0 deletions
diff --git a/units/graphics/jobs.pxu b/units/graphics/jobs.pxu
index 01ec380..d5344e3 100644
--- a/units/graphics/jobs.pxu
+++ b/units/graphics/jobs.pxu
@@ -539,3 +539,16 @@ command:
{switch_to_cmd}
pm_test --silent --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox reboot --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE
flags: noreturn preserve-locale also-after-suspend
+
+plugin: shell
+category_id: com.canonical.plainbox::graphics
+id: graphics/nvlink-status-check
+requires:
+ dmi.product in ['Desktop','Low Profile Desktop','Tower','Mini Tower', 'Space-saving']
+ graphics_card.driver == 'nvidia'
+ package.name == 'nvidia-smi'
+command: nvidia_nvlink_check
+_summary: Check NVIDIA NVLINK status
+_description: Check NVLINK are supported and NVLINK are connected properly on system, please make sure below items before testing:
+ 1. More than one NVIDIA Graphic card are installed.
+ 2. Each graphic card are connected by NVLINK.