[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <73172e77-d656-4f50-934a-de8f0d9cac40@amd.com>
Date: Wed, 3 Dec 2025 14:11:37 +0100
From: Christian König <christian.koenig@....com>
To: Philipp Stanner <phasta@...nel.org>,
Sumit Semwal <sumit.semwal@...aro.org>, Gustavo Padovan
<gustavo@...ovan.org>, Felix Kuehling <Felix.Kuehling@....com>,
Alex Deucher <alexander.deucher@....com>, David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>, Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>, Tvrtko Ursulin
<tursulin@...ulin.net>, Huang Rui <ray.huang@....com>,
Matthew Auld <matthew.auld@...el.com>,
Matthew Brost <matthew.brost@...el.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
Lucas De Marchi <lucas.demarchi@...el.com>,
Thomas Hellström <thomas.hellstrom@...ux.intel.com>
Cc: linux-media@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, amd-gfx@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org, intel-xe@...ts.freedesktop.org
Subject: Re: [PATCH v2 6/8] drm/ttm: Use dma_fence_check_and_signal()
On 12/1/25 11:50, Philipp Stanner wrote:
> The return code of dma_fence_signal() is not useful and shall be removed
> from the kernel. To do so, the few users who rely on the return code
> must be ported.
>
> Use dma_fence_check_and_signal() and mapp its boolean return code to
> dma_fence_signal()'s former value for already-signaled fences.
>
> Suggested-by: Christian König <christian.koenig@....com>
> Signed-off-by: Philipp Stanner <phasta@...nel.org>
Reviewed-by: Christian König <christian.koenig@....com>
> ---
> drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c b/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
> index 1bcc67977f48..eaf2e91f8e97 100644
> --- a/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
> +++ b/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
> @@ -692,7 +692,7 @@ static int threaded_fence_signal(void *arg)
>
> msleep(20);
>
> - return dma_fence_signal(fence);
> + return dma_fence_check_and_signal(fence) ? -EINVAL : 0;
> }
>
> static void ttm_bo_validate_move_fence_not_signaled(struct kunit *test)
Powered by blists - more mailing lists