Skip to content

Commit

Permalink
radeon: fix writeback across suspend/resume.
Browse files Browse the repository at this point in the history
Make writeback not get disabled on resume.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Oct 17, 2008
1 parent 38eda21 commit 6b79d52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/radeon/radeon_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,6 @@ static void radeon_cp_init_ring_buffer(struct drm_device * dev,
dev_priv->ring.size_l2qw);
#endif

/* Start with assuming that writeback doesn't work */
dev_priv->writeback_works = 0;

/* Initialize the scratch register pointer. This will cause
* the scratch register values to be written out to memory
Expand Down Expand Up @@ -674,6 +672,9 @@ static void radeon_test_writeback(drm_radeon_private_t * dev_priv)
{
u32 tmp;

/* Start with assuming that writeback doesn't work */
dev_priv->writeback_works = 0;

/* Writeback doesn't seem to work everywhere, test it here and possibly
* enable it if it appears to work
*/
Expand Down

0 comments on commit 6b79d52

Please sign in to comment.