diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2018-06-07 17:55:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-27 10:30:06 -0400 |
commit | c60d8b7520bf14b6002ac93e7a205ff05913ab88 (patch) | |
tree | 9e8bb79c4fefaee40dfcdcd092db90ade3b9f0a2 /drivers/gpu/nvgpu/os/linux/debug.c | |
parent | ce5bd347aa43eac519f3f8670c4a8baab0ee4abc (diff) |
gpu: nvgpu: add bios debugfs node
Add bios debugfs node to get current VBIOS version.
Bug 2113607
Change-Id: I8d52b651f923080000a4ad529e7efa05667563ba
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1743030
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/debug.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/debug.c b/drivers/gpu/nvgpu/os/linux/debug.c index 8738f3e7..c4dae9e6 100644 --- a/drivers/gpu/nvgpu/os/linux/debug.c +++ b/drivers/gpu/nvgpu/os/linux/debug.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "debug_sched.h" | 22 | #include "debug_sched.h" |
23 | #include "debug_hal.h" | 23 | #include "debug_hal.h" |
24 | #include "debug_xve.h" | 24 | #include "debug_xve.h" |
25 | #include "debug_bios.h" | ||
25 | #include "os_linux.h" | 26 | #include "os_linux.h" |
26 | #include "platform_gk20a.h" | 27 | #include "platform_gk20a.h" |
27 | 28 | ||
@@ -434,8 +435,10 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) | |||
434 | #ifdef CONFIG_NVGPU_TRACK_MEM_USAGE | 435 | #ifdef CONFIG_NVGPU_TRACK_MEM_USAGE |
435 | nvgpu_kmem_debugfs_init(g); | 436 | nvgpu_kmem_debugfs_init(g); |
436 | #endif | 437 | #endif |
437 | if (g->pci_vendor_id) | 438 | if (g->pci_vendor_id) { |
438 | nvgpu_xve_debugfs_init(g); | 439 | nvgpu_xve_debugfs_init(g); |
440 | nvgpu_bios_debugfs_init(g); | ||
441 | } | ||
439 | } | 442 | } |
440 | 443 | ||
441 | void gk20a_debug_deinit(struct gk20a *g) | 444 | void gk20a_debug_deinit(struct gk20a *g) |