[PATCH 02/20] drm/radeon: clarify and extend wb setup on APUs and NI+ asics
Christian König
deathsimple at vodafone.de
Mon May 7 04:42:37 PDT 2012
From: Alex Deucher <alexander.deucher at amd.com>
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 at amd.com>
Reviewed by: Christian König <christian.koenig at amd.com>
---
drivers/gpu/drm/radeon/radeon_device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index d18f0c4..ff28210 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -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;
}
--
1.7.5.4
More information about the dri-devel
mailing list