From 88ce7a98c8321747154020c4f173cfe05a3b1149 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Fri, 20 Jan 2017 16:13:02 -0800 Subject: gpu: nvgpu: update zcull and pm context pointers Update zcull and perfmon buffer pointers in context header through function pointers. JIRA GV11B-48 Change-Id: Iaa6dd065128cb0c39e308cecf17b9d68a826d865 Signed-off-by: seshendra Gadagottu Reviewed-on: http://git-master/r/1291850 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index ff354bc8..f7ceaced 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -333,6 +333,10 @@ struct gpu_ops { struct channel_gk20a *c, bool patch); int (*commit_inst)(struct channel_gk20a *c, u64 gpu_va); void (*restore_context_header)(struct gk20a *g, struct mem_desc *ctxheader); + void (*write_zcull_ptr)(struct gk20a *g, + struct mem_desc *mem, u64 gpu_va); + void (*write_pm_ptr)(struct gk20a *g, + struct mem_desc *mem, u64 gpu_va); } gr; const char *name; struct { -- cgit v1.2.2