diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-09-07 07:27:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-10 18:25:18 -0400 |
commit | b8ae7eb029d46ef843ca4f048eb8a7d58ae5d8a8 (patch) | |
tree | 54b667504d31694d46fcc2afe7f4cc19785716f8 /drivers | |
parent | d2be65315a9ebfc88e77489571a31c48b3d21284 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/cde.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
1106 | NULL, | 1106 | NULL, |
1107 | &map_vaddr); | 1107 | &map_vaddr); |
1108 | if (err) { | 1108 | if (err) { |
1109 | nvgpu_warn(g, "cde: failed to map compbits scatter buf at %lld size %lld", | ||
1110 | map_offset, map_size); | ||
1109 | dma_buf_put(compbits_scatter_buf); | 1111 | dma_buf_put(compbits_scatter_buf); |
1110 | err = -EINVAL; | 1112 | err = -EINVAL; |
1111 | goto exit_idle; | 1113 | goto exit_idle; |