mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: keep set_preemption_mode for safety
Keep g->ops.gr.set_preemption_mode for safety build. It is needed to allow WFI and CTA for compute. Jira NVGPU-3744 Change-Id: Ib6b2ebd00bb773dd357efb45c901c5005ee54d45 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2152459 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9a0e041602
commit
90ceeda80b
@@ -224,7 +224,6 @@ void nvgpu_gr_setup_free_subctx(struct nvgpu_channel *c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_CHANNEL_TSG_CONTROL
|
|
||||||
int nvgpu_gr_setup_set_preemption_mode(struct nvgpu_channel *ch,
|
int nvgpu_gr_setup_set_preemption_mode(struct nvgpu_channel *ch,
|
||||||
u32 graphics_preempt_mode,
|
u32 graphics_preempt_mode,
|
||||||
u32 compute_preempt_mode)
|
u32 compute_preempt_mode)
|
||||||
@@ -320,4 +319,3 @@ enable_ch:
|
|||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -359,9 +359,7 @@ static const struct gpu_ops gp10b_ops = {
|
|||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
||||||
#endif /* CONFIG_NVGPU_GRAPHICS */
|
#endif /* CONFIG_NVGPU_GRAPHICS */
|
||||||
#ifdef CONFIG_NVGPU_CHANNEL_TSG_CONTROL
|
|
||||||
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
||||||
#endif
|
|
||||||
},
|
},
|
||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.zbc = {
|
.zbc = {
|
||||||
|
|||||||
@@ -433,9 +433,7 @@ static const struct gpu_ops gv11b_ops = {
|
|||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
||||||
#endif /* CONFIG_NVGPU_GRAPHICS */
|
#endif /* CONFIG_NVGPU_GRAPHICS */
|
||||||
#ifdef CONFIG_NVGPU_CHANNEL_TSG_CONTROL
|
|
||||||
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
||||||
#endif
|
|
||||||
},
|
},
|
||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.zbc = {
|
.zbc = {
|
||||||
|
|||||||
@@ -466,9 +466,7 @@ static const struct gpu_ops tu104_ops = {
|
|||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
.bind_ctxsw_zcull = nvgpu_gr_setup_bind_ctxsw_zcull,
|
||||||
#endif /* CONFIG_NVGPU_GRAPHICS */
|
#endif /* CONFIG_NVGPU_GRAPHICS */
|
||||||
#ifdef CONFIG_NVGPU_CHANNEL_TSG_CONTROL
|
|
||||||
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
.set_preemption_mode = nvgpu_gr_setup_set_preemption_mode,
|
||||||
#endif
|
|
||||||
},
|
},
|
||||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||||
.zbc = {
|
.zbc = {
|
||||||
|
|||||||
Reference in New Issue
Block a user