mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Devarsh Thakkar <devarsht@ti.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
	Jyri Sarha <jyri.sarha@iki.fi>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
	Jonathan Cormier <jcormier@criticallink.com>
Subject: Re: [PATCH 2/7] drm/tidss: Remove unused OCP error flag
Date: Fri, 22 Nov 2024 13:30:10 +0530	[thread overview]
Message-ID: <1f47c3c3-812d-2e0e-16f8-db0209f1ebad@ti.com> (raw)
In-Reply-To: <20241021-tidss-irq-fix-v1-2-82ddaec94e4a@ideasonboard.com>



On 21/10/24 19:37, Tomi Valkeinen wrote:
> We never use the DSS_IRQ_DEVICE_OCP_ERR flag, and the HW doesn't even
> have such a bit... So remove it.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>

Reviewed-by: Devarsh Thakkar <devarsht@ti.com>

Regards
Devarsh
> ---
>  drivers/gpu/drm/tidss/tidss_irq.c | 5 +----
>  drivers/gpu/drm/tidss/tidss_irq.h | 4 +---
>  2 files changed, 2 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/tidss/tidss_irq.c b/drivers/gpu/drm/tidss/tidss_irq.c
> index 604334ef526a..91498ff664a2 100644
> --- a/drivers/gpu/drm/tidss/tidss_irq.c
> +++ b/drivers/gpu/drm/tidss/tidss_irq.c
> @@ -78,9 +78,6 @@ static irqreturn_t tidss_irq_handler(int irq, void *arg)
>  			tidss_crtc_error_irq(crtc, irqstatus);
>  	}
>  
> -	if (irqstatus & DSS_IRQ_DEVICE_OCP_ERR)
> -		dev_err_ratelimited(tidss->dev, "OCP error\n");
> -
>  	return IRQ_HANDLED;
>  }
>  
> @@ -105,7 +102,7 @@ int tidss_irq_install(struct drm_device *ddev, unsigned int irq)
>  	if (ret)
>  		return ret;
>  
> -	tidss->irq_mask = DSS_IRQ_DEVICE_OCP_ERR;
> +	tidss->irq_mask = 0;
>  
>  	for (unsigned int i = 0; i < tidss->num_crtcs; ++i) {
>  		struct tidss_crtc *tcrtc = to_tidss_crtc(tidss->crtcs[i]);
> diff --git a/drivers/gpu/drm/tidss/tidss_irq.h b/drivers/gpu/drm/tidss/tidss_irq.h
> index b512614d5863..dd61f645f662 100644
> --- a/drivers/gpu/drm/tidss/tidss_irq.h
> +++ b/drivers/gpu/drm/tidss/tidss_irq.h
> @@ -19,15 +19,13 @@
>   * bit use   |D  |fou|FEOL|FEOL|FEOL|FEOL|  UUUU  |          |
>   * bit number|0  |1-3|4-7 |8-11|  12-19  | 20-23  |  24-31   |
>   *
> - * device bits:	D = OCP error
> + * device bits:	D = Unused
>   * WB bits:	f = frame done wb, o = wb buffer overflow,
>   *		u = wb buffer uncomplete
>   * vp bits:	F = frame done, E = vsync even, O = vsync odd, L = sync lost
>   * plane bits:	U = fifo underflow
>   */
>  
> -#define DSS_IRQ_DEVICE_OCP_ERR			BIT(0)
> -
>  #define DSS_IRQ_DEVICE_FRAMEDONEWB		BIT(1)
>  #define DSS_IRQ_DEVICE_WBBUFFEROVERFLOW		BIT(2)
>  #define DSS_IRQ_DEVICE_WBUNCOMPLETEERROR	BIT(3)
> 

  reply	other threads:[~2024-11-22  9:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21 14:07 [PATCH 0/7] drm/tidss: Interrupt fixes and cleanups Tomi Valkeinen
2024-10-21 14:07 ` [PATCH 1/7] drm/tidss: Fix issue in irq handling causing irq-flood issue Tomi Valkeinen
2024-10-21 15:21   ` Jon Cormier
2024-11-24 17:18   ` Aradhya Bhatia
2024-11-25 11:08     ` Tomi Valkeinen
2024-10-21 14:07 ` [PATCH 2/7] drm/tidss: Remove unused OCP error flag Tomi Valkeinen
2024-11-22  8:00   ` Devarsh Thakkar [this message]
2024-11-24 17:19   ` Aradhya Bhatia
2024-10-21 14:07 ` [PATCH 3/7] drm/tidss: Remove extra K2G check Tomi Valkeinen
2024-11-22  8:00   ` Devarsh Thakkar
2024-11-24 17:20   ` Aradhya Bhatia
2024-10-21 14:07 ` [PATCH 4/7] drm/tidss: Add printing of underflows Tomi Valkeinen
2024-11-22  8:07   ` Devarsh Thakkar
2024-11-24 17:26   ` Aradhya Bhatia
2024-10-21 14:07 ` [PATCH 5/7] drm/tidss: Clear the interrupt status for interrupts being disabled Tomi Valkeinen
2024-10-21 15:13   ` Jon Cormier
2024-11-24 17:28   ` Aradhya Bhatia
2024-10-21 14:07 ` [PATCH 6/7] drm/tidss: Fix race condition while handling interrupt registers Tomi Valkeinen
2024-10-21 15:14   ` Jon Cormier
2024-11-24 17:29   ` Aradhya Bhatia
2024-10-21 14:07 ` [PATCH 7/7] drm/tidss: Rename 'wait_lock' to 'irq_lock' Tomi Valkeinen
2024-11-22  8:09   ` Devarsh Thakkar
2024-11-24 17:30   ` Aradhya Bhatia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f47c3c3-812d-2e0e-16f8-db0209f1ebad@ti.com \
    --to=devarsht@ti.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jcormier@criticallink.com \
    --cc=jyri.sarha@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®