diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-11-19 05:50:13 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-03-24 07:50:57 -0400 |
commit | 3b143fc80c077be54f8f7859d00f2db79250c884 (patch) | |
tree | 254c40e3ba03ba3b5d68cbc4da4e65795e3f8144 | |
parent | ccd7b5ed7d1ed47ee5ea2f66325972811eb093bd (diff) |
drm/omap: use DRM_ERROR_RATELIMITED() for error irqs
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>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c index a4d6f5ec627e..e91687fe41be 100644 --- a/drivers/gpu/drm/omapdrm/omap_crtc.c +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c | |||
@@ -261,7 +261,7 @@ static void omap_crtc_error_irq(struct omap_drm_irq *irq, uint32_t irqstatus) | |||
261 | struct omap_crtc *omap_crtc = | 261 | struct omap_crtc *omap_crtc = |
262 | container_of(irq, struct omap_crtc, error_irq); | 262 | container_of(irq, struct omap_crtc, error_irq); |
263 | struct drm_crtc *crtc = &omap_crtc->base; | 263 | struct drm_crtc *crtc = &omap_crtc->base; |
264 | DRM_ERROR("%s: errors: %08x\n", omap_crtc->name, irqstatus); | 264 | DRM_ERROR_RATELIMITED("%s: errors: %08x\n", omap_crtc->name, irqstatus); |
265 | /* avoid getting in a flood, unregister the irq until next vblank */ | 265 | /* avoid getting in a flood, unregister the irq until next vblank */ |
266 | __omap_irq_unregister(crtc->dev, &omap_crtc->error_irq); | 266 | __omap_irq_unregister(crtc->dev, &omap_crtc->error_irq); |
267 | } | 267 | } |
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index d52ff0455673..1c6b63f39474 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
@@ -357,7 +357,8 @@ static void omap_plane_error_irq(struct omap_drm_irq *irq, uint32_t irqstatus) | |||
357 | { | 357 | { |
358 | struct omap_plane *omap_plane = | 358 | struct omap_plane *omap_plane = |
359 | container_of(irq, struct omap_plane, error_irq); | 359 | container_of(irq, struct omap_plane, error_irq); |
360 | DRM_ERROR("%s: errors: %08x\n", omap_plane->name, irqstatus); | 360 | DRM_ERROR_RATELIMITED("%s: errors: %08x\n", omap_plane->name, |
361 | irqstatus); | ||
361 | } | 362 | } |
362 | 363 | ||
363 | static const char *plane_names[] = { | 364 | static const char *plane_names[] = { |