diff options
author | Dave Airlie <airlied@linux.ie> | 2008-08-31 07:27:26 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-08-31 07:27:26 +1000 |
commit | cd7d71f19cf2a16521c9da1815421c6a5f12a58e (patch) | |
tree | c50f7fc5fc8052e46cdb8df710c863db70b94f35 /shared-core | |
parent | 2b278047153df729caf9e516a432b2e76398cd3a (diff) |
radeon: make writeback work after suspend/resume.
While re-writing this for modesetting, I find we disable writeback on
resume.
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/radeon_cp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index ae31e969..a0fa2a06 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -628,9 +628,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 * whenever they are updated. @@ -1187,6 +1184,9 @@ static int radeon_do_init_cp(struct drm_device * dev, drm_radeon_init_t * init) radeon_set_pcigart(dev_priv, 1); } + /* Start with assuming that writeback doesn't work */ + dev_priv->writeback_works = 0; + radeon_cp_load_microcode(dev_priv); radeon_cp_init_ring_buffer(dev, dev_priv); |