2017-11-08 07:39:17

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: NSP: Fix PPI interrupt types

On 11/07/2017 02:28 PM, Florian Fainelli wrote:
> Booting a kernel results in the kernel warning us about the following
> PPI interrupts configuration:
> [ 0.105127] smp: Bringing up secondary CPUs ...
> [ 0.110545] GIC: PPI11 is secure or misconfigured
> [ 0.110551] GIC: PPI13 is secure or misconfigured
>
> Fix this by using the appropriate edge configuration for PPI11 and
> PPI13, this is similar to what was fixed for Northstar (BCM5301X) in
> commit 0e34079cd1f6 ("ARM: dts: BCM5301X: Correct GIC_PPI interrupt
> flags").
>
> Fixes: 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")

this should have been Fixes: 7b2e987de207 ("ARM: NSP: add minimal
Northstar Plus device tree"), I can fix that up while applying unless
there are other comments.

> Fixes: 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
> Signed-off-by: Florian Fainelli <[email protected]>
> ---
> arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
> index dff66974feed..d5f5e92e7488 100644
> --- a/arch/arm/boot/dts/bcm-nsp.dtsi
> +++ b/arch/arm/boot/dts/bcm-nsp.dtsi
> @@ -85,7 +85,7 @@
> timer@20200 {
> compatible = "arm,cortex-a9-global-timer";
> reg = <0x20200 0x100>;
> - interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
> + interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
> clocks = <&periph_clk>;
> };
>
> @@ -93,7 +93,7 @@
> compatible = "arm,cortex-a9-twd-timer";
> reg = <0x20600 0x20>;
> interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
> - IRQ_TYPE_LEVEL_HIGH)>;
> + IRQ_TYPE_EDGE_RISING)>;
> clocks = <&periph_clk>;
> };
>
>


--
Florian

From 1583465709704494695@xxx Wed Nov 08 03:09:38 +0000 2017
X-GM-THRID: 1583465557444551943
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread


2017-11-08 03:09:38

by Jon Mason

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: NSP: Fix PPI interrupt types

On Tue, Nov 7, 2017 at 5:30 PM, Florian Fainelli <[email protected]> wrote:
> On 11/07/2017 02:28 PM, Florian Fainelli wrote:
>> Booting a kernel results in the kernel warning us about the following
>> PPI interrupts configuration:
>> [ 0.105127] smp: Bringing up secondary CPUs ...
>> [ 0.110545] GIC: PPI11 is secure or misconfigured
>> [ 0.110551] GIC: PPI13 is secure or misconfigured
>>
>> Fix this by using the appropriate edge configuration for PPI11 and
>> PPI13, this is similar to what was fixed for Northstar (BCM5301X) in
>> commit 0e34079cd1f6 ("ARM: dts: BCM5301X: Correct GIC_PPI interrupt
>> flags").
>>
>> Fixes: 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
>
> this should have been Fixes: 7b2e987de207 ("ARM: NSP: add minimal
> Northstar Plus device tree"), I can fix that up while applying unless
> there are other comments.
>
>> Fixes: 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
>> Signed-off-by: Florian Fainelli <[email protected]>

Acked-by: Jon Mason <[email protected]>

>> ---
>> arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
>> index dff66974feed..d5f5e92e7488 100644
>> --- a/arch/arm/boot/dts/bcm-nsp.dtsi
>> +++ b/arch/arm/boot/dts/bcm-nsp.dtsi
>> @@ -85,7 +85,7 @@
>> timer@20200 {
>> compatible = "arm,cortex-a9-global-timer";
>> reg = <0x20200 0x100>;
>> - interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
>> + interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
>> clocks = <&periph_clk>;
>> };
>>
>> @@ -93,7 +93,7 @@
>> compatible = "arm,cortex-a9-twd-timer";
>> reg = <0x20600 0x20>;
>> interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
>> - IRQ_TYPE_LEVEL_HIGH)>;
>> + IRQ_TYPE_EDGE_RISING)>;
>> clocks = <&periph_clk>;
>> };
>>
>>
>
>
> --
> Florian

From 1583465557444551943@xxx Wed Nov 08 03:07:13 +0000 2017
X-GM-THRID: 1583465557444551943
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread