mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix issues due to a previous patch
608decf gpu: nvgpu: add support for powering off gpu
The above commit accidentally removed nvgpu_quiesce from
nvgpu_pci_remove path. Add that back.
Bug 3365659
Change-Id: I287972c426738a950ace2907610e02b774ab1eff
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2586240
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Lakshmanan M <lm@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
77d1e765f5
commit
6fc27766ed
@@ -762,6 +762,10 @@ static void nvgpu_pci_remove(struct pci_dev *pdev)
|
|||||||
nvgpu_thermal_deinit(g);
|
nvgpu_thermal_deinit(g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = nvgpu_quiesce(g);
|
||||||
|
/* TODO: handle failure to idle */
|
||||||
|
WARN(err, "gpu failed to idle during driver removal");
|
||||||
|
|
||||||
nvgpu_free_irq(g);
|
nvgpu_free_irq(g);
|
||||||
|
|
||||||
nvgpu_remove(dev);
|
nvgpu_remove(dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user