SYNCOBJ TIMELINE Test failed while running amdgpu_test

Zhang, Jesse(Jie) Jesse.Zhang at amd.com
Wed Jun 29 03:07:10 UTC 2022


[AMD Official Use Only - General]

Hi Alex and Mario
We find the “Syncobj timeline” test failed on ubunt22(kernel version  >= 5.15.34).
Failed log:
Suite: SYNCOBJ TIMELINE Tests
  Test: syncobj timeline test ...FAILED
    1. sources/drm/tests/amdgpu/syncobj_tests.c:299  - CU_ASSERT_EQUAL(payload,18)
    2. sources/drm/tests/amdgpu/syncobj_tests.c:309  - CU_ASSERT_EQUAL(payload,20)

We find it cause by the patch.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ab66fdace8581ef3b4e7cf5381a168ed4058d779.

So I add a patch , please help to review.

diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index 7e48dcd1bee4..d5db818f1c76 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -887,7 +887,7 @@ static int drm_syncobj_flatten_chain(struct dma_fence **f)
                goto free_fences;

        dma_fence_put(*f);
-       *f = &array->base;
+       *f = array->fences[0];
        return 0;



Thanks
Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220629/6b81223e/attachment.htm>


More information about the amd-gfx mailing list