summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-06-14 00:02:51 +0200
committerDave Airlie <airlied@redhat.com>2011-06-16 08:28:43 +0200
commite6ba759980e65084b0db9f1684d9d65a2a3e1741 (patch)
treef5af962584902984f9b6c71dad843f179aa77ab3 /drivers/gpu
parentdrm/radeon/kms: be more pedantic about the g5 quirk (v2) (diff)
downloadlinux-e6ba759980e65084b0db9f1684d9d65a2a3e1741.tar.xz
linux-e6ba759980e65084b0db9f1684d9d65a2a3e1741.zip
drm/radeon/kms: clear wb memory by default
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index e680501c78ea..7cfaa7e2f3b5 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -215,6 +215,8 @@ int radeon_wb_init(struct radeon_device *rdev)
return r;
}
+ /* clear wb memory */
+ memset((char *)rdev->wb.wb, 0, RADEON_GPU_PAGE_SIZE);
/* disable event_write fences */
rdev->wb.use_event = false;
/* disabled via module param */