]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix i915_gem_object_wait_moving_fence
authorMatthew Auld <matthew.auld@intel.com>
Fri, 8 Apr 2022 08:42:05 +0000 (09:42 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 8 Apr 2022 10:59:36 +0000 (12:59 +0200)
commit159e99f7796d1e9d9435c300fa6c96c734b31f70
tree926672db3570f61720f443db3a15dd36dc6aa845
parent927d893e1951efdd2f85ad5079133d685a6c8881
drm/i915: fix i915_gem_object_wait_moving_fence

All of CI is just failing with the following, which prevents loading of
the module:

    i915 0000:03:00.0: [drm] *ERROR* Scratch setup failed

Best guess is that this comes from the pin_map() for the scratch page,
which does an i915_gem_object_wait_moving_fence() somewhere. It looks
like this now calls into dma_resv_wait_timeout() which can return the
remaining timeout, leading to the caller thinking this is an error.

v2(Lucas): handle ret == 0

Fixes: 07bef2d157f4 ("drm/i915: drop bo->moving dependency")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Christian König <christian.koenig@amd.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20220408084205.1353427-1-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/i915/gem/i915_gem_object.c