diff options
author | John Ogness <[email protected]> | 2023-04-15 04:08:50 +0206 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2023-04-17 14:53:36 +0200 |
commit | 7363d6bedc000f6f9d09cfe498da2f3aca653778 (patch) | |
tree | c7fff7c985329f65594bc84150493dc3362e7f96 /scripts/gdb/linux/mm.py | |
parent | afa965a45e01e541cdbe5c8018226eff117610f0 (diff) |
drm/nouveau: fix incorrect conversion to dma_resv_wait_timeout()
Commit 41d351f29528 ("drm/nouveau: stop using ttm_bo_wait")
converted from ttm_bo_wait_ctx() to dma_resv_wait_timeout().
However, dma_resv_wait_timeout() returns greater than zero on
success as opposed to ttm_bo_wait_ctx(). As a result, relocs
will fail and log errors even when it was a success.
Change the return code handling to match that of
nouveau_gem_ioctl_cpu_prep(), which was already using
dma_resv_wait_timeout() correctly.
Fixes: 41d351f29528 ("drm/nouveau: stop using ttm_bo_wait")
Reported-by: Tanmay Bhushan <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions