Skip to content

Commit

Permalink
drm/radeon: don't call irq changes on r600 suspend/resume
Browse files Browse the repository at this point in the history
Until we sort out r600 IRQs don't do this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Mar 13, 2009
1 parent d02f7fa commit 03efb88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/radeon/radeon_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ static int radeon_suspend(struct drm_device *dev, pm_message_t state)
{
drm_radeon_private_t *dev_priv = dev->dev_private;

if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600)
return 0;

/* Disable *all* interrupts */
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS600)
RADEON_WRITE(R500_DxMODE_INT_MASK, 0);
Expand All @@ -56,6 +59,9 @@ static int radeon_resume(struct drm_device *dev)
{
drm_radeon_private_t *dev_priv = dev->dev_private;

if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600)
return 0;

/* Restore interrupt registers */
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS600)
RADEON_WRITE(R500_DxMODE_INT_MASK, dev_priv->r500_disp_irq_reg);
Expand Down

0 comments on commit 03efb88

Please sign in to comment.