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 <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1815863
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2018-09-07 14:27:12 +03:00
committed by mobile promotions
parent d2be65315a
commit b8ae7eb029

View File

@@ -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;