summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b
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/gp10b
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/gp10b')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h1
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index 61634668..31e1e6e9 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -60,6 +60,7 @@ int gr_gp10b_init_fs_state(struct gk20a *g);
60int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, 60int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size,
61 struct nvgpu_mem *mem); 61 struct nvgpu_mem *mem);
62void gr_gp10b_create_sysfs(struct gk20a *g); 62void gr_gp10b_create_sysfs(struct gk20a *g);
63void gr_gp10b_remove_sysfs(struct gk20a *g);
63int gr_gp10b_handle_fecs_error(struct gk20a *g, 64int gr_gp10b_handle_fecs_error(struct gk20a *g,
64 struct channel_gk20a *__ch, 65 struct channel_gk20a *__ch,
65 struct gr_gk20a_isr_data *isr_data); 66 struct gr_gk20a_isr_data *isr_data);
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index d8e69dd8..2430be79 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -341,6 +341,7 @@ static const struct gpu_ops gp10b_ops = {
341 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, 341 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3,
342#ifdef CONFIG_SYSFS 342#ifdef CONFIG_SYSFS
343 .create_gr_sysfs = gr_gp10b_create_sysfs, 343 .create_gr_sysfs = gr_gp10b_create_sysfs,
344 .remove_gr_sysfs = gr_gp10b_remove_sysfs,
344#endif 345#endif
345 .set_ctxsw_preemption_mode = gr_gp10b_set_ctxsw_preemption_mode, 346 .set_ctxsw_preemption_mode = gr_gp10b_set_ctxsw_preemption_mode,
346 .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data, 347 .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data,