From: Philippe Gerum <rpm@xenomai.org>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: xenomai@lists.linux.dev, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH Dovetail] arm: irq_pipeline: Fix IRQ state checking in do_page_fault()
Date: Thu, 15 Oct 2026 12:19:46 +0200 [thread overview]
Message-ID: <87tsmnl0zh.fsf@xenomai.org> (raw)
In-Reply-To: <20260929-wip-flo-7-2-arm-pipeline-fix-v1-1-300c70cfae7f@siemens.com> (Florian Bezdeka's message of "Tue, 29 Sep 2026 22:55:09 +0200")
Florian Bezdeka <florian.bezdeka@siemens.com> writes:
> When correcting some fault handlers in the patch series referenced below
> one call site was missed. That is corrected now.
>
> do_page_fault() migrates to the inband stage and enabled the inband IRQs
> depending on the hardware state. Instead, we have to check if the inband
> stage was stalled on kernel entry.
>
> Link: https://lore.kernel.org/xenomai/20260610-wip-flo-v7-1-arm-pipelining-fixes-v2-6-62c9c477f8f2@siemens.com/
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
> Found while scanning the code for necessary 7.3-rc adjustments.
>
> To: xenomai@lists.linux.dev
> Cc: Philippe Gerum <rpm@xenomai.org>
> Cc: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> arch/arm/mm/fault.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
> index 8f7feb1a228fc12c2d14389f865b13e23d11460d..91d0afe7985d55b424009cc29d8f3343cfca90fd 100644
> --- a/arch/arm/mm/fault.c
> +++ b/arch/arm/mm/fault.c
> @@ -376,7 +376,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
> irqflags = dovetail_fault_entry(ARM_TRAP_ACCESS, regs);
>
> /* Enable interrupts if they were enabled in the parent context. */
> - if (interrupts_enabled(regs))
> + if (!arch_kentry_test_stalled(regs))
> local_irq_enable();
>
> /*
>
> ---
> base-commit: 58e8e0f74c2b20f6228b7d327ec2e955ffd5b491
> change-id: 20260929-wip-flo-7-2-arm-pipeline-fix-939fc6370fb2
>
> Best regards,
This patch [1] uncovered an issue with the series introducing
dovetail_fault_entry() and friends. Fixed by that patch [2] living in
next/evl-6.12.y-cip-evl for now, on top of a backport of the series
mentioned above. Tests look ok so far, I'll update all the affected
branches next.
[1] https://lore.kernel.org/xenomai/20260929-wip-flo-7-2-arm-pipeline-fix-v1-1-300c70cfae7f@siemens.com/T/#u
[2] https://gitlab.com/Xenomai/xenomai4/linux-evl/-/commit/020af735209333b180993f03534baf078fcddfb9
--
Philippe.
next prev parent reply other threads:[~2026-10-15 10:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 20:55 [PATCH Dovetail] arm: irq_pipeline: Fix IRQ state checking in do_page_fault() Florian Bezdeka
2026-10-15 10:19 ` Philippe Gerum [this message]
2026-10-15 10:31 ` Florian Bezdeka
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=87tsmnl0zh.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=florian.bezdeka@siemens.com \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@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.