summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/debug.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-07-09 19:25:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-24 19:10:58 -0400
commit69be500c0b6fab324a34fc0b0f6b80f21a128c7e (patch)
tree2edc7920defdaface49b538f5a1abbd78aa03bcf /drivers/gpu/nvgpu/os/linux/debug.c
parent2c2d9e66710e264d251c0019258eed1dc5bb38f2 (diff)
gpu: nvgpu: debugfs node to enable/disable ltc_illegal_compstat intr
Added debugfs node under ltc directory with name: intr_illegal_compstat_enable Enabling/disabling of ltc_illegal_compstat intr is possible through debugfs node. Since ltc state is lost with rail gate, this setting is cached and will be populated during ltc initialization. Bug 2099406 Change-Id: I4bf62228dfd2bbb94f87f923f9f4f6e5ad0b07f0 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1774683 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/debug.c b/drivers/gpu/nvgpu/os/linux/debug.c
index c4dae9e6..9403e72e 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_ltc.h"
25#include "debug_bios.h" 26#include "debug_bios.h"
26#include "os_linux.h" 27#include "os_linux.h"
27#include "platform_gk20a.h" 28#include "platform_gk20a.h"
@@ -435,6 +436,7 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
435#ifdef CONFIG_NVGPU_TRACK_MEM_USAGE 436#ifdef CONFIG_NVGPU_TRACK_MEM_USAGE
436 nvgpu_kmem_debugfs_init(g); 437 nvgpu_kmem_debugfs_init(g);
437#endif 438#endif
439 nvgpu_ltc_debugfs_init(g);
438 if (g->pci_vendor_id) { 440 if (g->pci_vendor_id) {
439 nvgpu_xve_debugfs_init(g); 441 nvgpu_xve_debugfs_init(g);
440 nvgpu_bios_debugfs_init(g); 442 nvgpu_bios_debugfs_init(g);