]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix i915_request fence wait semantics
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 21 Oct 2021 10:35:38 +0000 (12:35 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 17 Nov 2021 13:26:19 +0000 (14:26 +0100)
commit298c035a9c4eb63f994885da77064834de6c4e26
treec85f6f3df7b24feb3884a7e3a9db0cac8b911c25
parentcdee71547095c219e7a46fe5af873c011da5699f
drm/i915: Fix i915_request fence wait semantics

The i915_request fence wait behaves differently for timeout = 0
compared to expected dma-fence behavior.

i915 behavior:
- Unsignaled: -ETIME
- Signaled: 0 (= timeout)

Expected:
- Unsignaled: 0
- Signaled: 1

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211116102431.198905-6-christian.koenig@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_request.h