summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
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/gk20a
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/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 4f05ba8f..070b26b6 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -439,6 +439,8 @@ struct gpu_ops {
439 void (*ecc_init_scrub_reg)(struct gk20a *g); 439 void (*ecc_init_scrub_reg)(struct gk20a *g);
440 u32 (*get_gpcs_swdx_dss_zbc_c_format_reg)(struct gk20a *g); 440 u32 (*get_gpcs_swdx_dss_zbc_c_format_reg)(struct gk20a *g);
441 u32 (*get_gpcs_swdx_dss_zbc_z_format_reg)(struct gk20a *g); 441 u32 (*get_gpcs_swdx_dss_zbc_z_format_reg)(struct gk20a *g);
442 void (*dump_ctxsw_stats)(struct gk20a *g, struct vm_gk20a *vm,
443 struct gr_ctx_desc *gr_ctx);
442 } gr; 444 } gr;
443 struct { 445 struct {
444 void (*init_hw)(struct gk20a *g); 446 void (*init_hw)(struct gk20a *g);