Commit 53c379e9 authored by Dave Airlie's avatar Dave Airlie

radeon: call the correct idle function, logic got inverted.

This calls the correct idle function for the R600 and previous chips.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 800b6995
...@@ -1702,7 +1702,7 @@ void radeon_do_release(struct drm_device * dev) ...@@ -1702,7 +1702,7 @@ void radeon_do_release(struct drm_device * dev)
if (dev_priv) { if (dev_priv) {
if (dev_priv->cp_running) { if (dev_priv->cp_running) {
/* Stop the cp */ /* Stop the cp */
if ((dev_priv->flags & RADEON_FAMILY_MASK) < CHIP_R600) { if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600) {
while ((ret = r600_do_cp_idle(dev_priv)) != 0) { while ((ret = r600_do_cp_idle(dev_priv)) != 0) {
DRM_DEBUG("radeon_do_cp_idle %d\n", ret); DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
#ifdef __linux__ #ifdef __linux__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment