drm/radeon: only use me/pfp sync on evergreen+
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Sep 2014 17:16:39 +0000 (13:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Sep 2014 17:16:39 +0000 (13:16 -0400)
The packet seems to cause hangs on some 7xx asics.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=83616

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600.c

index e616eb5f6e7a4076979650147acad69b9b40d567..3cfb50056f7ac75ec27f1ef3f8bfc09218c2f152 100644 (file)
@@ -2769,8 +2769,8 @@ bool r600_semaphore_ring_emit(struct radeon_device *rdev,
        radeon_ring_write(ring, lower_32_bits(addr));
        radeon_ring_write(ring, (upper_32_bits(addr) & 0xff) | sel);
 
-       /* PFP_SYNC_ME packet only exists on 7xx+ */
-       if (emit_wait && (rdev->family >= CHIP_RV770)) {
+       /* PFP_SYNC_ME packet only exists on 7xx+, only enable it on eg+ */
+       if (emit_wait && (rdev->family >= CHIP_CEDAR)) {
                /* Prevent the PFP from running ahead of the semaphore wait */
                radeon_ring_write(ring, PACKET3(PACKET3_PFP_SYNC_ME, 0));
                radeon_ring_write(ring, 0x0);