diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-05-03 21:06:28 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-04 08:36:11 (GMT) |
commit | c994ead62ce9599e56344be9b3bead08f242aa79 (patch) | |
tree | 83ecd68901c99d4c2374f11232ab5f34bb63030b | |
parent | b6bb962589b069ec6b1c1f04f5b47e81d3820f4d (diff) | |
download | linux-fsl-qoriq-c994ead62ce9599e56344be9b3bead08f242aa79.tar.xz |
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 <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | 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 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; } |