OSDN Git Service

drm/amdgpu: drop copy/paste leftover to fix big endian
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2019 14:13:41 +0000 (09:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2019 14:35:07 +0000 (09:35 -0500)
The buf swap field doesn't exist on RB1.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 0061a0e..2932ade 100644 (file)
@@ -2624,9 +2624,6 @@ static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev)
        rb_bufsz = order_base_2(ring->ring_size / 8);
        tmp = REG_SET_FIELD(0, CP_RB1_CNTL, RB_BUFSZ, rb_bufsz);
        tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, RB_BLKSZ, rb_bufsz - 2);
-#ifdef __BIG_ENDIAN
-       tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, BUF_SWAP, 1);
-#endif
        WREG32_SOC15(GC, 0, mmCP_RB1_CNTL, tmp);
        /* Initialize the ring buffer's write pointers */
        ring->wptr = 0;