mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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
@@ -30,6 +30,7 @@ struct nvgpu_mem;
|
||||
|
||||
#ifdef CONFIG_TEGRA_GK20A_NVHOST
|
||||
|
||||
#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT
|
||||
void gk20a_syncpt_add_wait_cmd(struct gk20a *g,
|
||||
struct priv_cmd_entry *cmd, u32 off,
|
||||
u32 id, u32 thresh, u64 gpu_va);
|
||||
@@ -39,6 +40,8 @@ void gk20a_syncpt_add_incr_cmd(struct gk20a *g,
|
||||
bool wfi_cmd, struct priv_cmd_entry *cmd,
|
||||
u32 id, u64 gpu_va);
|
||||
u32 gk20a_syncpt_get_incr_cmd_size(bool wfi_cmd);
|
||||
#endif
|
||||
|
||||
void gk20a_syncpt_free_buf(struct nvgpu_channel *c,
|
||||
struct nvgpu_mem *syncpt_buf);
|
||||
|
||||
@@ -47,6 +50,7 @@ int gk20a_syncpt_alloc_buf(struct nvgpu_channel *c,
|
||||
|
||||
#else
|
||||
|
||||
#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT
|
||||
static inline void gk20a_syncpt_add_wait_cmd(struct gk20a *g,
|
||||
struct priv_cmd_entry *cmd, u32 off,
|
||||
u32 id, u32 thresh, u64 gpu_va)
|
||||
@@ -69,6 +73,7 @@ static inline u32 gk20a_syncpt_get_incr_cmd_size(bool wfi_cmd)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
#endif
|
||||
static inline void gk20a_syncpt_free_buf(struct nvgpu_channel *c,
|
||||
struct nvgpu_mem *syncpt_buf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user