SYNCOBJ TIMELINE Test failed while running amdgpu_test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux