]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
radeon/cik: Fix GFX IB test on Big-Endian
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 4 Dec 2015 21:09:03 +0000 (23:09 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2015 05:20:45 +0000 (00:20 -0500)
This patch makes the IB test on the GFX ring pass for CI-based cards
installed in Big-Endian machines.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c

index 0154db43860c7ec6ca9d0aeb828650a88e91a718..f81fb26410976840b02811de9693b875edfa3efa 100644 (file)
@@ -4173,11 +4173,7 @@ void cik_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib)
        control |= ib->length_dw | (vm_id << 24);
 
        radeon_ring_write(ring, header);
-       radeon_ring_write(ring,
-#ifdef __BIG_ENDIAN
-                         (2 << 0) |
-#endif
-                         (ib->gpu_addr & 0xFFFFFFFC));
+       radeon_ring_write(ring, (ib->gpu_addr & 0xFFFFFFFC));
        radeon_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xFFFF);
        radeon_ring_write(ring, control);
 }