All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
@ 2016-03-18 10:19 Geert Uytterhoeven
  2016-03-18 10:19 ` [PATCH 1/2] ARM: dts: sh73a0: " Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-18 10:19 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Jon Hunter
  Cc: linux-renesas-soc, devicetree, linux-arm-kernel, Geert Uytterhoeven

	Hi Simon, Magnus, Jon,

This patch series corrects the interrupt type for ARM TWD timers on
SH-Mobile AG5 and R-Car H1.

The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
the ARM GIC documentation, whether the type for PPIs can be set is
IMPLEMENTATION DEFINED.

For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
so when we attempt to set the type for the ARM TWD interrupt it fails.
This has gone unnoticed because it fails silently, and because we cannot
re-configure the type it has had no impact. Nevertheless fix the type
for the TWD interrupt so that it matches the hardware configuration.

This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
which triggers:

    WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()

Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
R-Car Gen2, and R-Car Gen3) seem to be fine.

Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Thanks!

Geert Uytterhoeven (2):
  ARM: dts: sh73a0: Correct interrupt type for ARM TWD
  ARM: dts: r8a7779: Correct interrupt type for ARM TWD

 arch/arm/boot/dts/r8a7779.dtsi | 2 +-
 arch/arm/boot/dts/sh73a0.dtsi  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/2] ARM: dts: sh73a0: Correct interrupt type for ARM TWD
  2016-03-18 10:19 [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD Geert Uytterhoeven
@ 2016-03-18 10:19 ` Geert Uytterhoeven
  2016-03-18 10:19   ` Geert Uytterhoeven
  2016-03-22  1:28   ` Simon Horman
  2 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-18 10:19 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Jon Hunter
  Cc: linux-renesas-soc, devicetree, linux-arm-kernel, Geert Uytterhoeven

The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
the ARM GIC documentation, whether the type for PPIs can be set is
IMPLEMENTATION DEFINED.

For SH-Mobile AG5 devices the PPI type cannot be set, and so when we
attempt to set the type for the ARM TWD interrupt it fails.  This has
gone unnoticed because it fails silently, and because we cannot
re-configure the type it has had no impact. Nevertheless fix the type
for the TWD interrupt so that it matches the hardware configuration.

Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if setting the
interrupt type fails":

WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.5.0-kzm9g-00426-g226dd0f378de2fe5-dirty #721
Hardware name: Generic SH73A0 (Flattened Device Tree)
[<c010e570>] (unwind_backtrace) from [<c010acc0>] (show_stack+0x10/0x14)
[<c010acc0>] (show_stack) from [<c02de4dc>] (dump_stack+0xa4/0xdc)
[<c02de4dc>] (dump_stack) from [<c011fdb4>] (warn_slowpath_common+0x84/0xb0)
[<c011fdb4>] (warn_slowpath_common) from [<c011fe70>] (warn_slowpath_null+0x18/0x20)
[<c011fe70>] (warn_slowpath_null) from [<c02fd2d8>] (gic_configure_irq+0x64/0x7c)
[<c02fd2d8>] (gic_configure_irq) from [<c02fc98c>] (gic_set_type+0x48/0x60)
[<c02fc98c>] (gic_set_type) from [<c016f934>] (__irq_set_trigger+0x64/0x13c)
[<c016f934>] (__irq_set_trigger) from [<c016fd50>] (__setup_irq+0x344/0x5d8)
[<c016fd50>] (__setup_irq) from [<c01702d0>] (request_percpu_irq+0x98/0xe0)
[<c01702d0>] (request_percpu_irq) from [<c0802f84>] (twd_local_timer_common_register+0x38/0x1ac)
[<c0802f84>] (twd_local_timer_common_register) from [<c0803140>] (twd_local_timer_of_register+0x48/0x70)
[<c0803140>] (twd_local_timer_of_register) from [<c08180b4>] (clocksource_probe+0x48/0x88)
[<c08180b4>] (clocksource_probe) from [<c0800b04>] (start_kernel+0x250/0x374)
[<c0800b04>] (start_kernel) from [<4000807c>] (0x4000807c)
---
 arch/arm/boot/dts/sh73a0.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index bf825ca4f6f7912a..3d41fb97689e6a49 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -43,7 +43,7 @@
 	timer@f0000600 {
 		compatible = "arm,cortex-a9-twd-timer";
 		reg = <0xf0000600 0x20>;
-		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
+		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
 		clocks = <&twd_clk>;
 	};
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] ARM: dts: r8a7779: Correct interrupt type for ARM TWD
  2016-03-18 10:19 [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD Geert Uytterhoeven
@ 2016-03-18 10:19   ` Geert Uytterhoeven
  2016-03-18 10:19   ` Geert Uytterhoeven
  2016-03-22  1:28   ` Simon Horman
  2 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-18 10:19 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Jon Hunter
  Cc: linux-renesas-soc, devicetree, linux-arm-kernel, Geert Uytterhoeven

The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
the ARM GIC documentation, whether the type for PPIs can be set is
IMPLEMENTATION DEFINED.

For R-Car H1 devices the PPI type cannot be set, and so when we attempt
to set the type for the ARM TWD interrupt it fails.  This has gone
unnoticed because it fails silently, and because we cannot re-configure
the type it has had no impact. Nevertheless fix the type for the TWD
interrupt so that it matches the hardware configuration.

Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if setting the
interrupt type fails":

WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.5.0-marzen-00426-g226dd0f378de2fe5-dirty #87
Hardware name: Generic R8A7779 (Flattened Device Tree)
[<c010fb54>] (unwind_backtrace) from [<c010b614>] (show_stack+0x10/0x14)
[<c010b614>] (show_stack) from [<c02f362c>] (dump_stack+0xa4/0xdc)
[<c02f362c>] (dump_stack) from [<c0121d88>] (warn_slowpath_common+0x84/0xb0)
[<c0121d88>] (warn_slowpath_common) from [<c0121e44>] (warn_slowpath_null+0x18/0x20)
[<c0121e44>] (warn_slowpath_null) from [<c03171cc>] (gic_configure_irq+0x64/0x7c)
[<c03171cc>] (gic_configure_irq) from [<c0316878>] (gic_set_type+0x48/0x60)
[<c0316878>] (gic_set_type) from [<c016fa98>] (__irq_set_trigger+0xac/0x17c)
[<c016fa98>] (__irq_set_trigger) from [<c016feac>] (__setup_irq+0x344/0x5d8)
[<c016feac>] (__setup_irq) from [<c017042c>] (request_percpu_irq+0x98/0xe0)
[<c017042c>] (request_percpu_irq) from [<c0804dd8>] (twd_local_timer_common_register+0x38/0x1ac)
[<c0804dd8>] (twd_local_timer_common_register) from [<c0804f94>] (twd_local_timer_of_register+0x48/0x70)
[<c0804f94>] (twd_local_timer_of_register) from [<c081c04c>] (clocksource_probe+0x48/0x88)
[<c081c04c>] (clocksource_probe) from [<c0800b14>] (start_kernel+0x24c/0x3cc)
[<c0800b14>] (start_kernel) from [<6000807c>] (0x6000807c)
---
 arch/arm/boot/dts/r8a7779.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi
index 540f3c57a7b32356..2581363879d9dfff 100644
--- a/arch/arm/boot/dts/r8a7779.dtsi
+++ b/arch/arm/boot/dts/r8a7779.dtsi
@@ -71,7 +71,7 @@
 		compatible = "arm,cortex-a9-twd-timer";
 		reg = <0xf0000600 0x20>;
 		interrupts = <GIC_PPI 13
-			(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
+			(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
 		clocks = <&cpg_clocks R8A7779_CLK_ZS>;
 	};
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] ARM: dts: r8a7779: Correct interrupt type for ARM TWD
@ 2016-03-18 10:19   ` Geert Uytterhoeven
  0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-18 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
the ARM GIC documentation, whether the type for PPIs can be set is
IMPLEMENTATION DEFINED.

For R-Car H1 devices the PPI type cannot be set, and so when we attempt
to set the type for the ARM TWD interrupt it fails.  This has gone
unnoticed because it fails silently, and because we cannot re-configure
the type it has had no impact. Nevertheless fix the type for the TWD
interrupt so that it matches the hardware configuration.

Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if setting the
interrupt type fails":

WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.5.0-marzen-00426-g226dd0f378de2fe5-dirty #87
Hardware name: Generic R8A7779 (Flattened Device Tree)
[<c010fb54>] (unwind_backtrace) from [<c010b614>] (show_stack+0x10/0x14)
[<c010b614>] (show_stack) from [<c02f362c>] (dump_stack+0xa4/0xdc)
[<c02f362c>] (dump_stack) from [<c0121d88>] (warn_slowpath_common+0x84/0xb0)
[<c0121d88>] (warn_slowpath_common) from [<c0121e44>] (warn_slowpath_null+0x18/0x20)
[<c0121e44>] (warn_slowpath_null) from [<c03171cc>] (gic_configure_irq+0x64/0x7c)
[<c03171cc>] (gic_configure_irq) from [<c0316878>] (gic_set_type+0x48/0x60)
[<c0316878>] (gic_set_type) from [<c016fa98>] (__irq_set_trigger+0xac/0x17c)
[<c016fa98>] (__irq_set_trigger) from [<c016feac>] (__setup_irq+0x344/0x5d8)
[<c016feac>] (__setup_irq) from [<c017042c>] (request_percpu_irq+0x98/0xe0)
[<c017042c>] (request_percpu_irq) from [<c0804dd8>] (twd_local_timer_common_register+0x38/0x1ac)
[<c0804dd8>] (twd_local_timer_common_register) from [<c0804f94>] (twd_local_timer_of_register+0x48/0x70)
[<c0804f94>] (twd_local_timer_of_register) from [<c081c04c>] (clocksource_probe+0x48/0x88)
[<c081c04c>] (clocksource_probe) from [<c0800b14>] (start_kernel+0x24c/0x3cc)
[<c0800b14>] (start_kernel) from [<6000807c>] (0x6000807c)
---
 arch/arm/boot/dts/r8a7779.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi
index 540f3c57a7b32356..2581363879d9dfff 100644
--- a/arch/arm/boot/dts/r8a7779.dtsi
+++ b/arch/arm/boot/dts/r8a7779.dtsi
@@ -71,7 +71,7 @@
 		compatible = "arm,cortex-a9-twd-timer";
 		reg = <0xf0000600 0x20>;
 		interrupts = <GIC_PPI 13
-			(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
+			(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
 		clocks = <&cpg_clocks R8A7779_CLK_ZS>;
 	};
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
  2016-03-18 10:19 [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD Geert Uytterhoeven
@ 2016-03-22  1:28   ` Simon Horman
  2016-03-18 10:19   ` Geert Uytterhoeven
  2016-03-22  1:28   ` Simon Horman
  2 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2016-03-22  1:28 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Magnus Damm, Jon Hunter, linux-renesas-soc, devicetree, linux-arm-kernel

Hi Geert,

On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus, Jon,
> 
> This patch series corrects the interrupt type for ARM TWD timers on
> SH-Mobile AG5 and R-Car H1.
> 
> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
> the ARM GIC documentation, whether the type for PPIs can be set is
> IMPLEMENTATION DEFINED.
> 
> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
> so when we attempt to set the type for the ARM TWD interrupt it fails.
> This has gone unnoticed because it fails silently, and because we cannot
> re-configure the type it has had no impact. Nevertheless fix the type
> for the TWD interrupt so that it matches the hardware configuration.
> 
> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
> which triggers:
> 
>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
> 
> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
> R-Car Gen2, and R-Car Gen3) seem to be fine.
> 
> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Thanks for this. Do you think it would be best to queue these up
for v4.7 or as fixes for v4.6?

> Thanks!
> 
> Geert Uytterhoeven (2):
>   ARM: dts: sh73a0: Correct interrupt type for ARM TWD
>   ARM: dts: r8a7779: Correct interrupt type for ARM TWD
> 
>  arch/arm/boot/dts/r8a7779.dtsi | 2 +-
>  arch/arm/boot/dts/sh73a0.dtsi  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> -- 
> 1.9.1
> 
> Gr{oetje,eeting}s,
> 
> 						Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> 							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
@ 2016-03-22  1:28   ` Simon Horman
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2016-03-22  1:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Geert,

On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus, Jon,
> 
> This patch series corrects the interrupt type for ARM TWD timers on
> SH-Mobile AG5 and R-Car H1.
> 
> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
> the ARM GIC documentation, whether the type for PPIs can be set is
> IMPLEMENTATION DEFINED.
> 
> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
> so when we attempt to set the type for the ARM TWD interrupt it fails.
> This has gone unnoticed because it fails silently, and because we cannot
> re-configure the type it has had no impact. Nevertheless fix the type
> for the TWD interrupt so that it matches the hardware configuration.
> 
> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
> which triggers:
> 
>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
> 
> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
> R-Car Gen2, and R-Car Gen3) seem to be fine.
> 
> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Thanks for this. Do you think it would be best to queue these up
for v4.7 or as fixes for v4.6?

> Thanks!
> 
> Geert Uytterhoeven (2):
>   ARM: dts: sh73a0: Correct interrupt type for ARM TWD
>   ARM: dts: r8a7779: Correct interrupt type for ARM TWD
> 
>  arch/arm/boot/dts/r8a7779.dtsi | 2 +-
>  arch/arm/boot/dts/sh73a0.dtsi  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> -- 
> 1.9.1
> 
> Gr{oetje,eeting}s,
> 
> 						Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> 							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
  2016-03-22  1:28   ` Simon Horman
@ 2016-03-22  8:43     ` Geert Uytterhoeven
  -1 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-22  8:43 UTC (permalink / raw)
  To: Simon Horman
  Cc: Geert Uytterhoeven, Magnus Damm, Jon Hunter, linux-renesas-soc,
	devicetree, linux-arm-kernel

Hi Simon,

On Tue, Mar 22, 2016 at 2:28 AM, Simon Horman <horms@verge.net.au> wrote:
> On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
>> This patch series corrects the interrupt type for ARM TWD timers on
>> SH-Mobile AG5 and R-Car H1.
>>
>> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
>> the ARM GIC documentation, whether the type for PPIs can be set is
>> IMPLEMENTATION DEFINED.
>>
>> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
>> so when we attempt to set the type for the ARM TWD interrupt it fails.
>> This has gone unnoticed because it fails silently, and because we cannot
>> re-configure the type it has had no impact. Nevertheless fix the type
>> for the TWD interrupt so that it matches the hardware configuration.
>>
>> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
>> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
>> which triggers:
>>
>>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
>>
>> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
>> R-Car Gen2, and R-Car Gen3) seem to be fine.
>>
>> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.
>
> Thanks for this. Do you think it would be best to queue these up
> for v4.7 or as fixes for v4.6?

I don't know if/when Jon's patch will go in, but he's tracking the fixes for
various SoCs, as we don't know yet how many are affected.

So I think it's basically up to you.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
@ 2016-03-22  8:43     ` Geert Uytterhoeven
  0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-03-22  8:43 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Simon,

On Tue, Mar 22, 2016 at 2:28 AM, Simon Horman <horms@verge.net.au> wrote:
> On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
>> This patch series corrects the interrupt type for ARM TWD timers on
>> SH-Mobile AG5 and R-Car H1.
>>
>> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
>> the ARM GIC documentation, whether the type for PPIs can be set is
>> IMPLEMENTATION DEFINED.
>>
>> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
>> so when we attempt to set the type for the ARM TWD interrupt it fails.
>> This has gone unnoticed because it fails silently, and because we cannot
>> re-configure the type it has had no impact. Nevertheless fix the type
>> for the TWD interrupt so that it matches the hardware configuration.
>>
>> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
>> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
>> which triggers:
>>
>>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
>>
>> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
>> R-Car Gen2, and R-Car Gen3) seem to be fine.
>>
>> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.
>
> Thanks for this. Do you think it would be best to queue these up
> for v4.7 or as fixes for v4.6?

I don't know if/when Jon's patch will go in, but he's tracking the fixes for
various SoCs, as we don't know yet how many are affected.

So I think it's basically up to you.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
  2016-03-22  8:43     ` Geert Uytterhoeven
@ 2016-03-23  0:48       ` Simon Horman
  -1 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2016-03-23  0:48 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Geert Uytterhoeven, Magnus Damm, Jon Hunter, linux-renesas-soc,
	devicetree, linux-arm-kernel

On Tue, Mar 22, 2016 at 09:43:40AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Tue, Mar 22, 2016 at 2:28 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
> >> This patch series corrects the interrupt type for ARM TWD timers on
> >> SH-Mobile AG5 and R-Car H1.
> >>
> >> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
> >> the ARM GIC documentation, whether the type for PPIs can be set is
> >> IMPLEMENTATION DEFINED.
> >>
> >> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
> >> so when we attempt to set the type for the ARM TWD interrupt it fails.
> >> This has gone unnoticed because it fails silently, and because we cannot
> >> re-configure the type it has had no impact. Nevertheless fix the type
> >> for the TWD interrupt so that it matches the hardware configuration.
> >>
> >> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
> >> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
> >> which triggers:
> >>
> >>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
> >>
> >> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
> >> R-Car Gen2, and R-Car Gen3) seem to be fine.
> >>
> >> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.
> >
> > Thanks for this. Do you think it would be best to queue these up
> > for v4.7 or as fixes for v4.6?
> 
> I don't know if/when Jon's patch will go in, but he's tracking the fixes for
> various SoCs, as we don't know yet how many are affected.
> 
> So I think it's basically up to you.

Thanks, got it.
I will tentatively queue them up for v4.7.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD
@ 2016-03-23  0:48       ` Simon Horman
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2016-03-23  0:48 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 22, 2016 at 09:43:40AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Tue, Mar 22, 2016 at 2:28 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Fri, Mar 18, 2016 at 11:19:19AM +0100, Geert Uytterhoeven wrote:
> >> This patch series corrects the interrupt type for ARM TWD timers on
> >> SH-Mobile AG5 and R-Car H1.
> >>
> >> The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
> >> the ARM GIC documentation, whether the type for PPIs can be set is
> >> IMPLEMENTATION DEFINED.
> >>
> >> For SH-Mobile AG5 and R-Car H1 devices the PPI type cannot be set, and
> >> so when we attempt to set the type for the ARM TWD interrupt it fails.
> >> This has gone unnoticed because it fails silently, and because we cannot
> >> re-configure the type it has had no impact. Nevertheless fix the type
> >> for the TWD interrupt so that it matches the hardware configuration.
> >>
> >> This was exposed by Jon Hunter's "[PATCH 04/15] irqchip/gic: WARN if
> >> setting the interrupt type fails" (https://lkml.org/lkml/2016/3/17/339),
> >> which triggers:
> >>
> >>     WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-common.c:61 gic_configure_irq+0x64/0x7c()
> >>
> >> Other Renesas SoCs using private peripheral interrupts (R-Mobile APE6,
> >> R-Car Gen2, and R-Car Gen3) seem to be fine.
> >>
> >> Based on patches by Jon Hunter for Tegra20/30 and OMAP4.
> >
> > Thanks for this. Do you think it would be best to queue these up
> > for v4.7 or as fixes for v4.6?
> 
> I don't know if/when Jon's patch will go in, but he's tracking the fixes for
> various SoCs, as we don't know yet how many are affected.
> 
> So I think it's basically up to you.

Thanks, got it.
I will tentatively queue them up for v4.7.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-23  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 10:19 [PATCH 0/2] ARM: dts: shmobile: Correct interrupt type for ARM TWD Geert Uytterhoeven
2016-03-18 10:19 ` [PATCH 1/2] ARM: dts: sh73a0: " Geert Uytterhoeven
2016-03-18 10:19 ` [PATCH 2/2] ARM: dts: r8a7779: " Geert Uytterhoeven
2016-03-18 10:19   ` Geert Uytterhoeven
2016-03-22  1:28 ` [PATCH 0/2] ARM: dts: shmobile: " Simon Horman
2016-03-22  1:28   ` Simon Horman
2016-03-22  8:43   ` Geert Uytterhoeven
2016-03-22  8:43     ` Geert Uytterhoeven
2016-03-23  0:48     ` Simon Horman
2016-03-23  0:48       ` Simon Horman

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.