diff options
| author | Jason Gunthorpe <[email protected]> | 2022-08-16 14:03:20 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2022-08-16 14:13:23 +0000 |
| commit | b16de8b9e7d1aae169d059c3a0dd9a881a3c0d1d (patch) | |
| tree | 561b24fa62e391c68f0c714c5461f93bdbb765bd /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | RDMA/erdma: Correct the max_qp and max_cq capacities of the device (diff) | |
| download | kernel-b16de8b9e7d1aae169d059c3a0dd9a881a3c0d1d.tar.gz kernel-b16de8b9e7d1aae169d059c3a0dd9a881a3c0d1d.zip | |
RDMA: Handle the return code from dma_resv_wait_timeout() properly
ib_umem_dmabuf_map_pages() returns 0 on success and -ERRNO on failure.
dma_resv_wait_timeout() uses a different scheme:
* Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or
* greater than zero on success.
This results in ib_umem_dmabuf_map_pages() being non-functional as a
positive return will be understood to be an error by drivers.
Fixes: f30bceab16d1 ("RDMA: use dma_resv_wait() instead of extracting the fence")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Maor Gottlieb <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
