]> err.no Git - linux-2.6/commitdiff
drm/radeon: Restore sw interrupt on resume
authorDennis Kasprzyk <onestone@opencompositing.org>
Thu, 19 Jun 2008 02:36:55 +0000 (12:36 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Jun 2008 02:36:55 +0000 (12:36 +1000)
Fixes performance drop after suspend/resume on some systems.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/radeon_cp.c
drivers/char/drm/radeon_drv.h
drivers/char/drm/radeon_irq.c

index f5e22bfcc3cbd974f70234501f10c83153d894a5..d4feccbe46d5da45f746ca267094109704c2b6ce 100644 (file)
@@ -1292,6 +1292,7 @@ static int radeon_do_resume_cp(struct drm_device * dev)
        radeon_cp_init_ring_buffer(dev, dev_priv);
 
        radeon_do_engine_reset(dev);
+       radeon_enable_interrupt(dev);
 
        DRM_DEBUG("radeon_do_resume_cp() complete\n");
 
index f43e1f9b955011535610669be13fdf3aeb9d8ba6..e20b5d8787167403b465b0a69dedbb7576f12a92 100644 (file)
@@ -386,6 +386,7 @@ extern irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS);
 extern void radeon_driver_irq_preinstall(struct drm_device * dev);
 extern void radeon_driver_irq_postinstall(struct drm_device * dev);
 extern void radeon_driver_irq_uninstall(struct drm_device * dev);
+extern void radeon_enable_interrupt(struct drm_device *dev);
 extern int radeon_vblank_crtc_get(struct drm_device *dev);
 extern int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value);
 
index 009af3814b6f12ec4dcf34aff23cffff79e0d5db..ee40d197deb7e8f2f7d6568e4c3b51e376c81ca7 100644 (file)
@@ -234,7 +234,7 @@ int radeon_irq_wait(struct drm_device *dev, void *data, struct drm_file *file_pr
        return radeon_wait_irq(dev, irqwait->irq_seq);
 }
 
-static void radeon_enable_interrupt(struct drm_device *dev)
+void radeon_enable_interrupt(struct drm_device *dev)
 {
        drm_radeon_private_t *dev_priv = (drm_radeon_private_t *) dev->dev_private;