mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: guard sync cmd hals properly
Make the syncpt and sema wait and incr command HAL ops consistent. Add CONFIG_NVGPU_SW_SEMAPHORE guards for the semaphore ops. The syncpoint ops already have CONFIG_TEGRA_GK20A_NVHOST around them. Delete the dummy syncpt ops. They are not used; the ops are only needed when the real versions exist. Jira NVGPU-4548 Change-Id: I30315a67169b31b1d63a0a1a0a4492688db4a2bc Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2325100 (cherry picked from commit ed13b286c5fbdbc008ec59172d98ac79e9f2e733) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2331337 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
39844fb27c
commit
4acf78dff3
@@ -1049,6 +1049,7 @@ static const struct gpu_ops tu104_ops = {
|
||||
.sync = {
|
||||
#ifdef CONFIG_TEGRA_GK20A_NVHOST
|
||||
.syncpt = {
|
||||
.get_sync_ro_map = gv11b_syncpt_get_sync_ro_map,
|
||||
.alloc_buf = gv11b_syncpt_alloc_buf,
|
||||
.free_buf = gv11b_syncpt_free_buf,
|
||||
#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT
|
||||
@@ -1061,7 +1062,6 @@ static const struct gpu_ops tu104_ops = {
|
||||
.get_incr_per_release =
|
||||
gv11b_syncpt_get_incr_per_release,
|
||||
#endif
|
||||
.get_sync_ro_map = gv11b_syncpt_get_sync_ro_map,
|
||||
},
|
||||
#endif /* CONFIG_TEGRA_GK20A_NVHOST */
|
||||
#if defined(CONFIG_NVGPU_KERNEL_MODE_SUBMIT) && \
|
||||
|
||||
Reference in New Issue
Block a user