diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 590506d6..0d011b06 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -2547,6 +2547,9 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, | |||
2547 | if (c->has_timedout) | 2547 | if (c->has_timedout) |
2548 | return -ETIMEDOUT; | 2548 | return -ETIMEDOUT; |
2549 | 2549 | ||
2550 | if (!nvgpu_mem_is_valid(&c->gpfifo.mem)) | ||
2551 | return -ENOMEM; | ||
2552 | |||
2550 | /* fifo not large enough for request. Return error immediately. | 2553 | /* fifo not large enough for request. Return error immediately. |
2551 | * Kernel can insert gpfifo entries before and after user gpfifos. | 2554 | * Kernel can insert gpfifo entries before and after user gpfifos. |
2552 | * So, add extra_entries in user request. Also, HW with fifo size N | 2555 | * So, add extra_entries in user request. Also, HW with fifo size N |