[PATCH v2 1/2] drm/i915/selftests: Do not overwrite error code after intel_context_migrate_clear() call

Sebastian Brzezinka sebastian.brzezinka at intel.com
Wed Jul 30 11:18:38 UTC 2025


Hi Krzysztof

On Wed Jul 30, 2025 at 7:39 AM UTC, Krzysztof Karas wrote:
> Currently this function's error code is stored in err variable,
> which, if a i915_request is present, will be immediately
> overwritten by return from dma_resv_reserve_fences(). Call DMA
> functions only if intel_context_migrate_clear() succeeded.
>
> Suggested-by: Matthew Auld <matthew.auld at intel.com>
> Signed-off-by: Krzysztof Karas <krzysztof.karas at intel.com>

Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka at intel.com>

-- 
Best regards,
Sebastian



More information about the Intel-gfx mailing list