Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modprobe no such device error after remove/rescan #151

Open
drybalka opened this issue Jan 31, 2021 · 4 comments · May be fixed by #152
Open

modprobe no such device error after remove/rescan #151

drybalka opened this issue Jan 31, 2021 · 4 comments · May be fixed by #152

Comments

@drybalka
Copy link

It may be a wrong place to ask this question, but still I could not find the answer anywhere. It seems that after removing the card and then rescanning it again i cannot load nvidia anymore. I get:
modprobe: ERROR: could not insert 'nvidia': No such device
The output of dmesg is:
[ 103.648841] nvidia-nvlink: Nvlink Core is being initialized, major device number 234 [ 103.648845] NVRM: The NVIDIA GPU 0000:01:00.0 NVRM: (PCI ID: 10de:1c8c) installed in this system has NVRM: fallen off the bus and is not responding to commands. [ 103.652050] nvidia: probe of 0000:01:00.0 failed with error -1 [ 103.652060] NVRM: The NVIDIA probe routine failed for 1 device(s). [ 103.652061] NVRM: None of the NVIDIA devices were initialized. [ 103.652437] nvidia-nvlink: Unregistered the Nvlink Core, major device number 234

I made a dry-run of the script and experimented with executing commands manually. It seems everything working just fine, if only i do not run the remove command. More precisely, I can load the drivers, start xinit with nvidia working correctly, close the X server, unload the drivers and everything seem to be working. I checked that pci buses are correct, lsmod shows drivers load and unload completely. I also checked with lspci that card disappears correctly after remove and appears again after rescan. However, after remove/rescan procedure i can no longer load nvidia and get the aforementioned errors.

Did you by any chance know how to solve this problem?

@afro-coder
Copy link

Yeah even I'm seeing this error, no clue as to why this happens

afro-coder added a commit to afro-coder/nvidia-xrun that referenced this issue Mar 7, 2021
@afro-coder afro-coder linked a pull request Mar 7, 2021 that will close this issue
@afro-coder
Copy link

Okay I did some fidgeting and ran these two commands
nvidia-modprobe
nvidia-persistenced
And now I can load nvidia back again

@drybalka
Copy link
Author

Sorry, now I just get "modprobe: FATAL: module nvidia is in use." when trying to unload nvidia, even though nothing except nvidia-persistenced is running.

@afro-coder
Copy link

afro-coder commented Mar 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants