summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
authorKirill Artamonov <kartamonov@nvidia.com>2015-01-25 11:42:18 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:07 -0500
commit3b08d73568ddaf0dec2c2abe8e813672da2463ae (patch)
tree8e46bb2806ede3eca9a75bd24737834063f75965 /drivers/gpu/nvgpu/gp10b/gr_gp10b.h
parent6434195dc75df5d574a9ae4f5535924bf4704aec (diff)
gpu: nvgpu: gp10b: add debug features for gfxp and cilp
Add debugfs switch to force cilp and gfx preemption Add debugfs switch to dump context switch stats on channel destruction. bug 1525327 bug 1581799 Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com> Change-Id: I7d0558cc325ce655411388ea66ad982101f2fe66 Reviewed-on: http://git-master/r/794976 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/677231
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index 7c3ddf27..370e0ea3 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B GPU GR 2 * GM20B GPU GR
3 * 3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -36,6 +36,12 @@ void gp10b_init_gr(struct gpu_ops *ops);
36struct gr_t18x { 36struct gr_t18x {
37 struct { 37 struct {
38 u32 preempt_image_size; 38 u32 preempt_image_size;
39 u32 force_preemption_gfxp;
40 u32 force_preemption_cilp;
41 u32 dump_ctxsw_stats_on_channel_close;
42 struct dentry *debugfs_force_preemption_cilp;
43 struct dentry *debugfs_force_preemption_gfxp;
44 struct dentry *debugfs_dump_ctxsw_stats;
39 } ctx_vars; 45 } ctx_vars;
40}; 46};
41 47