M #-: helper/pci: release NVIDIA devices before driverctl overrides (fixes infinite hang) - #251
Open
rpetrescu-one wants to merge 1 commit into
Open
M #-: helper/pci: release NVIDIA devices before driverctl overrides (fixes infinite hang)#251rpetrescu-one wants to merge 1 commit into
rpetrescu-one wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Release NVIDIA devices task in helper/pci before Override drivers, scoped to devices currently bound to nvidia whose override is not already recorded: stop nvidia-persistenced; drop kernel-level persistence mode per device (nvidia-smi -pm 0; an undetermined mode is treated as busy, it holds the usage count with no fd to detect); then fail fast with EBUSY listing any remaining holder of the device's /dev/nvidia instead of hanging, restoring the daemon before failing. The per-device scope keeps partial passthrough workable while other GPUs keep serving. After the override, a desired-state task starts the daemon back (also self-healing a daemon orphaned by a previously aborted run). psmisc added to the role packages (fuser).