linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <Dan.Sneddon@microchip.com>
To: <sam@ravnborg.org>, <Dan.Sneddon@microchip.com>
Cc: <tzimmermann@suse.de>, <daniel@ffwll.ch>, <airlied@linux.ie>,
	<alexander.deucher@amd.com>, <christian.koenig@amd.com>,
	<liviu.dudau@arm.com>, <brian.starkey@arm.com>,
	<bbrezillon@kernel.org>, <Nicolas.Ferre@microchip.com>,
	<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
	<stefan@agner.ch>, <alison.wang@nxp.com>,
	<patrik.r.jakobsson@gmail.com>, <anitha.chrisanthus@intel.com>,
	<robdclark@gmail.com>, <edmund.j.dea@intel.com>,
	<sean@poorly.run>, <shawnguo@kernel.org>,
	<s.hauer@pengutronix.de>, <kernel@pengutronix.de>,
	<jyri.sarha@iki.fi>, <tomba@kernel.org>,
	<amd-gfx@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-arm-msm@vger.kernel.org>,
	<freedreno@lists.freedesktop.org>
Subject: Re: [PATCH 03/14] drm/atmel-hlcdc: Convert to Linux IRQ interfaces
Date: Wed, 28 Jul 2021 19:19:29 +0000	[thread overview]
Message-ID: <dcc5cd1e-d0de-bdda-32f3-623b85085756@microchip.com> (raw)
In-Reply-To: <YQGrMH36Udg3eKQY@ravnborg.org>

Hi Sam,
On 7/28/21 12:08 PM, Sam Ravnborg wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hi Dan,
> 
>>>>
>>>> Just to be sure...
>>>> Can you confirm that vbltest is working OK *before* this patch?
>>>
>>> Yes, can you please verify that it regressed. If so, this would mean
>>> that the driver misses vblank interrupts with the patch applied.
>>
>> Yes, unfortunately the vbltest works before this patch, but fails after
>> this patch is applied.
> 
> I think I got it - we need to set irq_enabled to true.
> The documentation says so:
> "
>           * @irq_enabled:
>           *
>           * Indicates that interrupt handling is enabled, specifically vblank
>           * handling. Drivers which don't use drm_irq_install() need to set this
>           * to true manually.
> "
> 
> Can you try to add the following line:
> 
> 
> +static int atmel_hlcdc_dc_irq_install(struct drm_device *dev, unsigned int irq)
> +{
> +       int ret;
> +
> +       if (irq == IRQ_NOTCONNECTED)
> +               return -ENOTCONN;
> +
> 
>          dev->irq_enabled = true;                <= THIS LINE
> 
> 
> +       atmel_hlcdc_dc_irq_disable(dev);
> +
> +       ret = request_irq(irq, atmel_hlcdc_dc_irq_handler, 0, dev->driver->name, dev);
> +       if (ret)
> +               return ret;
> 
> I hope this fixes it.

It does!  With the irq_enabled line added everything is looking good.

Best Regards,
Dan

> 
>          Sam
> 


  parent reply	other threads:[~2021-07-28 19:19 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 18:27 [PATCH 00/14] drm: Make DRM's IRQ helpers legacy Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 01/14] drm/amdgpu: Convert to Linux IRQ interfaces Thomas Zimmermann
2021-07-28 10:27   ` Christian König
2021-07-28 14:03     ` Alex Deucher
2021-08-02  8:43       ` Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 02/14] drm/arm/hdlcd: " Thomas Zimmermann
     [not found]   ` <YQFcOU79/lpbt1VW@ravnborg.org>
2021-07-28 18:15     ` Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 03/14] drm/atmel-hlcdc: " Thomas Zimmermann
     [not found]   ` <YQFi96yaYbTG4OO7@ravnborg.org>
2021-07-28 15:11     ` Dan.Sneddon
     [not found]       ` <YQF7bKyeup8n3awU@ravnborg.org>
2021-07-28 17:50         ` Dan.Sneddon
     [not found]           ` <YQGdxtV0BGZ8VOpm@ravnborg.org>
2021-07-28 18:17             ` Thomas Zimmermann
2021-07-28 18:46               ` Dan.Sneddon
     [not found]                 ` <YQGrMH36Udg3eKQY@ravnborg.org>
2021-07-28 19:19                   ` Dan.Sneddon [this message]
     [not found]                     ` <YQG5+/9lPexU3Dn3@ravnborg.org>
2021-07-29 19:18                       ` Thomas Zimmermann
2021-07-29 19:21                         ` Thomas Zimmermann
2021-07-29 19:24                         ` Dan.Sneddon
2021-07-29 19:32                           ` Thomas Zimmermann
     [not found]                         ` <YQMF8X7gwKE/c2/R@ravnborg.org>
2021-07-29 19:55                           ` Dan.Sneddon
2021-07-30  8:31                             ` Thomas Zimmermann
2021-07-30 18:10                               ` Dan.Sneddon
2021-07-28 18:19             ` Dan.Sneddon
2021-07-27 18:27 ` [PATCH 04/14] drm/fsl-dcu: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 05/14] drm/gma500: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 06/14] drm/kmb: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 07/14] drm/msm: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 08/14] drm/mxsfb: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 09/14] drm/radeon: " Thomas Zimmermann
2021-08-02 15:27   ` Alex Deucher
2021-07-27 18:27 ` [PATCH 10/14] drm/tidss: " Thomas Zimmermann
2021-07-29  7:02   ` Tomi Valkeinen
2021-07-27 18:27 ` [PATCH 11/14] drm/tilcdc: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 12/14] drm/vc4: " Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 13/14] drm: Remove unused devm_drm_irq_install() Thomas Zimmermann
2021-07-27 18:27 ` [PATCH 14/14] drm: IRQ midlayer is now legacy Thomas Zimmermann
     [not found] ` <YQBVyuPuf9InsY7g@ravnborg.org>
2021-07-28  5:19   ` [PATCH 00/14] drm: Make DRM's IRQ helpers legacy Thomas Zimmermann
     [not found] ` <YQWbWjV5TYzp+5C4@ravnborg.org>
2021-08-01 19:56   ` Thomas Zimmermann
     [not found]     ` <YQcDCVuSM2kLbQcI@ravnborg.org>
2021-08-02  8:42       ` Thomas Zimmermann

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=dcc5cd1e-d0de-bdda-32f3-623b85085756@microchip.com \
    --to=dan.sneddon@microchip.com \
    --cc=Nicolas.Ferre@microchip.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=alison.wang@nxp.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=anitha.chrisanthus@intel.com \
    --cc=bbrezillon@kernel.org \
    --cc=brian.starkey@arm.com \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=edmund.j.dea@intel.com \
    --cc=freedreno@lists.freedesktop.org \
    --cc=jyri.sarha@iki.fi \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=robdclark@gmail.com \
    --cc=s.hauer@pengutronix.de \
    --cc=sam@ravnborg.org \
    --cc=sean@poorly.run \
    --cc=shawnguo@kernel.org \
    --cc=stefan@agner.ch \
    --cc=tomba@kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).