Files
linux-nvgpu/drivers/gpu/nvgpu/common/mm
ddutta af9af422c6 gpu: nvgpu: decrease refcount when sync-unmap fails
When nvgpu_vm_unmap_sync fails, nvgpu_unmap_sync currently bails
out without decreasing the buffer refcount. This prevents from
releasing the buffer, in case a deferred job completes after the
timeout (which was observed 2 times during overnight
stress tests). This also means that the fixed address is not
re-useable.

Throw out a warning when nvgpu_vm_unmap_sync fails, but proceed
with decreasing refcount.

Bug 200578193

Change-Id: Ie0cc7caa7d12ca0a3b42123a5f7a28bda72dabbc
Signed-off-by: ddutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2291352
(cherry picked from commit bb2c8ef511)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2307940
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
2020-03-05 14:29:25 -08:00
..
2020-01-08 08:35:30 -08:00
2019-05-09 14:41:30 -07:00