* [PATCH] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"
@ 2026-11-27 12:28 Yoshifumi SHU
2026-11-27 13:02 ` Vladimir Murzin
2026-12-01 20:15 ` [tip: irq/drivers] " tip-bot2 for Yoshifumi SHU
0 siblings, 2 replies; 3+ messages in thread
From: Yoshifumi SHU @ 2026-11-27 12:28 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Radu Rendec, Vladimir Murzin, Brad Hawthorne, linux-kernel,
linux-arm-kernel, Yoshifumi SHU, stable
This reverts commit c5e0cbe2858d278a27d5b3fe31890aea5be064c4.
nvic_base is mapped to 0xe000e100 (NVIC_ISER0). Thus, the Interrupt
Priority Registers (NVIC_IPRx, at 0xe000e400) are offset by 0x300 from
nvic_base, not 0x400. The reverted commit overlooked that nvic_base is
already offset by 0x100 from 0xe000e000 and incorrectly changed
NVIC_IPR.
Link: https://lore.kernel.org/linux-arm-kernel/b0be3be5-3a7d-469e-9166-a3414a52cbea@arm.com/
Fixes: c5e0cbe2858d ("irqchip: nvic: Fix offset for Interrupt Priority Offsets")
Cc: stable@vger.kernel.org
Signed-off-by: Yoshifumi SHU <envzhu@gmail.com>
---
Vladimir asked for this revert (see Link:).
Tested on MPS3-AN547 (Cortex-M55) and EK-RA8P1 (Cortex-M85) hardware
against v7.4-rc4. On EK-RA8P1, confirmed that the driver now writes to
the correct addresses for NVIC_IPR registers.
---
drivers/irqchip/irq-nvic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c
index 2191a2b79578..9438891e66f2 100644
--- a/drivers/irqchip/irq-nvic.c
+++ b/drivers/irqchip/irq-nvic.c
@@ -26,7 +26,7 @@
#define NVIC_ISER 0x000
#define NVIC_ICER 0x080
-#define NVIC_IPR 0x400
+#define NVIC_IPR 0x300
#define NVIC_MAX_BANKS 16
/*
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"
2026-11-27 12:28 [PATCH] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets" Yoshifumi SHU
@ 2026-11-27 13:02 ` Vladimir Murzin
2026-12-01 20:15 ` [tip: irq/drivers] " tip-bot2 for Yoshifumi SHU
1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Murzin @ 2026-11-27 13:02 UTC (permalink / raw)
To: Yoshifumi SHU, Thomas Gleixner
Cc: Radu Rendec, Brad Hawthorne, linux-kernel, linux-arm-kernel,
stable
On 11/27/26 12:28, Yoshifumi SHU wrote:
> This reverts commit c5e0cbe2858d278a27d5b3fe31890aea5be064c4.
>
> nvic_base is mapped to 0xe000e100 (NVIC_ISER0). Thus, the Interrupt
> Priority Registers (NVIC_IPRx, at 0xe000e400) are offset by 0x300 from
> nvic_base, not 0x400. The reverted commit overlooked that nvic_base is
> already offset by 0x100 from 0xe000e000 and incorrectly changed
> NVIC_IPR.
>
> Link: https://lore.kernel.org/linux-arm-kernel/b0be3be5-3a7d-469e-9166-a3414a52cbea@arm.com/
> Fixes: c5e0cbe2858d ("irqchip: nvic: Fix offset for Interrupt Priority Offsets")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yoshifumi SHU <envzhu@gmail.com>
> ---
> Vladimir asked for this revert (see Link:).
>
> Tested on MPS3-AN547 (Cortex-M55) and EK-RA8P1 (Cortex-M85) hardware
> against v7.4-rc4. On EK-RA8P1, confirmed that the driver now writes to
> the correct addresses for NVIC_IPR registers.
> ---
> drivers/irqchip/irq-nvic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c
> index 2191a2b79578..9438891e66f2 100644
> --- a/drivers/irqchip/irq-nvic.c
> +++ b/drivers/irqchip/irq-nvic.c
> @@ -26,7 +26,7 @@
>
> #define NVIC_ISER 0x000
> #define NVIC_ICER 0x080
> -#define NVIC_IPR 0x400
> +#define NVIC_IPR 0x300
>
> #define NVIC_MAX_BANKS 16
> /*
>
> base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
> -- 2.53.0
>
FWIW,
Acked-by: Vladimir Murzin <vladimir.murzin@arm.com>
Sorry for such silly mistake!
Cheers
Vladimir
^ permalink raw reply [flat|nested] 3+ messages in thread* [tip: irq/drivers] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"
2026-11-27 12:28 [PATCH] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets" Yoshifumi SHU
2026-11-27 13:02 ` Vladimir Murzin
@ 2026-12-01 20:15 ` tip-bot2 for Yoshifumi SHU
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Yoshifumi SHU @ 2026-12-01 20:15 UTC (permalink / raw)
To: linux-tip-commits
Cc: Yoshifumi SHU, Thomas Gleixner, Vladimir Murzin, stable, x86,
linux-kernel
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 75b520e4a276cbd5c1c3ad5764159530de5f4c73
Gitweb: https://git.kernel.org/tip/75b520e4a276cbd5c1c3ad5764159530de5f4c73
Author: Yoshifumi SHU <envzhu@gmail.com>
AuthorDate: Fri, 27 Nov 2026 21:28:01 +09:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Tue, 01 Dec 2026 21:12:22 +01:00
Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"
This reverts commit c5e0cbe2858d278a27d5b3fe31890aea5be064c4.
nvic_base is mapped to 0xe000e100 (NVIC_ISER0). Thus, the Interrupt
Priority Registers (NVIC_IPRx, at 0xe000e400) are offset by 0x300 from
nvic_base, not 0x400. The reverted commit overlooked that nvic_base is
already offset by 0x100 from 0xe000e000 and incorrectly changed
NVIC_IPR.
Fixes: c5e0cbe2858d ("irqchip: nvic: Fix offset for Interrupt Priority Offsets")
Signed-off-by: Yoshifumi SHU <envzhu@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Acked-by: Vladimir Murzin <vladimir.murzin@arm.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/linux-arm-kernel/b0be3be5-3a7d-469e-9166-a3414a52cbea@arm.com/
Link: https://patch.msgid.link/20261127122801.4189591-1-envzhu@gmail.com
---
drivers/irqchip/irq-nvic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c
index 2191a2b..9438891 100644
--- a/drivers/irqchip/irq-nvic.c
+++ b/drivers/irqchip/irq-nvic.c
@@ -26,7 +26,7 @@
#define NVIC_ISER 0x000
#define NVIC_ICER 0x080
-#define NVIC_IPR 0x400
+#define NVIC_IPR 0x300
#define NVIC_MAX_BANKS 16
/*
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-01 20:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 12:28 [PATCH] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets" Yoshifumi SHU
2026-11-27 13:02 ` Vladimir Murzin
2026-12-01 20:15 ` [tip: irq/drivers] " tip-bot2 for Yoshifumi SHU
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.