diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/pci.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index 41fb69a0..ee4bcf8c 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c | |||
@@ -26,7 +26,9 @@ | |||
26 | #include <nvgpu/enabled.h> | 26 | #include <nvgpu/enabled.h> |
27 | #include <nvgpu/nvlink.h> | 27 | #include <nvgpu/nvlink.h> |
28 | #include <nvgpu/soc.h> | 28 | #include <nvgpu/soc.h> |
29 | #include <nvgpu/sim.h> | ||
29 | 30 | ||
31 | #include "nvlink.h" | ||
30 | #include "gk20a/gk20a.h" | 32 | #include "gk20a/gk20a.h" |
31 | #include "clk/clk.h" | 33 | #include "clk/clk.h" |
32 | #include "clk/clk_mclk.h" | 34 | #include "clk/clk_mclk.h" |
@@ -35,12 +37,10 @@ | |||
35 | #include "sysfs.h" | 37 | #include "sysfs.h" |
36 | #include "os_linux.h" | 38 | #include "os_linux.h" |
37 | #include "platform_gk20a.h" | 39 | #include "platform_gk20a.h" |
38 | #include <nvgpu/sim.h> | ||
39 | 40 | ||
40 | #include "pci.h" | 41 | #include "pci.h" |
41 | #include "pci_usermode.h" | 42 | #include "pci_usermode.h" |
42 | 43 | ||
43 | #include "os_linux.h" | ||
44 | #include "driver_common.h" | 44 | #include "driver_common.h" |
45 | 45 | ||
46 | #define PCI_INTERFACE_NAME "card-%s%%s" | 46 | #define PCI_INTERFACE_NAME "card-%s%%s" |
@@ -828,9 +828,11 @@ static void nvgpu_pci_remove(struct pci_dev *pdev) | |||
828 | if (gk20a_gpu_is_virtual(dev)) | 828 | if (gk20a_gpu_is_virtual(dev)) |
829 | return; | 829 | return; |
830 | 830 | ||
831 | nvgpu_nvlink_remove(g); | 831 | err = nvgpu_nvlink_deinit(g); |
832 | WARN(err, "gpu failed to remove nvlink"); | ||
832 | 833 | ||
833 | gk20a_driver_start_unload(g); | 834 | gk20a_driver_start_unload(g); |
835 | |||
834 | err = nvgpu_quiesce(g); | 836 | err = nvgpu_quiesce(g); |
835 | /* TODO: handle failure to idle */ | 837 | /* TODO: handle failure to idle */ |
836 | WARN(err, "gpu failed to idle during driver removal"); | 838 | WARN(err, "gpu failed to idle during driver removal"); |