]> Git Repo - linux.git/commitdiff
drm/amdgpu: Use a different value than 0xDEADBEEF for jpeg ring test
authorSonny Jiang <[email protected]>
Fri, 24 Mar 2023 21:44:59 +0000 (17:44 -0400)
committerAlex Deucher <[email protected]>
Fri, 9 Jun 2023 13:56:28 +0000 (09:56 -0400)
The 0xDEADBEEF standard anti-hang value. Use it may cause
fake pass.

Signed-off-by: Sonny Jiang <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c

index 9a1db2bd03e787c0934b78fb7a89d56f2577caa4..8c479669c459a1de888737efa395f3eafd8ed8f4 100644 (file)
@@ -133,12 +133,12 @@ int amdgpu_jpeg_dec_ring_test_ring(struct amdgpu_ring *ring)
        RREG32(adev->jpeg.inst[ring->me].external.jpeg_pitch[ring->pipe]);
 
        amdgpu_ring_write(ring, PACKET0(adev->jpeg.internal.jpeg_pitch[ring->pipe], 0));
-       amdgpu_ring_write(ring, 0xDEADBEEF);
+       amdgpu_ring_write(ring, 0xABADCAFE);
        amdgpu_ring_commit(ring);
 
        for (i = 0; i < adev->usec_timeout; i++) {
                tmp = RREG32(adev->jpeg.inst[ring->me].external.jpeg_pitch[ring->pipe]);
-               if (tmp == 0xDEADBEEF)
+               if (tmp == 0xABADCAFE)
                        break;
                udelay(1);
        }
This page took 0.044767 seconds and 4 git commands to generate.