summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_cde.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_cde.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug_cde.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_cde.c b/drivers/gpu/nvgpu/common/linux/debug_cde.c
index 8fcc6e84..40cc64a4 100644
--- a/drivers/gpu/nvgpu/common/linux/debug_cde.c
+++ b/drivers/gpu/nvgpu/common/linux/debug_cde.c
@@ -34,19 +34,20 @@ static const struct file_operations gk20a_cde_reload_fops = {
34 34
35void gk20a_cde_debugfs_init(struct gk20a *g) 35void gk20a_cde_debugfs_init(struct gk20a *g)
36{ 36{
37 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
37 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); 38 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g));
38 39
39 if (!platform->has_cde) 40 if (!platform->has_cde)
40 return; 41 return;
41 42
42 debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO, 43 debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO,
43 platform->debugfs, &g->cde_app.shader_parameter); 44 l->debugfs, &g->cde_app.shader_parameter);
44 debugfs_create_u32("cde_ctx_count", S_IWUSR | S_IRUGO, 45 debugfs_create_u32("cde_ctx_count", S_IWUSR | S_IRUGO,
45 platform->debugfs, &g->cde_app.ctx_count); 46 l->debugfs, &g->cde_app.ctx_count);
46 debugfs_create_u32("cde_ctx_usecount", S_IWUSR | S_IRUGO, 47 debugfs_create_u32("cde_ctx_usecount", S_IWUSR | S_IRUGO,
47 platform->debugfs, &g->cde_app.ctx_usecount); 48 l->debugfs, &g->cde_app.ctx_usecount);
48 debugfs_create_u32("cde_ctx_count_top", S_IWUSR | S_IRUGO, 49 debugfs_create_u32("cde_ctx_count_top", S_IWUSR | S_IRUGO,
49 platform->debugfs, &g->cde_app.ctx_count_top); 50 l->debugfs, &g->cde_app.ctx_count_top);
50 debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, 51 debugfs_create_file("reload_cde_firmware", S_IWUSR, l->debugfs,
51 g, &gk20a_cde_reload_fops); 52 g, &gk20a_cde_reload_fops);
52} 53}