summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-05 11:10:44 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-12 15:42:31 -0500
commit351f519c2e1a2424a9a09c7a6b0f5c075198b3f0 (patch)
treea6036da05341de5dc903892964490f78b661eba9 /drivers/gpu/nvgpu/gp10b/gr_gp10b.h
parent5b10690479d016dd27d4592d94e7bd12a9277a34 (diff)
gpu: nvgpu: Add HAL for dumping ctxsw statistics
Add HAL for dumping ctxsw statistics. The statistics are dependent on the architecture, and the function that calls this operation needs to be moved to gk20a. Bug 1842197 Change-Id: I285c74b8ddc8c7854c85b3fef4cbfc582098919e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1632681 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index 1d39a38b..64a076ef 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -108,6 +108,8 @@ void gr_gp10b_update_ctxsw_preemption_mode(struct gk20a *g,
108 struct nvgpu_mem *mem); 108 struct nvgpu_mem *mem);
109int gr_gp10b_dump_gr_status_regs(struct gk20a *g, 109int gr_gp10b_dump_gr_status_regs(struct gk20a *g,
110 struct gk20a_debug_output *o); 110 struct gk20a_debug_output *o);
111void gr_gp10b_dump_ctxsw_stats(struct gk20a *g, struct vm_gk20a *vm,
112 struct gr_ctx_desc *gr_ctx);
111int gr_gp10b_wait_empty(struct gk20a *g, unsigned long duration_ms, 113int gr_gp10b_wait_empty(struct gk20a *g, unsigned long duration_ms,
112 u32 expect_delay); 114 u32 expect_delay);
113void gr_gp10b_commit_global_attrib_cb(struct gk20a *g, 115void gr_gp10b_commit_global_attrib_cb(struct gk20a *g,