mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: add CONFIG_NVGPU_KERNEL_MODE_SUBMIT flag
Following are removed for safety build by adding CONFIG_NVGPU_KERNEL_MODE_SUBMIT flag. 1) HAL ops in g->ops.sync.syncpt add_wait_cmd get_wait_cmd_size add_incr_cmd get_incr_cmd_size get_incr_per_release 2) g->ops.sync.sema is removed in its entirety and contains the following ops. 3) The following files are compiled out using the above flag. hal/sync/sema_cmdbuf_gk20a.c hal/sync/sema_cmdbuf_gv11b.c Jira NVGPU-3479 Change-Id: I99ae6913e5fe5707ff9a3e2cf06cee8710def7cc Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130352 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> 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
f6c96f620f
commit
db80498307
@@ -929,6 +929,7 @@ static const struct gpu_ops tu104_ops = {
|
||||
.syncpt = {
|
||||
.alloc_buf = gv11b_syncpt_alloc_buf,
|
||||
.free_buf = gv11b_syncpt_free_buf,
|
||||
#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT
|
||||
.add_wait_cmd = gv11b_syncpt_add_wait_cmd,
|
||||
.get_wait_cmd_size =
|
||||
gv11b_syncpt_get_wait_cmd_size,
|
||||
@@ -937,14 +938,17 @@ static const struct gpu_ops tu104_ops = {
|
||||
gv11b_syncpt_get_incr_cmd_size,
|
||||
.get_incr_per_release =
|
||||
gv11b_syncpt_get_incr_per_release,
|
||||
#endif
|
||||
.get_sync_ro_map = gv11b_syncpt_get_sync_ro_map,
|
||||
},
|
||||
#endif
|
||||
#endif /* CONFIG_TEGRA_GK20A_NVHOST */
|
||||
#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT
|
||||
.sema = {
|
||||
.get_wait_cmd_size = gv11b_sema_get_wait_cmd_size,
|
||||
.get_incr_cmd_size = gv11b_sema_get_incr_cmd_size,
|
||||
.add_cmd = gv11b_sema_add_cmd,
|
||||
},
|
||||
#endif
|
||||
},
|
||||
.engine_status = {
|
||||
.read_engine_status_info =
|
||||
|
||||
Reference in New Issue
Block a user