From: Alex Deucher Date: Thu, 3 May 2012 21:06:28 +0000 (-0400) Subject: drm/radeon: clarify and extend wb setup on APUs and NI+ asics X-Git-Tag: v3.4-rc6~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c994ead62ce9599e56344be9b3bead08f242aa79;p=platform%2Fkernel%2Flinux-stable.git drm/radeon: clarify and extend wb setup on APUs and NI+ asics 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 Reviewed-by: Michel Dänzer Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index ea7df16..5992502 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; }