summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
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/gk20a
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/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 2605f954..3b8c5cd2 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -367,6 +367,7 @@ struct gpu_ops {
367 void (*enable_gpc_exceptions)(struct gk20a *g); 367 void (*enable_gpc_exceptions)(struct gk20a *g);
368 void (*enable_exceptions)(struct gk20a *g); 368 void (*enable_exceptions)(struct gk20a *g);
369 void (*create_gr_sysfs)(struct gk20a *g); 369 void (*create_gr_sysfs)(struct gk20a *g);
370 void (*remove_gr_sysfs)(struct gk20a *g);
370 u32 (*get_lrf_tex_ltc_dram_override)(struct gk20a *g); 371 u32 (*get_lrf_tex_ltc_dram_override)(struct gk20a *g);
371 int (*record_sm_error_state)(struct gk20a *g, u32 gpc, u32 tpc, 372 int (*record_sm_error_state)(struct gk20a *g, u32 gpc, u32 tpc,
372 u32 sm, struct channel_gk20a *fault_ch); 373 u32 sm, struct channel_gk20a *fault_ch);