[PATCH] drm/xe/tests: fix the bo evict build break
Matthew Brost
matthew.brost at intel.com
Mon Apr 28 04:26:27 UTC 2025
On Mon, Apr 28, 2025 at 01:40:42PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
Thanks Dave, I already merge this fix. I guess our new CI policy
rejected this though - I'll follow up on allowing you trigger our CI for
anything going forward.
Matt
> Fixes: 55df7c0c62c1 ("drm/ttm/xe: drop unused force_alloc flag")
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> drivers/gpu/drm/xe/tests/xe_bo.c | 2 +-
> drivers/gpu/drm/xe/tests/xe_dma_buf.c | 2 +-
> drivers/gpu/drm/xe/tests/xe_migrate.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c
> index 230eb824550f..378dcd0fb414 100644
> --- a/drivers/gpu/drm/xe/tests/xe_bo.c
> +++ b/drivers/gpu/drm/xe/tests/xe_bo.c
> @@ -60,7 +60,7 @@ static int ccs_test_migrate(struct xe_tile *tile, struct xe_bo *bo,
> }
>
> /* Evict to system. CCS data should be copied. */
> - ret = xe_bo_evict(bo, true);
> + ret = xe_bo_evict(bo);
> if (ret) {
> KUNIT_FAIL(test, "Failed to evict bo.\n");
> return ret;
> diff --git a/drivers/gpu/drm/xe/tests/xe_dma_buf.c b/drivers/gpu/drm/xe/tests/xe_dma_buf.c
> index cedd3e88a6fb..c53f67ce4b0a 100644
> --- a/drivers/gpu/drm/xe/tests/xe_dma_buf.c
> +++ b/drivers/gpu/drm/xe/tests/xe_dma_buf.c
> @@ -65,7 +65,7 @@ static void check_residency(struct kunit *test, struct xe_bo *exported,
> * the exporter and the importer should be the same bo.
> */
> swap(exported->ttm.base.dma_buf, dmabuf);
> - ret = xe_bo_evict(exported, true);
> + ret = xe_bo_evict(exported);
> swap(exported->ttm.base.dma_buf, dmabuf);
> if (ret) {
> if (ret != -EINTR && ret != -ERESTARTSYS)
> diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
> index 52f89476bf62..4a65e3103f77 100644
> --- a/drivers/gpu/drm/xe/tests/xe_migrate.c
> +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
> @@ -509,7 +509,7 @@ static void test_migrate(struct xe_device *xe, struct xe_tile *tile,
> dma_fence_put(fence);
>
> kunit_info(test, "Evict vram buffer object\n");
> - ret = xe_bo_evict(vram_bo, true);
> + ret = xe_bo_evict(vram_bo);
> if (ret) {
> KUNIT_FAIL(test, "Failed to evict bo.\n");
> return;
> --
> 2.49.0
>
More information about the Intel-xe
mailing list