* [PATCH] drm/xe/tests: fix the bo evict build break
@ 2025-04-28 3:40 Dave Airlie
2025-04-28 4:11 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Dave Airlie @ 2025-04-28 3:40 UTC (permalink / raw)
To: dri-devel, matthew.brost; +Cc: intel-xe
From: Dave Airlie <airlied@redhat.com>
Fixes: 55df7c0c62c1 ("drm/ttm/xe: drop unused force_alloc flag")
Signed-off-by: Dave Airlie <airlied@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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* ✗ LGCI.VerificationFailed: failure for drm/xe/tests: fix the bo evict build break
2025-04-28 3:40 [PATCH] drm/xe/tests: fix the bo evict build break Dave Airlie
@ 2025-04-28 4:11 ` Patchwork
2025-04-28 4:26 ` [PATCH] " Matthew Brost
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2025-04-28 4:11 UTC (permalink / raw)
To: Dave Airlie; +Cc: intel-xe
== Series Details ==
Series: drm/xe/tests: fix the bo evict build break
URL : https://patchwork.freedesktop.org/series/148332/
State : failure
== Summary ==
Address 'airlied@gmail.com' is not on the allowlist!
Exception occurred during validation, bailing out!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/xe/tests: fix the bo evict build break
2025-04-28 3:40 [PATCH] drm/xe/tests: fix the bo evict build break Dave Airlie
2025-04-28 4:11 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
@ 2025-04-28 4:26 ` Matthew Brost
2025-04-28 7:13 ` kernel test robot
2025-04-28 13:10 ` ✗ CI.Patch_applied: failure for drm/xe/tests: fix the bo evict build break (rev2) Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Matthew Brost @ 2025-04-28 4:26 UTC (permalink / raw)
To: Dave Airlie; +Cc: dri-devel, intel-xe
On Mon, Apr 28, 2025 at 01:40:42PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@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@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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/xe/tests: fix the bo evict build break
2025-04-28 3:40 [PATCH] drm/xe/tests: fix the bo evict build break Dave Airlie
2025-04-28 4:11 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2025-04-28 4:26 ` [PATCH] " Matthew Brost
@ 2025-04-28 7:13 ` kernel test robot
2025-04-28 13:10 ` ✗ CI.Patch_applied: failure for drm/xe/tests: fix the bo evict build break (rev2) Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2025-04-28 7:13 UTC (permalink / raw)
To: Dave Airlie, dri-devel, matthew.brost; +Cc: oe-kbuild-all, intel-xe
Hi Dave,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-exynos/exynos-drm-next]
[also build test ERROR on drm/drm-next drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.15-rc3 next-20250424]
[cannot apply to drm-xe/drm-xe-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Dave-Airlie/drm-xe-tests-fix-the-bo-evict-build-break/20250428-114114
base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next
patch link: https://lore.kernel.org/r/20250428034043.407486-1-airlied%40gmail.com
patch subject: [PATCH] drm/xe/tests: fix the bo evict build break
config: loongarch-randconfig-002-20250428 (https://download.01.org/0day-ci/archive/20250428/202504281424.5u93dWXu-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250428/202504281424.5u93dWXu-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504281424.5u93dWXu-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/xe/xe_migrate.c:1723:
drivers/gpu/drm/xe/tests/xe_migrate.c: In function 'test_migrate':
>> drivers/gpu/drm/xe/tests/xe_migrate.c:515:15: error: too few arguments to function 'xe_bo_evict'
515 | ret = xe_bo_evict(vram_bo);
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/xe/xe_migrate.c:23:
drivers/gpu/drm/xe/xe_bo.h:274:5: note: declared here
274 | int xe_bo_evict(struct xe_bo *bo, bool force_alloc);
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/xe/xe_dma_buf.c:322:
drivers/gpu/drm/xe/tests/xe_dma_buf.c: In function 'check_residency':
>> drivers/gpu/drm/xe/tests/xe_dma_buf.c:68:15: error: too few arguments to function 'xe_bo_evict'
68 | ret = xe_bo_evict(exported);
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/xe/xe_dma_buf.c:17:
drivers/gpu/drm/xe/xe_bo.h:274:5: note: declared here
274 | int xe_bo_evict(struct xe_bo *bo, bool force_alloc);
| ^~~~~~~~~~~
--
In file included from drivers/gpu/drm/xe/xe_bo.c:2949:
drivers/gpu/drm/xe/tests/xe_bo.c: In function 'ccs_test_migrate':
>> drivers/gpu/drm/xe/tests/xe_bo.c:63:15: error: too few arguments to function 'xe_bo_evict'
63 | ret = xe_bo_evict(bo);
| ^~~~~~~~~~~
drivers/gpu/drm/xe/xe_bo.c:2769:5: note: declared here
2769 | int xe_bo_evict(struct xe_bo *bo, bool force_alloc)
| ^~~~~~~~~~~
vim +/xe_bo_evict +515 drivers/gpu/drm/xe/tests/xe_migrate.c
493
494 static void test_migrate(struct xe_device *xe, struct xe_tile *tile,
495 struct xe_bo *sys_bo, struct xe_bo *vram_bo, struct xe_bo *ccs_bo,
496 struct kunit *test)
497 {
498 struct dma_fence *fence;
499 u64 expected, retval;
500 long timeout;
501 long ret;
502
503 expected = 0xd0d0d0d0d0d0d0d0;
504 xe_map_memset(xe, &sys_bo->vmap, 0, 0xd0, sys_bo->size);
505
506 fence = blt_copy(tile, sys_bo, vram_bo, false, "Blit copy from sysmem to vram", test);
507 if (!sanity_fence_failed(xe, fence, "Blit copy from sysmem to vram", test)) {
508 retval = xe_map_rd(xe, &vram_bo->vmap, 0, u64);
509 if (retval == expected)
510 KUNIT_FAIL(test, "Sanity check failed: VRAM must have compressed value\n");
511 }
512 dma_fence_put(fence);
513
514 kunit_info(test, "Evict vram buffer object\n");
> 515 ret = xe_bo_evict(vram_bo);
516 if (ret) {
517 KUNIT_FAIL(test, "Failed to evict bo.\n");
518 return;
519 }
520
521 ret = xe_bo_vmap(vram_bo);
522 if (ret) {
523 KUNIT_FAIL(test, "Failed to vmap vram bo: %li\n", ret);
524 return;
525 }
526
527 retval = xe_map_rd(xe, &vram_bo->vmap, 0, u64);
528 check(retval, expected, "Clear evicted vram data first value", test);
529 retval = xe_map_rd(xe, &vram_bo->vmap, vram_bo->size - 8, u64);
530 check(retval, expected, "Clear evicted vram data last value", test);
531
532 fence = blt_copy(tile, vram_bo, ccs_bo,
533 true, "Blit surf copy from vram to sysmem", test);
534 if (!sanity_fence_failed(xe, fence, "Clear ccs buffer data", test)) {
535 retval = xe_map_rd(xe, &ccs_bo->vmap, 0, u64);
536 check(retval, 0, "Clear ccs data first value", test);
537
538 retval = xe_map_rd(xe, &ccs_bo->vmap, ccs_bo->size - 8, u64);
539 check(retval, 0, "Clear ccs data last value", test);
540 }
541 dma_fence_put(fence);
542
543 kunit_info(test, "Restore vram buffer object\n");
544 ret = xe_bo_validate(vram_bo, NULL, false);
545 if (ret) {
546 KUNIT_FAIL(test, "Failed to validate vram bo for: %li\n", ret);
547 return;
548 }
549
550 /* Sync all migration blits */
551 timeout = dma_resv_wait_timeout(vram_bo->ttm.base.resv,
552 DMA_RESV_USAGE_KERNEL,
553 true,
554 5 * HZ);
555 if (timeout <= 0) {
556 KUNIT_FAIL(test, "Failed to sync bo eviction.\n");
557 return;
558 }
559
560 ret = xe_bo_vmap(vram_bo);
561 if (ret) {
562 KUNIT_FAIL(test, "Failed to vmap vram bo: %li\n", ret);
563 return;
564 }
565
566 retval = xe_map_rd(xe, &vram_bo->vmap, 0, u64);
567 check(retval, expected, "Restored value must be equal to initial value", test);
568 retval = xe_map_rd(xe, &vram_bo->vmap, vram_bo->size - 8, u64);
569 check(retval, expected, "Restored value must be equal to initial value", test);
570
571 fence = blt_copy(tile, vram_bo, ccs_bo,
572 true, "Blit surf copy from vram to sysmem", test);
573 if (!sanity_fence_failed(xe, fence, "Clear ccs buffer data", test)) {
574 retval = xe_map_rd(xe, &ccs_bo->vmap, 0, u64);
575 check(retval, 0, "Clear ccs data first value", test);
576 retval = xe_map_rd(xe, &ccs_bo->vmap, ccs_bo->size - 8, u64);
577 check(retval, 0, "Clear ccs data last value", test);
578 }
579 dma_fence_put(fence);
580 }
581
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✗ CI.Patch_applied: failure for drm/xe/tests: fix the bo evict build break (rev2)
2025-04-28 3:40 [PATCH] drm/xe/tests: fix the bo evict build break Dave Airlie
` (2 preceding siblings ...)
2025-04-28 7:13 ` kernel test robot
@ 2025-04-28 13:10 ` Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2025-04-28 13:10 UTC (permalink / raw)
To: Dave Airlie; +Cc: intel-xe
== Series Details ==
Series: drm/xe/tests: fix the bo evict build break (rev2)
URL : https://patchwork.freedesktop.org/series/148332/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 4dfede9f7f69 drm-tip: 2025y-04m-28d-09h-50m-50s UTC integration manifest
=== git am output follows ===
error: patch failed: drivers/gpu/drm/xe/tests/xe_bo.c:60
error: drivers/gpu/drm/xe/tests/xe_bo.c: patch does not apply
error: patch failed: drivers/gpu/drm/xe/tests/xe_dma_buf.c:65
error: drivers/gpu/drm/xe/tests/xe_dma_buf.c: patch does not apply
error: patch failed: drivers/gpu/drm/xe/tests/xe_migrate.c:509
error: drivers/gpu/drm/xe/tests/xe_migrate.c: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: drm/xe/tests: fix the bo evict build break
Patch failed at 0001 drm/xe/tests: fix the bo evict build break
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-04-28 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 3:40 [PATCH] drm/xe/tests: fix the bo evict build break Dave Airlie
2025-04-28 4:11 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2025-04-28 4:26 ` [PATCH] " Matthew Brost
2025-04-28 7:13 ` kernel test robot
2025-04-28 13:10 ` ✗ CI.Patch_applied: failure for drm/xe/tests: fix the bo evict build break (rev2) Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox