summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/common/linux/channel.c7
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c6
2 files changed, 4 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/channel.c b/drivers/gpu/nvgpu/common/linux/channel.c
index 07bb393e..dc35fbc0 100644
--- a/drivers/gpu/nvgpu/common/linux/channel.c
+++ b/drivers/gpu/nvgpu/common/linux/channel.c
@@ -462,11 +462,8 @@ static int gk20a_submit_prepare_syncs(struct channel_gk20a *c,
462 } 462 }
463 463
464 /* 464 /*
465 * Optionally insert syncpt wait in the beginning of gpfifo submission 465 * Optionally insert syncpt/semaphore wait in the beginning of gpfifo
466 * when user requested and the wait hasn't expired. Validate that the id 466 * submission when user requested and the wait hasn't expired.
467 * makes sense, elide if not. The only reason this isn't being
468 * unceremoniously killed is to keep running some tests which trigger
469 * this condition.
470 */ 467 */
471 if (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_WAIT) { 468 if (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_WAIT) {
472 int max_wait_cmds = c->deterministic ? 1 : 0; 469 int max_wait_cmds = c->deterministic ? 1 : 0;
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
index 25c57681..e94a112f 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
@@ -58,10 +58,8 @@ static int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s,
58 struct channel_gk20a *c = sp->c; 58 struct channel_gk20a *c = sp->c;
59 int err = 0; 59 int err = 0;
60 60
61 if (!nvgpu_nvhost_syncpt_is_valid_pt_ext(sp->nvhost_dev, id)) { 61 if (!nvgpu_nvhost_syncpt_is_valid_pt_ext(sp->nvhost_dev, id))
62 nvgpu_warn(c->g, "invalid wait id in gpfifo submit, elided"); 62 return -EINVAL;
63 return 0;
64 }
65 63
66 if (nvgpu_nvhost_syncpt_is_expired_ext(sp->nvhost_dev, id, thresh)) 64 if (nvgpu_nvhost_syncpt_is_expired_ext(sp->nvhost_dev, id, thresh))
67 return 0; 65 return 0;