aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-09-01 20:10:16 -0400
committerDave Airlie <airlied@linux.ie>2008-10-17 17:10:11 -0400
commit6b79d521e07aae155303a992245abb539974dbaa (patch)
treedb3933d589197ce3d40042d3c74e284a770a1e94 /drivers/gpu
parent38eda21189b414b1520ea7aa0e71220796f7008f (diff)
radeon: fix writeback across suspend/resume.
Make writeback not get disabled on resume. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c
index 248ab4a7d39f..e1678cae9ccb 100644
--- a/drivers/gpu/drm/radeon/radeon_cp.c
+++ b/drivers/gpu/drm/radeon/radeon_cp.c
@@ -626,8 +626,6 @@ static void radeon_cp_init_ring_buffer(struct drm_device * dev,
626 dev_priv->ring.size_l2qw); 626 dev_priv->ring.size_l2qw);
627#endif 627#endif
628 628
629 /* Start with assuming that writeback doesn't work */
630 dev_priv->writeback_works = 0;
631 629
632 /* Initialize the scratch register pointer. This will cause 630 /* Initialize the scratch register pointer. This will cause
633 * the scratch register values to be written out to memory 631 * the scratch register values to be written out to memory
@@ -674,6 +672,9 @@ static void radeon_test_writeback(drm_radeon_private_t * dev_priv)
674{ 672{
675 u32 tmp; 673 u32 tmp;
676 674
675 /* Start with assuming that writeback doesn't work */
676 dev_priv->writeback_works = 0;
677
677 /* Writeback doesn't seem to work everywhere, test it here and possibly 678 /* Writeback doesn't seem to work everywhere, test it here and possibly
678 * enable it if it appears to work 679 * enable it if it appears to work
679 */ 680 */