Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Tomohiro Misono" <misono.tomohiro@fujitsu.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 4/4] irqchip/gicv3: Add workaround for FUJITSU-MONAKA erratum E#030003
Date: Fri, 02 Oct 2026 10:41:08 +0000	[thread overview]
Message-ID: <20261002104108.8669D1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261002-monaka-fix-for-upstream-v1-4-4aec0b0cbe34@fujitsu.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] irqchip/gicv3: CONSTRAINED UNPREDICTABLE access to sleeping redistributor
--

commit d6fd070c2b4a77ad65839152f8e6343482132aff
Author: Kohei Enju <enju.kohei@fujitsu.com>

irqchip/gicv3: Add workaround for FUJITSU-MONAKA erratum E#030003

This commit adds a workaround for FUJITSU-MONAKA erratum E#030003, where
SGIs generated by system register writes may be lost. The workaround changes
the IPI delivery mechanism to write directly to the target CPU's
GICR_ISPENDR0 register instead of using ICC_SGI1R_EL1.

[ ... ]

> diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
> index 6e1fa5b247fc4..e73fea8a0e279 100644
> --- a/drivers/irqchip/irq-gic-v3.c
> +++ b/drivers/irqchip/irq-gic-v3.c
[ ... ]
> @@ -1373,6 +1378,13 @@ static void gic_send_sgi(u64 cluster_id, u16 tlist, unsigned int irq)
>  	gic_write_sgi1r(val);
>  }
>  
> +static void gic_send_sgi_via_rdist(int cpu, unsigned int irq)
> +{
> +	void __iomem *base = gic_data_rdist_sgi_base_cpu(cpu);
> +
> +	writel_relaxed(BIT(irq), base + GICR_ISPENDR0);

[Severity: High]
Does this access handle the case where the target CPU is in deep idle
(ProcessorSleep == 1)?

The GICv3 architecture mandates that accessing GICR_ registers (other than
GICR_WAKER) while ProcessorSleep == 1 is constrained unpredictable.

When a CPU enters deep idle, gic_enable_redist(false) sets
GICR_WAKER_ProcessorSleep. If another CPU sends an IPI to this idle CPU
(e.g., a scheduler wake-up), it executes gic_send_sgi_via_rdist() which
directly writes to the sleeping redistributor's MMIO register.

Bypassing ICC_SGI1R_EL1 and writing directly to GICR_ISPENDR0 could break
standard IPI delivery to idle CPUs by either causing a synchronous external
abort or dropping the IPI.

> +}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261002-monaka-fix-for-upstream-v1-0-4aec0b0cbe34@fujitsu.com?part=4

  reply	other threads:[~2026-10-02 10:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 10:26 [PATCH 0/4] arm64: Add workarounds for FUJITSU-MONAKA CPU Tomohiro Misono
2026-10-02 10:26 ` [PATCH 1/4] arm64: cputype: Add FUJITSU MONAKA definition Tomohiro Misono
2026-10-02 10:31   ` sashiko-bot
2026-10-02 10:26 ` [PATCH 2/4] arm64: tlb: Add tlbi workaround for FUJITSU-MONAKA Erratum E#030001 Tomohiro Misono
2026-10-02 10:41   ` sashiko-bot
2026-10-02 12:43   ` Will Deacon
2026-10-06  9:48     ` Tomohiro Misono (Fujitsu)
2026-10-02 13:01   ` Mark Rutland
2026-10-06  9:45     ` Tomohiro Misono (Fujitsu)
2026-10-02 10:26 ` [PATCH 3/4] perf: arm_pmu: Add workaround for FUJITSU-MONAKA Erratum E#030002 Tomohiro Misono
2026-10-02 10:35   ` sashiko-bot
2026-10-02 12:44   ` Will Deacon
2026-10-06  9:52     ` Tomohiro Misono (Fujitsu)
2026-10-02 10:26 ` [PATCH 4/4] irqchip/gicv3: Add workaround for FUJITSU-MONAKA erratum E#030003 Tomohiro Misono
2026-10-02 10:41   ` sashiko-bot [this message]
2026-10-07 11:37     ` Kohei Enju
2026-10-02 12:26   ` Marc Zyngier
2026-10-06  9:08     ` Kohei Enju
2026-10-06  9:42       ` Marc Zyngier
2026-10-07  8:17         ` Kohei Enju

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=20261002104108.8669D1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=misono.tomohiro@fujitsu.com \
    --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