From 8963318b140d8ad7a98281bf083c23f08735c57e Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Wed, 30 May 2018 14:32:41 +0530 Subject: gpu: nvgpu: add remove_gr_sysfs gpu op Add remove_gr_sys() op to gpu_ops to reverse steps done in create_gr_sysfs(). Make gv11b_tegra_remove() specific to gv11b instead to properly remove sysfs nodes. This also helps in having gv11b specific remove steps. Also, update platform remove function of dGPU i.e. nvgpu_pci_tegra_remove() to remove sysfs nodes. This adds parity with iGPU platform remove. Bug 1987855 Change-Id: Ibbaffac5c24346709347f86444a951461894354d Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1735987 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c') diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 6a946a6e..5c210519 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c @@ -216,6 +216,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, #ifdef CONFIG_SYSFS .create_gr_sysfs = gr_gp10b_create_sysfs, + .remove_gr_sysfs = gr_gp10b_remove_sysfs, #endif .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, -- cgit v1.2.2