Skip to content

Commit d8e2347

Browse files
authored
Increase delay before trying to enable sriov
Starting this too early gets the cards into a bad state. You get the following error when trying to start an mdev device: ``` stderr: 'Error: Parent 0000:81:00.4 is not currently registered for mdev support' ```
1 parent cc591c8 commit d8e2347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 5
16+
ExecStartPre=/bin/sleep 30
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)