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: firefly_0821_release~3680^2~2953^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c994ead62ce9599e56344be9b3bead08f242aa79;p=firefly-linux-kernel-4.4.55.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 ea7df16e2f84..5992502a3448 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; }