drm/radeon/kms: clear wb memory by default
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 13 Jun 2011 22:02:51 +0000 (22:02 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Jun 2011 06:28:43 +0000 (16:28 +1000)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c

index e680501c78ea50e7d7a9d9d8f5d727c7c4e3337a..7cfaa7e2f3b57195671beb6958c8447f9f108683 100644 (file)
@@ -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 */