Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164020
b: refs/heads/master
c: b15591f
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Sep 18, 2009
1 parent fbb8c09 commit a84a8ac
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 812c369dbf3b5a726b52bbfb8adbc230f3f81bcf
refs/heads/master: b15591f3120309093fc6d3df26b4242187d7b384
18 changes: 18 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS)
u32 stat;
u32 r500_disp_int;

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

/* Only consider the bits we're interested in - others could be used
* outside the DRM
*/
Expand Down Expand Up @@ -286,6 +289,9 @@ int radeon_irq_emit(struct drm_device *dev, void *data, struct drm_file *file_pr
drm_radeon_irq_emit_t *emit = data;
int result;

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

LOCK_TEST_WITH_RETURN(dev, file_priv);

if (!dev_priv) {
Expand Down Expand Up @@ -315,6 +321,9 @@ int radeon_irq_wait(struct drm_device *dev, void *data, struct drm_file *file_pr
return -EINVAL;
}

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

return radeon_wait_irq(dev, irqwait->irq_seq);
}

Expand All @@ -326,6 +335,9 @@ void radeon_driver_irq_preinstall(struct drm_device * dev)
(drm_radeon_private_t *) dev->dev_private;
u32 dummy;

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

/* Disable *all* interrupts */
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS600)
RADEON_WRITE(R500_DxMODE_INT_MASK, 0);
Expand All @@ -345,6 +357,9 @@ int radeon_driver_irq_postinstall(struct drm_device *dev)

dev->max_vblank_count = 0x001fffff;

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

radeon_irq_set_state(dev, RADEON_SW_INT_ENABLE, 1);

return 0;
Expand All @@ -357,6 +372,9 @@ void radeon_driver_irq_uninstall(struct drm_device * dev)
if (!dev_priv)
return;

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

if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RS600)
RADEON_WRITE(R500_DxMODE_INT_MASK, 0);
/* Disable *all* interrupts */
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,10 @@ static int radeon_cp_getparam(struct drm_device *dev, void *data, struct drm_fil
value = GET_SCRATCH(dev_priv, 2);
break;
case RADEON_PARAM_IRQ_NR:
value = drm_dev_to_irq(dev);
if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600)
value = 0;
else
value = drm_dev_to_irq(dev);
break;
case RADEON_PARAM_GART_BASE:
value = dev_priv->gart_vm_start;
Expand Down

0 comments on commit a84a8ac

Please sign in to comment.