linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
@ 2021-02-17 15:30 Rui Salvaterra
  2021-02-17 15:42 ` Marek Behún
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Rui Salvaterra @ 2021-02-17 15:30 UTC (permalink / raw)
  To: andrew, gregory.clement, kabel
  Cc: linux-arm-kernel, devicetree, linux-kernel, Rui Salvaterra

Hardware buffer management has never worked on the Turris Omnia, as the
required MBus window hadn't been reserved. Fix thusly.

Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management")

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
---
 arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts
index 646a06420c77..dc80a909ea88 100644
--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
+++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
@@ -32,7 +32,8 @@ soc {
 		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
 			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
 			  MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
-			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
+			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
+			  MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
 
 		internal-regs {
 
-- 
2.30.1


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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
@ 2021-02-17 15:42 ` Marek Behún
  2021-02-17 15:44   ` Rui Salvaterra
  2021-02-17 16:02 ` Marek Behún
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Marek Behún @ 2021-02-17 15:42 UTC (permalink / raw)
  To: Rui Salvaterra
  Cc: andrew, gregory.clement, linux-arm-kernel, devicetree, linux-kernel

/o\ How did I manage to miss this?

Please wait a few minutes I am just going to do a fast compile and test.

Marek

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:42 ` Marek Behún
@ 2021-02-17 15:44   ` Rui Salvaterra
  0 siblings, 0 replies; 11+ messages in thread
From: Rui Salvaterra @ 2021-02-17 15:44 UTC (permalink / raw)
  To: Marek Behún
  Cc: andrew, gregory.clement, linux-arm-kernel, devicetree, linux-kernel

Hi, Marek,

On Wed, 17 Feb 2021 at 15:42, Marek Behún <kabel@kernel.org> wrote:
>
> /o\ How did I manage to miss this?

Heh… it happens. :)

> Please wait a few minutes I am just going to do a fast compile and test.

No worries. I'm going to cook a backport for OpenWrt.

Cheers,
Rui

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
  2021-02-17 15:42 ` Marek Behún
@ 2021-02-17 16:02 ` Marek Behún
  2021-02-17 16:10 ` Marek Behún
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Marek Behún @ 2021-02-17 16:02 UTC (permalink / raw)
  To: Rui Salvaterra
  Cc: andrew, gregory.clement, linux-arm-kernel, devicetree, linux-kernel

On Wed, 17 Feb 2021 15:30:38 +0000
Rui Salvaterra <rsalvaterra@gmail.com> wrote:

> Hardware buffer management has never worked on the Turris Omnia, as the
> required MBus window hadn't been reserved. Fix thusly.
> 
> Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management")
> 
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Reviewed-by: Marek Behún <kabel@kernel.org>

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
  2021-02-17 15:42 ` Marek Behún
  2021-02-17 16:02 ` Marek Behún
@ 2021-02-17 16:10 ` Marek Behún
  2021-02-17 16:12   ` Rui Salvaterra
  2021-02-17 16:22 ` Andrew Lunn
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Marek Behún @ 2021-02-17 16:10 UTC (permalink / raw)
  To: Rui Salvaterra, gregory.clement
  Cc: andrew, linux-arm-kernel, devicetree, linux-kernel

Rui, in the future make the subject prefix
  [PATCH mvebu-dt]
or
  [PATCH mvebu/dt]

so that Gregory knows its for him and for which branch.

Marek

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 16:10 ` Marek Behún
@ 2021-02-17 16:12   ` Rui Salvaterra
  0 siblings, 0 replies; 11+ messages in thread
From: Rui Salvaterra @ 2021-02-17 16:12 UTC (permalink / raw)
  To: Marek Behún
  Cc: gregory.clement, andrew, linux-arm-kernel, devicetree, linux-kernel

Hi again, Marek,

On Wed, 17 Feb 2021 at 16:10, Marek Behún <kabel@kernel.org> wrote:
>
> Rui, in the future make the subject prefix
>   [PATCH mvebu-dt]
> or
>   [PATCH mvebu/dt]
>
> so that Gregory knows its for him and for which branch.

Thanks, will do!

Cheers,
Rui

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
                   ` (2 preceding siblings ...)
  2021-02-17 16:10 ` Marek Behún
@ 2021-02-17 16:22 ` Andrew Lunn
  2021-02-17 16:27   ` Marek Behún
  2021-02-17 16:31   ` Rui Salvaterra
  2021-03-15 18:08 ` Klaus Kudielka
  2021-04-02 20:13 ` Gregory CLEMENT
  5 siblings, 2 replies; 11+ messages in thread
From: Andrew Lunn @ 2021-02-17 16:22 UTC (permalink / raw)
  To: Rui Salvaterra
  Cc: gregory.clement, kabel, linux-arm-kernel, devicetree, linux-kernel

On Wed, Feb 17, 2021 at 03:30:38PM +0000, Rui Salvaterra wrote:
> Hardware buffer management has never worked on the Turris Omnia, as the
> required MBus window hadn't been reserved. Fix thusly.

Hi Rui

I don't know all the details for the MBus Windows...

Can this be set once in armada-385.dtsi ?

Did you check the other dts files. Do any others have the same
problem?

    Andrew

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 16:22 ` Andrew Lunn
@ 2021-02-17 16:27   ` Marek Behún
  2021-02-17 16:31   ` Rui Salvaterra
  1 sibling, 0 replies; 11+ messages in thread
