Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Eliav Farber" <farbere@amazon.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 4/8] irqchip/al-fic: switch to shared parent interrupt
Date: Mon, 05 Oct 2026 11:35:55 +0000	[thread overview]
Message-ID: <20261005113556.2CA381F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261005112458.22291-5-farbere@amazon.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] irqchip: al-fic: uninitialized mask_cache causes false IRQ_HANDLED in shared handler
--

commit cfdc04eba40afdf67fb8743fd9c337f5dc214952
Author: Eliav Farber <farbere@amazon.com>
Subject: irqchip/al-fic: switch to shared parent interrupt

This commit modifies the AL-FIC driver to request its parent interrupt as a
shared interrupt instead of using a chained handler. This change allows
multiple FIC controllers to share a single output line toward the parent GIC.

[Severity: High]
In drivers/irqchip/irq-al-fic.c, at line 169 within al_fic_register(), the
parent IRQ is now requested with IRQF_SHARED. Because the generic chip is
allocated with IRQ_GC_INIT_MASK_CACHE, gc->mask_cache is initialized to 0
and hardware sync is deferred until the first child IRQ is mapped.

Does requesting the shared IRQ at this stage expose the handler to early
execution if another device sharing the line raises an interrupt before any
child IRQs are mapped?

If this occurs, when al_fic_irq_handler() is called around line 105,
the bitwise NOT of gc->mask_cache evaluates to 0xFFFFFFFF. Any latched but
masked events in the AL_FIC_CAUSE register would then bypass the software
mask, resulting in a non-zero pending value.

Could this cause the handler to loop over unmapped bits and falsely return
IRQ_HANDLED? Falsely returning IRQ_HANDLED defeats the kernel's spurious
interrupt detector, which might lead to system hard lockups if the shared
line experiences a spurious storm or becomes stuck.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261005112458.22291-1-farbere@amazon.com?part=4

  reply	other threads:[~2026-10-05 11:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 11:24 [PATCH v3 0/8] irqchip/al-fic: shared parent IRQ, error/fatal outputs and affinity Eliav Farber
2026-10-05 11:24 ` [PATCH v3 1/8] irqchip/al-fic: fix argument alignment and a repeated word Eliav Farber
2026-10-05 11:24 ` [PATCH v3 2/8] irqchip/al-fic: use %pOF and raise init log level Eliav Farber
2026-10-05 11:24 ` [PATCH v3 3/8] irqchip/al-fic: keep the device_node instead of a cached name string Eliav Farber
2026-10-08  1:05   ` Radu Rendec
2026-10-05 11:24 ` [PATCH v3 4/8] irqchip/al-fic: switch to shared parent interrupt Eliav Farber
2026-10-05 11:35   ` sashiko-bot [this message]
2026-10-08  1:06   ` Radu Rendec
2026-10-08  8:22     ` Farber, Eliav
2026-10-05 11:24 ` [PATCH v3 5/8] dt-bindings: interrupt-controller: amazon,al-fic: add mask selection Eliav Farber
2026-10-05 11:24 ` [PATCH v3 6/8] irqchip/al-fic: support error and fatal outputs and FIC v2 Eliav Farber
2026-10-05 11:24 ` [PATCH v3 7/8] irqchip/al-fic: add support for FIC v3 Eliav Farber
2026-10-05 11:24 ` [PATCH v3 8/8] irqchip/al-fic: add irq_set_affinity callback Eliav Farber

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=20261005113556.2CA381F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=farbere@amazon.com \
    --cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox