Skip to content

modprobe no such device error after remove/rescan #151

@drybalka

Description

@drybalka

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions