diff mbox series

drm/stm: ltdc: use DRM_WARN for fifo & transfer error messages

Message ID 1553874548-31366-1-git-send-email-yannick.fertre@st.com (mailing list archive)
State New, archived
Headers show
Series drm/stm: ltdc: use DRM_WARN for fifo & transfer error messages | expand

Commit Message

Yannick FERTRE March 29, 2019, 3:49 p.m. UTC
From: Philippe Cornu <philippe.cornu@st.com>

Use DRM_WARN() instead of DRM_DEBUG_DRIVER() to better
inform the user in case of fifo underruns or
transfer errors.

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
---
 drivers/gpu/drm/stm/ltdc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Philippe CORNU April 1, 2019, 9:20 a.m. UTC | #1
Dear Yannick,
Fully agree with this approach,

Acked-by: Philippe Cornu <philippe.cornu@st.com>

Philippe :-)

On 3/29/19 4:49 PM, Yannick Fertré wrote:
> From: Philippe Cornu <philippe.cornu@st.com>
> 
> Use DRM_WARN() instead of DRM_DEBUG_DRIVER() to better
> inform the user in case of fifo underruns or
> transfer errors.
> 
> Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
> ---
>   drivers/gpu/drm/stm/ltdc.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
> index b1741a9..15d8a02 100644
> --- a/drivers/gpu/drm/stm/ltdc.c
> +++ b/drivers/gpu/drm/stm/ltdc.c
> @@ -822,11 +822,11 @@ static void ltdc_plane_atomic_update(struct drm_plane *plane,
>   
>   	mutex_lock(&ldev->err_lock);
>   	if (ldev->error_status & ISR_FUIF) {
> -		DRM_DEBUG_DRIVER("Fifo underrun\n");
> +		DRM_WARN("ltdc fifo underrun: please verify display mode\n");
>   		ldev->error_status &= ~ISR_FUIF;
>   	}
>   	if (ldev->error_status & ISR_TERRIF) {
> -		DRM_DEBUG_DRIVER("Transfer error\n");
> +		DRM_WARN("ltdc transfer error\n");
>   		ldev->error_status &= ~ISR_TERRIF;
>   	}
>   	mutex_unlock(&ldev->err_lock);
>
Benjamin Gaignard April 24, 2019, 12:26 p.m. UTC | #2
Le lun. 1 avr. 2019 à 11:20, Philippe CORNU <philippe.cornu@st.com> a écrit :
>
> Dear Yannick,
> Fully agree with this approach,
>
> Acked-by: Philippe Cornu <philippe.cornu@st.com>
>

Applied on drm-misc-next,
Thanks,
Benjamin

> Philippe :-)
>
> On 3/29/19 4:49 PM, Yannick Fertré wrote:
> > From: Philippe Cornu <philippe.cornu@st.com>
> >
> > Use DRM_WARN() instead of DRM_DEBUG_DRIVER() to better
> > inform the user in case of fifo underruns or
> > transfer errors.
> >
> > Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
> > ---
> >   drivers/gpu/drm/stm/ltdc.c | 4 ++--
> >   1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
> > index b1741a9..15d8a02 100644
> > --- a/drivers/gpu/drm/stm/ltdc.c
> > +++ b/drivers/gpu/drm/stm/ltdc.c
> > @@ -822,11 +822,11 @@ static void ltdc_plane_atomic_update(struct drm_plane *plane,
> >
> >       mutex_lock(&ldev->err_lock);
> >       if (ldev->error_status & ISR_FUIF) {
> > -             DRM_DEBUG_DRIVER("Fifo underrun\n");
> > +             DRM_WARN("ltdc fifo underrun: please verify display mode\n");
> >               ldev->error_status &= ~ISR_FUIF;
> >       }
> >       if (ldev->error_status & ISR_TERRIF) {
> > -             DRM_DEBUG_DRIVER("Transfer error\n");
> > +             DRM_WARN("ltdc transfer error\n");
> >               ldev->error_status &= ~ISR_TERRIF;
> >       }
> >       mutex_unlock(&ldev->err_lock);
> >
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
index b1741a9..15d8a02 100644
--- a/drivers/gpu/drm/stm/ltdc.c
+++ b/drivers/gpu/drm/stm/ltdc.c
@@ -822,11 +822,11 @@  static void ltdc_plane_atomic_update(struct drm_plane *plane,
 
 	mutex_lock(&ldev->err_lock);
 	if (ldev->error_status & ISR_FUIF) {
-		DRM_DEBUG_DRIVER("Fifo underrun\n");
+		DRM_WARN("ltdc fifo underrun: please verify display mode\n");
 		ldev->error_status &= ~ISR_FUIF;
 	}
 	if (ldev->error_status & ISR_TERRIF) {
-		DRM_DEBUG_DRIVER("Transfer error\n");
+		DRM_WARN("ltdc transfer error\n");
 		ldev->error_status &= ~ISR_TERRIF;
 	}
 	mutex_unlock(&ldev->err_lock);