diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index f5e0b73d..f41d883f 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -14,7 +14,10 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifdef CONFIG_TEGRA_GK20A | ||
17 | #include <linux/nvhost.h> | 18 | #include <linux/nvhost.h> |
19 | #endif | ||
20 | |||
18 | #include <linux/debugfs.h> | 21 | #include <linux/debugfs.h> |
19 | #include <linux/seq_file.h> | 22 | #include <linux/seq_file.h> |
20 | 23 | ||
@@ -141,6 +144,7 @@ static void gk20a_debug_show_channel(struct gk20a *g, | |||
141 | gk20a_mem_rd32(inst_ptr, ram_fc_semaphorec_w()), | 144 | gk20a_mem_rd32(inst_ptr, ram_fc_semaphorec_w()), |
142 | gk20a_mem_rd32(inst_ptr, ram_fc_semaphored_w())); | 145 | gk20a_mem_rd32(inst_ptr, ram_fc_semaphored_w())); |
143 | 146 | ||
147 | #ifdef CONFIG_TEGRA_GK20A | ||
144 | if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v()) | 148 | if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v()) |
145 | && (pbdma_syncpointb_wait_switch_v(syncpointb) == | 149 | && (pbdma_syncpointb_wait_switch_v(syncpointb) == |
146 | pbdma_syncpointb_wait_switch_en_v())) | 150 | pbdma_syncpointb_wait_switch_en_v())) |
@@ -150,6 +154,7 @@ static void gk20a_debug_show_channel(struct gk20a *g, | |||
150 | nvhost_syncpt_get_name(g->host1x_dev, | 154 | nvhost_syncpt_get_name(g->host1x_dev, |
151 | pbdma_syncpointb_syncpt_index_v(syncpointb)), | 155 | pbdma_syncpointb_syncpt_index_v(syncpointb)), |
152 | pbdma_syncpointa_payload_v(syncpointa)); | 156 | pbdma_syncpointa_payload_v(syncpointa)); |
157 | #endif | ||
153 | 158 | ||
154 | gk20a_debug_output(o, "\n"); | 159 | gk20a_debug_output(o, "\n"); |
155 | } | 160 | } |