From: sashiko-bot@kernel.org
To: "Damon Ding" <damon.ding@rock-chips.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v6 06/18] drm/bridge: analogix_dp: Add IRQF_ONESHOT and simplify IRQ handling
Date: Fri, 13 Nov 2026 08:40:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-212439@kernel.org> (raw)
In-Reply-To: <20261113082305.541652-7-damon.ding@rock-chips.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/bridge: analogix_dp: missing Fixes trailer for threaded IRQ
race fix
--
commit 54e0c1601490164c97aa8bfcab7daa854142943a
Author: Damon Ding <damon.ding@rock-chips.com>
> drm/bridge: analogix_dp: Add IRQF_ONESHOT and simplify IRQ handling
>
> The threaded IRQ is requested without IRQF_ONESHOT, allowing hardirq to
> preempt the threaded handler. This creates a read-modify-write race on
> HPD interrupt mask registers between the hardirq mute and thread unmute
> operations.
>
> Add IRQF_ONESHOT to keep the IRQ line masked during thread execution,
> which eliminates the race and makes the per-event mute/unmute calls in
> hardirq and thread handlers redundant. Move interrupt status clearing
> to the beginning of the threaded handler, before
> drm_helper_hpd_irq_event(), to avoid losing events that arrive during
> the event handling.
>
> Tested-by: Heiko Stuebner <heiko@sntech.de>
> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
[Severity: Low]
This fixes the missing IRQF_ONESHOT flag, the racy HPD interrupt
mute/unmute sequence, and the late status clearing introduced when the
driver switched from a workqueue to a threaded IRQ handler. Should this
include:
Fixes: 7b4b7a8db439 ("drm: bridge: analogix/dp: Fix the possible dead lock in bridge disable time")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261113082305.541652-1-damon.ding@rock-chips.com?part=6
next prev parent reply other threads:[~2026-11-13 8:40 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 8:22 [PATCH v6 00/18] Add HPD support for Rockchip Analogix DP Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 01/18] drm/bridge: Select VIDEOMODE_HELPERS for DRM_OF_DISPLAY_MODE_BRIDGE Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 02/18] drm/bridge: analogix_dp: Use bridge->next_bridge instead of plat_data field Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 03/18] drm/bridge: analogix_dp: Restrict forced connected status to panel endpoints Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 04/18] drm/bridge: analogix_dp: Return bitmask from analogix_dp_get_irq_type() Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 05/18] drm/bridge: analogix_dp: Check all negative return values for &analogix_dp_device.irq Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 06/18] drm/bridge: analogix_dp: Add IRQF_ONESHOT and simplify IRQ handling Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:40 ` sashiko-bot [this message]
2026-11-13 8:22 ` [PATCH v6 07/18] drm/bridge: analogix_dp: Extend clear_hotplug_interrupts to accept IRQ bitmask Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 08/18] drm/bridge: analogix_dp: Extend mute/unmute HPD interrupts to accept irq bitmask Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 09/18] drm/bridge: analogix_dp: Simplify analogix_dp_config_interrupt() Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 10/18] drm/bridge: analogix_dp: Use platform-specific HPD detection scheme Damon Ding
2026-11-13 8:22 ` [PATCH v6 11/18] drm/bridge: analogix_dp: Skip native HPD interrupt ops for GPIO HPD Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:22 ` [PATCH v6 12/18] drm/rockchip: analogix_dp: Unbind bridge when connector init fails Damon Ding
2026-11-13 8:22 ` Damon Ding
2026-11-13 8:36 ` sashiko-bot
2026-11-13 8:23 ` [PATCH v6 13/18] drm/exynos: exynos_dp: " Damon Ding
2026-11-13 8:23 ` Damon Ding
2026-11-13 8:48 ` sashiko-bot
2026-11-13 8:23 ` [PATCH v6 14/18] drm/bridge: analogix_dp: Move IRQ enable/disable to bind/unbind Damon Ding
2026-11-13 8:23 ` Damon Ding
2026-11-13 8:50 ` sashiko-bot
2026-11-13 8:23 ` [PATCH v6 15/18] drm/bridge: analogix_dp: Manage pm runtime and IRQ for native HPD pin detection Damon Ding
2026-11-13 8:23 ` Damon Ding
2026-11-13 8:23 ` [PATCH v6 16/18] drm/bridge: analogix_dp: Declare DRM_BRIDGE_OP_HPD for hotplug reporting Damon Ding
2026-11-13 8:23 ` Damon Ding
2026-11-13 8:44 ` sashiko-bot
2026-11-13 8:23 ` [PATCH v6 17/18] drm/bridge: analogix_dp: Handle HPD notification from downstream bridge Damon Ding
2026-11-13 8:23 ` Damon Ding
2026-11-13 8:49 ` sashiko-bot
2026-11-13 8:23 ` [PATCH v6 18/18] MAINTAINERS: Add entry for Analogix DP controller bridge Damon Ding
2026-11-13 8:23 ` Damon Ding
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=sashiko-outbox-212439@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=damon.ding@rock-chips.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.