diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index c5368e46b..65d6dd4d1 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c @@ -1625,6 +1625,12 @@ void gk20a_cde_debugfs_init(struct platform_device *dev) debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO, platform->debugfs, &g->cde_app.shader_parameter); + debugfs_create_u32("cde_ctx_count", S_IWUSR | S_IRUGO, + platform->debugfs, &g->cde_app.ctx_count); + debugfs_create_u32("cde_ctx_usecount", S_IWUSR | S_IRUGO, + platform->debugfs, &g->cde_app.ctx_usecount); + debugfs_create_u32("cde_ctx_count_top", S_IWUSR | S_IRUGO, + platform->debugfs, &g->cde_app.ctx_count_top); debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, g, &gk20a_cde_reload_fops); } diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h index b160162cc..66c18d5a4 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h @@ -272,9 +272,9 @@ struct gk20a_cde_app { struct list_head free_contexts; struct list_head used_contexts; - int ctx_count; - int ctx_usecount; - int ctx_count_top; + unsigned int ctx_count; + unsigned int ctx_usecount; + unsigned int ctx_count_top; u32 firmware_version;