summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-10-28 04:07:55 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:58 -0400
commit7784fb18a3e9b86ea86c2eff756443c005dd3e32 (patch)
tree319c220ed2158b1ee5eac66f91c887604e343e62 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent200f63ce7b48561213dd58fac4f9d66e586dab2c (diff)
gpu: nvgpu: warn on nested ctx patch begin
Add WARN_ON to a critical error condition to get a backtrace dump. Bug 200046882 Change-Id: I76c4186024547c6e89f1465612fe17f44e27eefe Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 47f11a1f..63ab6c9f 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -593,7 +593,7 @@ int gr_gk20a_ctx_patch_write_begin(struct gk20a *g,
593 struct channel_ctx_gk20a *ch_ctx) 593 struct channel_ctx_gk20a *ch_ctx)
594{ 594{
595 /* being defensive still... */ 595 /* being defensive still... */
596 if (ch_ctx->patch_ctx.cpu_va) { 596 if (WARN_ON(ch_ctx->patch_ctx.cpu_va)) {
597 gk20a_err(dev_from_gk20a(g), "nested ctx patch begin?"); 597 gk20a_err(dev_from_gk20a(g), "nested ctx patch begin?");
598 return -EBUSY; 598 return -EBUSY;
599 } 599 }