From: Alex Deucher Date: Mon, 13 Jun 2011 22:02:51 +0000 (+0000) Subject: drm/radeon/kms: clear wb memory by default X-Git-Tag: upstream/snapshot3+hdmi~9848^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6ba759980e65084b0db9f1684d9d65a2a3e1741;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drm/radeon/kms: clear wb memory by default Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index e680501..7cfaa7e 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 */