From b8b6df791b407a6b9cf568ecd34744c347968246 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Fri, 25 Sep 2015 14:23:59 -0700 Subject: 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 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/805397 Signed-off-by: Seema Khowala (cherry-picked from commit 17a3882cde09412c68f7a0ee4765f45be1a51c45) Reviewed-on: http://git-master/r/817014 --- drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 4 ++++ drivers/gpu/nvgpu/gk20a/gk20a.c | 1 + drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 1 + 3 files changed, 6 insertions(+) (limited to 'drivers/gpu') 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) gk20a_device = pdev; platform->debugfs = debugfs_create_dir(pdev->name, NULL); + if (platform->debugfs) { + platform->debugfs_alias = + debugfs_create_symlink("gpu.0", NULL, pdev->name); + } debugfs_create_file("status", S_IRUGO, platform->debugfs, 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) gk20a_user_deinit(dev); debugfs_remove_recursive(platform->debugfs); + debugfs_remove_recursive(platform->debugfs_alias); gk20a_remove_sysfs(&dev->dev); 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 { /* Should be populated by probe. */ struct dentry *debugfs; + struct dentry *debugfs_alias; /* Clock configuration is stored here. Platform probe is responsible * for filling this data. */ -- cgit v1.2.2