drm/omap: use DRM_ERROR_RATELIMITED() for error irqs
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 19 Nov 2014 10:50:13 +0000 (12:50 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 11:50:57 +0000 (13:50 +0200)
omapdrm uses normal DRM_ERROR() print when the HW reports an error. As
we sometimes may get a flood of errors, let's rather use
DRM_ERROR_RATELIMITED().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c
drivers/gpu/drm/omapdrm/omap_plane.c

index a4d6f5ec627ef6b2ee23cb1eeef05057ae64186a..e91687fe41beee0eed7a0fa182dfb0bf7f126c5b 100644 (file)
@@ -261,7 +261,7 @@ static void omap_crtc_error_irq(struct omap_drm_irq *irq, uint32_t irqstatus)
        struct omap_crtc *omap_crtc =
                        container_of(irq, struct omap_crtc, error_irq);
        struct drm_crtc *crtc = &omap_crtc->base;
-       DRM_ERROR("%s: errors: %08x\n", omap_crtc->name, irqstatus);
+       DRM_ERROR_RATELIMITED("%s: errors: %08x\n", omap_crtc->name, irqstatus);
        /* avoid getting in a flood, unregister the irq until next vblank */
        __omap_irq_unregister(crtc->dev, &omap_crtc->error_irq);
 }
index d52ff045567362b4cb659416109b90dc6859426a..1c6b63f394741595f110adce51c56188f03787ba 100644 (file)
@@ -357,7 +357,8 @@ static void omap_plane_error_irq(struct omap_drm_irq *irq, uint32_t irqstatus)
 {
        struct omap_plane *omap_plane =
                        container_of(irq, struct omap_plane, error_irq);
-       DRM_ERROR("%s: errors: %08x\n", omap_plane->name, irqstatus);
+       DRM_ERROR_RATELIMITED("%s: errors: %08x\n", omap_plane->name,
+               irqstatus);
 }
 
 static const char *plane_names[] = {