summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gv11b
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2018-05-30 05:02:41 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-15 08:03:58 -0400
commit8963318b140d8ad7a98281bf083c23f08735c57e (patch)
treeccdf9778c56254b376bc2bbe1cfa7f48fe68b61e /drivers/gpu/nvgpu/vgpu/gv11b
parent000b10782deb1ff854fb0a1d0224ff218bfe25ae (diff)
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 <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1735987 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
index 09ce2492..fd408e3a 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
@@ -232,6 +232,7 @@ static const struct gpu_ops vgpu_gv11b_ops = {
232 .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, 232 .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4,
233#ifdef CONFIG_SYSFS 233#ifdef CONFIG_SYSFS
234 .create_gr_sysfs = gr_gv11b_create_sysfs, 234 .create_gr_sysfs = gr_gv11b_create_sysfs,
235 .remove_gr_sysfs = gr_gv11b_remove_sysfs,
235#endif 236#endif
236 .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, 237 .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode,
237 .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, 238 .is_etpc_addr = gv11b_gr_pri_is_etpc_addr,