Skip to content

Commit 84fe8ce

Browse files
authored
Address review comments
1 parent d8e2347 commit 84fe8ce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

roles/vgpu/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ vgpu_driver_dkms: false
55
vgpu_do_reboot: true
66
vgpu_reboot_timeout: 3600
77

8+
# Time in seconds to sleep before enabling sriov on
9+
vgpu_sriov_init_delay: 30
10+
811
# Deprecated: use vgpu_definitions instead.
912
vgpu_mig_definitions: []
1013
vgpu_definitions: "{{ vgpu_mig_definitions }}"

roles/vgpu/templates/nvidia-sriov.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ User=root
1313
# NOTE(wszumski): There is a race in the driver initialization where if we run
1414
# this too early, then the mdev_support_devices entry doesn't show up in sysfs.
1515
# I was unable to get this to show up again without a reboot.
16-
ExecStartPre=/bin/sleep 30
16+
ExecStartPre=/bin/sleep {{ vgpu_sriov_init_delay }}
1717
# NOTE(wszumski): The sriov-manage script will unbind the nvidia driver to
1818
# initialize the virtual functions. If it fails part way through, the driver
1919
# can be left unbound, and subsequent executions of sriov-mange will fail. This

0 commit comments

Comments
 (0)