diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-11-08 22:13:29 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-13 21:19:20 -0500 |
commit | c9419732776a3f31b3c1ace0cd113151f3a4d7cd (patch) | |
tree | ffe4252f735d75d46bed02ee9f61fbbd11677e4d /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | c0a461dbbccf56681ff531e7e4c8f5fb01c3e2cf (diff) |
gpu: nvgpu: ctx_patch_write fixes
- Add update_patch_count parameter to ctx_patch_write_begin/end functions
If True, the main_image_patch_count register will be updated. Previously,
the patch count would be updated if the cpu_va for the graphics context
was non-NULL, but this only works for sysmem (cpu_va is always 0 for vidmem)
- Remove unused patch parameter for the commit_global_timeslice functions
JIRA ESRM-74
Bug 2012077
Change-Id: I35d0a9eb48669a227833bba1d2e63e9fe8fd8aa9
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1594790
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 2dbe8b02..4bc5c04b 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -401,7 +401,7 @@ struct gpu_ops { | |||
401 | void (*program_zcull_mapping)(struct gk20a *g, | 401 | void (*program_zcull_mapping)(struct gk20a *g, |
402 | u32 zcull_alloc_num, u32 *zcull_map_tiles); | 402 | u32 zcull_alloc_num, u32 *zcull_map_tiles); |
403 | int (*commit_global_timeslice)(struct gk20a *g, | 403 | int (*commit_global_timeslice)(struct gk20a *g, |
404 | struct channel_gk20a *c, bool patch); | 404 | struct channel_gk20a *c); |
405 | int (*commit_inst)(struct channel_gk20a *c, u64 gpu_va); | 405 | int (*commit_inst)(struct channel_gk20a *c, u64 gpu_va); |
406 | void (*write_zcull_ptr)(struct gk20a *g, | 406 | void (*write_zcull_ptr)(struct gk20a *g, |
407 | struct nvgpu_mem *mem, u64 gpu_va); | 407 | struct nvgpu_mem *mem, u64 gpu_va); |