summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index 8548ae84..109ec240 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -710,6 +710,9 @@ void gk20a_ce_debugfs_init(struct device *dev)
710 struct gk20a_platform *platform = dev_get_drvdata(dev); 710 struct gk20a_platform *platform = dev_get_drvdata(dev);
711 struct gk20a *g = get_gk20a(dev); 711 struct gk20a *g = get_gk20a(dev);
712 712
713 if (!platform->has_ce)
714 return;
715
713 debugfs_create_u32("ce_app_ctx_count", S_IWUSR | S_IRUGO, 716 debugfs_create_u32("ce_app_ctx_count", S_IWUSR | S_IRUGO,
714 platform->debugfs, &g->ce_app.ctx_count); 717 platform->debugfs, &g->ce_app.ctx_count);
715 debugfs_create_u32("ce_app_state", S_IWUSR | S_IRUGO, 718 debugfs_create_u32("ce_app_state", S_IWUSR | S_IRUGO,