From: Marek Behún @ 2021-02-17 16:27 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Rui Salvaterra, gregory.clement, linux-arm-kernel, devicetree,
	linux-kernel

On Wed, 17 Feb 2021 17:22:17 +0100
Andrew Lunn <andrew@lunn.ch> wrote:

> On Wed, Feb 17, 2021 at 03:30:38PM +0000, Rui Salvaterra wrote:
> > Hardware buffer management has never worked on the Turris Omnia, as the
> > required MBus window hadn't been reserved. Fix thusly.  
> 
> Hi Rui
> 
> I don't know all the details for the MBus Windows...
> 
> Can this be set once in armada-385.dtsi ?
> 
> Did you check the other dts files. Do any others have the same
> problem?
> 
>     Andrew

armada-38x.dtsi defines only
  ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
for internal-regs.

It probably depends on how the mbus driver works.
If the mbus driver maps every window defined in ranges, regardless
whether they are used, then we do not want to put all windows in .dtsi
file.

Marek

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 16:22 ` Andrew Lunn
  2021-02-17 16:27   ` Marek Behún
@ 2021-02-17 16:31   ` Rui Salvaterra
  1 sibling, 0 replies; 11+ messages in thread
From: Rui Salvaterra @ 2021-02-17 16:31 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: gregory.clement, kabel, linux-arm-kernel, devicetree, linux-kernel

Hi, Andrew,

On Wed, 17 Feb 2021 at 16:22, Andrew Lunn <andrew@lunn.ch> wrote:
>
> Hi Rui
>
> I don't know all the details for the MBus Windows...

Neither do I, I just followed the examples in other device trees
(namely armada-385-linksys.dtsi). I wanted to get hardware buffer
management working on my Omnia, in OpenWrt, so I started digging. :)

> Can this be set once in armada-385.dtsi ?

If all SoCs support it, I don't see why not. However, I have to defer
to someone with experience on these systems.

> Did you check the other dts files. Do any others have the same
> problem?

I did a cursory grep, yes. I see a lot of .dts files with the correct
declaration, so probably aren't that many missing (if any at all,
anymore).

Thanks,
Rui

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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
                   ` (3 preceding siblings ...)
  2021-02-17 16:22 ` Andrew Lunn
@ 2021-03-15 18:08 ` Klaus Kudielka
  2021-04-02 20:13 ` Gregory CLEMENT
  5 siblings, 0 replies; 11+ messages in thread
From: Klaus Kudielka @ 2021-03-15 18:08 UTC (permalink / raw)
  To: Rui Salvaterra, andrew, gregory.clement, kabel
  Cc: devicetree, linux-kernel, linux-arm-kernel

On 17.02.21 16:30, Rui Salvaterra wrote:
> Hardware buffer management has never worked on the Turris Omnia, as the
> required MBus window hadn't been reserved. Fix thusly.
>
> Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management")
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Tested-by: Klaus Kudielka <klaus.kudielka@gmail.com>

(Without this patch, I get a bunch of error messages during 5.11 boot)


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

* Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management
  2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
                   ` (4 preceding siblings ...)
  2021-03-15 18:08 ` Klaus Kudielka
@ 2021-04-02 20:13 ` Gregory CLEMENT
  5 siblings, 0 replies; 11+ messages in thread
From: Gregory CLEMENT @ 2021-04-02 20:13 UTC (permalink / raw)
  To: Rui Salvaterra, andrew, kabel
  Cc: linux-arm-kernel, devicetree, linux-kernel, Rui Salvaterra

Hi Rui,

> Hardware buffer management has never worked on the Turris Omnia, as the
> required MBus window hadn't been reserved. Fix thusly.
>
> Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management")
>
> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Applied on mvebu/fixes

Thanks,

Gregory

> ---
>  arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts
> index 646a06420c77..dc80a909ea88 100644
> --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
> +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
> @@ -32,7 +32,8 @@ soc {
>  		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
>  			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
>  			  MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
> -			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
> +			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
> +			  MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
>  
>  		internal-regs {
>  
> -- 
> 2.30.1
>

-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

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

end of thread, other threads:[~2021-04-02 20:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 15:30 [PATCH] ARM: dts: turris-omnia: fix hardware buffer management Rui Salvaterra
2021-02-17 15:42 ` Marek Behún
2021-02-17 15:44   ` Rui Salvaterra
2021-02-17 16:02 ` Marek Behún
2021-02-17 16:10 ` Marek Behún
2021-02-17 16:12   ` Rui Salvaterra
2021-02-17 16:22 ` Andrew Lunn
2021-02-17 16:27   ` Marek Behún
2021-02-17 16:31   ` Rui Salvaterra
2021-03-15 18:08 ` Klaus Kudielka
2021-04-02 20:13 ` Gregory CLEMENT

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).