[PATCH 04/16] drm/omap: ratelimit OCP error
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Wed May 24 12:38:20 UTC 2017
Hi Tomi,
Thank you for the patch.
On Thursday 04 May 2017 13:23:20 Tomi Valkeinen wrote:
> Use dev_err_ratelimited() when an OCP error happens, to slightly easen
> the flood.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> drivers/gpu/drm/omapdrm/omap_irq.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/omap_irq.c
> b/drivers/gpu/drm/omapdrm/omap_irq.c index 7afe4b90befd..013b0bba712f
> 100644
> --- a/drivers/gpu/drm/omapdrm/omap_irq.c
> +++ b/drivers/gpu/drm/omapdrm/omap_irq.c
> @@ -182,12 +182,13 @@ static void omap_irq_fifo_underflow(struct
> omap_drm_private *priv, pr_cont("(0x%08x)\n", irqstatus);
> }
>
> -static void omap_irq_ocp_error_handler(u32 irqstatus)
> +static void omap_irq_ocp_error_handler(struct drm_device *dev,
> + u32 irqstatus)
> {
> if (!(irqstatus & DISPC_IRQ_OCP_ERR))
> return;
>
> - DRM_ERROR("OCP error\n");
> + dev_err_ratelimited(dev->dev, "OCP error\n");
> }
>
> static irqreturn_t omap_irq_handler(int irq, void *arg)
> @@ -218,7 +219,7 @@ static irqreturn_t omap_irq_handler(int irq, void *arg)
> omap_crtc_error_irq(crtc, irqstatus);
> }
>
> - omap_irq_ocp_error_handler(irqstatus);
> + omap_irq_ocp_error_handler(dev, irqstatus);
> omap_irq_fifo_underflow(priv, irqstatus);
>
> spin_lock_irqsave(&priv->wait_lock, flags);
--
Regards,
Laurent Pinchart
More information about the dri-devel
mailing list