linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] drm: Use IRQF_NO_AUTOEN flag in request_irq()
@ 2024-09-12  8:30 Jinjie Ruan
  2024-09-12  8:30 ` [PATCH v2 1/5] drm/imx: " Jinjie Ruan
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-09-12  8:30 UTC (permalink / raw)
  To: laurentiu.palcu, l.stach, maarten.lankhorst, mripard, tzimmermann,
	airlied, daniel, shawnguo, s.hauer, kernel, festevam, p.zabel,
	robdclark, sean, konradybcio, quic_abhinavk, dmitry.baryshkov,
	marijn.suijten, thierry.reding, mperttunen, jonathanh, agx,
	gregkh, jordan, dri-devel, imx, linux-arm-kernel, linux-kernel,
	linux-arm-msm, freedreno, linux-tegra
  Cc: ruanjinjie

As commit cbe16f35bee6 ("genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()")
said, reqeust_irq() and then disable_irq() is unsafe. In the small time gap
between request_irq() and disable_irq(), interrupts can still come.

IRQF_NO_AUTOEN flag can be used by drivers to request_irq(). It prevents
the automatic enabling of the requested interrupt in the same
safe way. With that the usage can be simplified and corrected.

Compile-tested only.

Changes in v2:
- Correct the commit subject.
- Add reviewed-by.

Jinjie Ruan (5):
  drm/imx: Use IRQF_NO_AUTOEN flag in request_irq()
  drm/imx/dcss: Use IRQF_NO_AUTOEN flag in request_irq()
  drm/imx/ipuv3: Use IRQF_NO_AUTOEN flag in request_irq()
  drm/tegra: dpaux: Use IRQF_NO_AUTOEN flag in request_irq()
  drm/msm/adreno: Use IRQF_NO_AUTOEN flag in request_irq()

 drivers/gpu/drm/imx/dcss/dcss-crtc.c   | 6 ++----
 drivers/gpu/drm/imx/dcss/dcss-dtg.c    | 4 +---
 drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c | 6 ++----
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c  | 4 +---
 drivers/gpu/drm/tegra/dpaux.c          | 4 +---
 5 files changed, 7 insertions(+), 17 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-09-21 20:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12  8:30 [PATCH v2 0/5] drm: Use IRQF_NO_AUTOEN flag in request_irq() Jinjie Ruan
2024-09-12  8:30 ` [PATCH v2 1/5] drm/imx: " Jinjie Ruan
2024-09-20 12:44   ` Laurentiu Palcu
2024-09-12  8:30 ` [PATCH v2 2/5] drm/imx/dcss: " Jinjie Ruan
2024-09-20 12:45   ` Laurentiu Palcu
2024-09-12  8:30 ` [PATCH v2 3/5] drm/imx/ipuv3: " Jinjie Ruan
2024-09-20 14:53   ` Philipp Zabel
2024-09-12  8:30 ` [PATCH v2 4/5] drm/tegra: dpaux: " Jinjie Ruan
2024-09-12  8:30 ` [PATCH v2 5/5] drm/msm/adreno: " Jinjie Ruan
2024-09-21 20:55 ` (subset) [PATCH v2 0/5] drm: " Dmitry Baryshkov

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).