This calls the correct idle function for the R600 and previous chips.
Signed-off-by: Dave Airlie <airlied@redhat.com>
if (dev_priv) {
if (dev_priv->cp_running) {
/* Stop the cp */
if (dev_priv) {
if (dev_priv->cp_running) {
/* 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) {
DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
#ifdef __linux__
while ((ret = r600_do_cp_idle(dev_priv)) != 0) {
DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
#ifdef __linux__