From b8ae7eb029d46ef843ca4f048eb8a7d58ae5d8a8 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Fri, 7 Sep 2018 14:27:12 +0300 Subject: gpu: nvgpu: warn if cde map fails This shouldn't happen, but is dangerous enough to warrant its own warning if it does. A message might help debug a rare corruption bug. Bug 2038362 Change-Id: I7915760fc31e7acaa0148a10f9acae303d53ea95 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1815863 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/cde.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/os') diff --git a/drivers/gpu/nvgpu/os/linux/cde.c b/drivers/gpu/nvgpu/os/linux/cde.c index 7aac8e01..074fe5ce 100644 --- a/drivers/gpu/nvgpu/os/linux/cde.c +++ b/drivers/gpu/nvgpu/os/linux/cde.c @@ -1106,6 +1106,8 @@ __releases(&l->cde_app->mutex) NULL, &map_vaddr); if (err) { + nvgpu_warn(g, "cde: failed to map compbits scatter buf at %lld size %lld", + map_offset, map_size); dma_buf_put(compbits_scatter_buf); err = -EINVAL; goto exit_idle; -- cgit v1.2.2