From c60d8b7520bf14b6002ac93e7a205ff05913ab88 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Thu, 7 Jun 2018 14:55:03 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1743030 Reviewed-by: Richard Zhao Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/debug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/os/linux/debug.c') 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 @@ #include "debug_sched.h" #include "debug_hal.h" #include "debug_xve.h" +#include "debug_bios.h" #include "os_linux.h" #include "platform_gk20a.h" @@ -434,8 +435,10 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) #ifdef CONFIG_NVGPU_TRACK_MEM_USAGE nvgpu_kmem_debugfs_init(g); #endif - if (g->pci_vendor_id) + if (g->pci_vendor_id) { nvgpu_xve_debugfs_init(g); + nvgpu_bios_debugfs_init(g); + } } void gk20a_debug_deinit(struct gk20a *g) -- cgit v1.2.2