summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_cde.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-07-27 16:31:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-04 12:24:02 -0400
commit972c42fddf13f658242a4f92124e5fcf194672b3 (patch)
tree8b679b522be90f8980fb05d2641fbb9eaca768d6 /drivers/gpu/nvgpu/common/linux/debug_cde.c
parentb8efd9d04537d6129e2ce8b067417e46b0e7436f (diff)
gpu: nvgpu: Move debugfs fields to os_linux
Move all Linux specific debugfs dentry fields to struct nvgpu_os_linux. JIRA NVGPU-62 Change-Id: I615620005f5d042943dd2e478c1629bcc912c550 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528263 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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}