drm/radeon: clarify and extend wb setup on APUs and NI+ asics
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 3 May 2012 21:06:28 +0000 (17:06 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 4 May 2012 08:36:11 +0000 (09:36 +0100)
Use family rather than DCE check for clarity, also always use
wb on APUs, there will never be AGP variants.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c

index ea7df16e2f84f267f0a129fac762333b96d54b56..5992502a3448dc692e426891751822f26aec3350 100644 (file)
@@ -241,8 +241,8 @@ int radeon_wb_init(struct radeon_device *rdev)
                                rdev->wb.use_event = true;
                }
        }
-       /* always use writeback/events on NI */
-       if (ASIC_IS_DCE5(rdev)) {
+       /* always use writeback/events on NI, APUs */
+       if (rdev->family >= CHIP_PALM) {
                rdev->wb.enabled = true;
                rdev->wb.use_event = true;
        }