diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-05-30 05:02:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-15 08:03:58 -0400 |
commit | 8963318b140d8ad7a98281bf083c23f08735c57e (patch) | |
tree | ccdf9778c56254b376bc2bbe1cfa7f48fe68b61e /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | 000b10782deb1ff854fb0a1d0224ff218bfe25ae (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/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index f46f20ef..8af70cf5 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -381,7 +381,10 @@ static const struct gpu_ops gp106_ops = { | |||
381 | .update_boosted_ctx = NULL, | 381 | .update_boosted_ctx = NULL, |
382 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 382 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
383 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, | 383 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, |
384 | #ifdef CONFIG_SYSFS | ||
384 | .create_gr_sysfs = NULL, | 385 | .create_gr_sysfs = NULL, |
386 | .remove_gr_sysfs = NULL, | ||
387 | #endif | ||
385 | .set_ctxsw_preemption_mode = gr_gp106_set_ctxsw_preemption_mode, | 388 | .set_ctxsw_preemption_mode = gr_gp106_set_ctxsw_preemption_mode, |
386 | .load_ctxsw_ucode = gr_gm20b_load_ctxsw_ucode, | 389 | .load_ctxsw_ucode = gr_gm20b_load_ctxsw_ucode, |
387 | .fecs_host_int_enable = gr_gk20a_fecs_host_int_enable, | 390 | .fecs_host_int_enable = gr_gk20a_fecs_host_int_enable, |