mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
These HALs are used to initialize and set preeemption modes g->ops.gr.init_ctxsw_preemption_mode() g->ops.gr.set_ctxsw_preemption_mode() g->ops.gr.update_ctxsw_preemption_mode() They are all h/w independent except for the functional support for GFXP/CILP preemption support which is only present on gp10b+ chips Add a characteristics flag NVGPU_SUPPORT_PREEMPTION_GFXP for these preemption modes and set this flag for gp10b+ chips Use this flag and unify all above HALs into below common functions nvgpu_gr_obj_ctx_init_ctxsw_preemption_mode() nvgpu_gr_obj_ctx_set_ctxsw_preemption_mode() nvgpu_gr_obj_ctx_update_ctxsw_preemption_mode() vGPU specific code also directly calls below vGPU specific APIs vgpu_gr_init_ctxsw_preemption_mode() vgpu_gr_set_ctxsw_preemption_mode() g->ops.gr.update_ctxsw_preemption_mode() is not needed for vGPU since it is handled by vserver Above g->ops.gr.*_ctxsw_preemption_mode() HALs are no more required hence delete them Jira NVGPU-1887 Change-Id: I9b3164bcf01e5e3c27e52369c9364e0ee23a9662 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2088507 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>