diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2015-09-25 17:23:59 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-11-23 11:37:41 -0500 |
commit | b8b6df791b407a6b9cf568ecd34744c347968246 (patch) | |
tree | df7a8fd9aa1fff45824293cbc66396e28e1983de | |
parent | 2d40ebb1caa313d5d12a13f15b2623faa3ad914b (diff) |
gpu: nvgpu: update name for gpu debugfs node
Create constant name for gpu debugfs node across all chip.
Bug n/a
Change-Id: I359b82b5389c49d8fe2a31ace49ff6daa1edfb10
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/805397
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
(cherry-picked from commit 17a3882cde09412c68f7a0ee4765f45be1a51c45)
Reviewed-on: http://git-master/r/817014
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 1cac683d..67434e7f 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -410,6 +410,10 @@ void gk20a_debug_init(struct platform_device *pdev) | |||
410 | gk20a_device = pdev; | 410 | gk20a_device = pdev; |
411 | 411 | ||
412 | platform->debugfs = debugfs_create_dir(pdev->name, NULL); | 412 | platform->debugfs = debugfs_create_dir(pdev->name, NULL); |
413 | if (platform->debugfs) { | ||
414 | platform->debugfs_alias = | ||
415 | debugfs_create_symlink("gpu.0", NULL, pdev->name); | ||
416 | } | ||
413 | 417 | ||
414 | debugfs_create_file("status", S_IRUGO, platform->debugfs, | 418 | debugfs_create_file("status", S_IRUGO, platform->debugfs, |
415 | pdev, &gk20a_debug_fops); | 419 | pdev, &gk20a_debug_fops); |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index a97ec735..dfc7d34c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1562,6 +1562,7 @@ static int __exit gk20a_remove(struct platform_device *dev) | |||
1562 | gk20a_user_deinit(dev); | 1562 | gk20a_user_deinit(dev); |
1563 | 1563 | ||
1564 | debugfs_remove_recursive(platform->debugfs); | 1564 | debugfs_remove_recursive(platform->debugfs); |
1565 | debugfs_remove_recursive(platform->debugfs_alias); | ||
1565 | 1566 | ||
1566 | gk20a_remove_sysfs(&dev->dev); | 1567 | gk20a_remove_sysfs(&dev->dev); |
1567 | 1568 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 7314d09d..b7a28ea5 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -49,6 +49,7 @@ struct gk20a_platform { | |||
49 | 49 | ||
50 | /* Should be populated by probe. */ | 50 | /* Should be populated by probe. */ |
51 | struct dentry *debugfs; | 51 | struct dentry *debugfs; |
52 | struct dentry *debugfs_alias; | ||
52 | 53 | ||
53 | /* Clock configuration is stored here. Platform probe is responsible | 54 | /* Clock configuration is stored here. Platform probe is responsible |
54 | * for filling this data. */ | 55 | * for filling this data. */ |