* [PATCH] ARM: socfpga: arria10: fix timer3 address
@ 2020-08-31 10:49 Steffen Trumtrar
2020-08-31 13:40 ` Dinh Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Trumtrar @ 2020-08-31 10:49 UTC (permalink / raw)
To: Dinh Nguyen, linux-arm-kernel; +Cc: stable
Since commit 6d2e16a3181b ("clocksource: dw_apb_timer_of: Fix missing
clockevent timers") the dw_apb_timer_of code tries to add a clockevent
for timer3. This reveals the wrong register offset that is provided in
the timer3-node in the socfpga_arria10 devicetree which in turn results
in
Unhandled fault: imprecise external abort (0x406) at 0xbea9fe20
and therefore in a kernel panic.
Set the offset to the correct value.
Cc: stable@vger.kernel.org
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi
index 7b8961794a82..a5bd4537766d 100644
--- a/arch/arm/boot/dts/socfpga_arria10.dtsi
+++ b/arch/arm/boot/dts/socfpga_arria10.dtsi
@@ -852,7 +852,7 @@
timer3: timer3@ffd00100 {
compatible = "snps,dw-apb-timer";
interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
- reg = <0xffd01000 0x100>;
+ reg = <0xffd00100 0x100>;
clocks = <&l4_sys_free_clk>;
clock-names = "timer";
resets = <&rst L4SYSTIMER1_RESET>;
--
2.28.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: socfpga: arria10: fix timer3 address
2020-08-31 10:49 [PATCH] ARM: socfpga: arria10: fix timer3 address Steffen Trumtrar
@ 2020-08-31 13:40 ` Dinh Nguyen
2020-09-01 5:25 ` Steffen Trumtrar
0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2020-08-31 13:40 UTC (permalink / raw)
To: Steffen Trumtrar, linux-arm-kernel; +Cc: stable
Thanks for the patch Steffen, but I have already submitted a patch to
fix this.
The patch is in linux-next and staged for an rc in v5.9.
Dinh
On 8/31/20 5:49 AM, Steffen Trumtrar wrote:
> Since commit 6d2e16a3181b ("clocksource: dw_apb_timer_of: Fix missing
> clockevent timers") the dw_apb_timer_of code tries to add a clockevent
> for timer3. This reveals the wrong register offset that is provided in
> the timer3-node in the socfpga_arria10 devicetree which in turn results
> in
>
> Unhandled fault: imprecise external abort (0x406) at 0xbea9fe20
>
> and therefore in a kernel panic.
>
> Set the offset to the correct value.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> ---
> arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi
> index 7b8961794a82..a5bd4537766d 100644
> --- a/arch/arm/boot/dts/socfpga_arria10.dtsi
> +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi
> @@ -852,7 +852,7 @@
> timer3: timer3@ffd00100 {
> compatible = "snps,dw-apb-timer";
> interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0xffd01000 0x100>;
> + reg = <0xffd00100 0x100>;
> clocks = <&l4_sys_free_clk>;
> clock-names = "timer";
> resets = <&rst L4SYSTIMER1_RESET>;
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: socfpga: arria10: fix timer3 address
2020-08-31 13:40 ` Dinh Nguyen
@ 2020-09-01 5:25 ` Steffen Trumtrar
0 siblings, 0 replies; 3+ messages in thread
From: Steffen Trumtrar @ 2020-09-01 5:25 UTC (permalink / raw)
To: Dinh Nguyen; +Cc: stable, linux-arm-kernel
Hi Dinh,
Dinh Nguyen <dinguyen@kernel.org> writes:
> Thanks for the patch Steffen, but I have already submitted a
> patch to
> fix this.
>
> The patch is in linux-next and staged for an rc in v5.9.
>
perfect. Didn't see it yesterday, probably didn't look hard
enough.
BR,
Steffen
--
Pengutronix e.K. | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-01 5:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-31 10:49 [PATCH] ARM: socfpga: arria10: fix timer3 address Steffen Trumtrar
2020-08-31 13:40 ` Dinh Nguyen
2020-09-01 5:25 ` Steffen Trumtrar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).