Message ID | 20210217155153.1068607-1-rsalvaterra@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | mvebu/omnia: enable hardware buffer management | expand |
Oops! Fat-fingered. I'll resend with a proper description. On Wed, 17 Feb 2021 at 15:52, Rui Salvaterra <rsalvaterra@gmail.com> wrote: > > Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> > --- > ...is-omnia-enable-HW-buffer-management.patch | 83 +++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch > > diff --git a/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch b/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch > new file mode 100644 > index 0000000000..3420edf075 > --- /dev/null > +++ b/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch > @@ -0,0 +1,83 @@ > +From 23f0ff99446cf27cdc73f794a9d767e6af05e11c Mon Sep 17 00:00:00 2001 > +From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org> > +Date: Sun, 15 Nov 2020 14:59:17 +0100 > +Subject: [PATCH 1/2] ARM: dts: turris-omnia: enable HW buffer management > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +The buffer manager is available on Turris Omnia but needs to be > +described in device-tree to be used. > + > +Signed-off-by: Marek Behún <kabel@kernel.org> > +Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") > +Cc: linux-arm-kernel@lists.infradead.org > +Cc: Uwe Kleine-König <uwe@kleine-koenig.org> > +Cc: Jason Cooper <jason@lakedaemon.net> > +Cc: Gregory CLEMENT <gregory.clement@bootlin.com> > +Cc: Andreas Färber <afaerber@suse.de> > +Cc: Andrew Lunn <andrew@lunn.ch> > +Cc: Rob Herring <robh+dt@kernel.org> > +Cc: devicetree@vger.kernel.org > +Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> > +Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> > +--- > + arch/arm/boot/dts/armada-385-turris-omnia.dts | 17 +++++++++++++++++ > + 1 file changed, 17 insertions(+) > + > +--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts > ++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts > +@@ -31,7 +31,8 @@ > + 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 { > + > +@@ -84,12 +85,23 @@ > + }; > + }; > + > ++&bm { > ++ status = "okay"; > ++}; > ++ > ++&bm_bppi { > ++ status = "okay"; > ++}; > ++ > + /* Connected to 88E6176 switch, port 6 */ > + ð0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&ge0_rgmii_pins>; > + status = "okay"; > + phy-mode = "rgmii"; > ++ buffer-manager = <&bm>; > ++ bm,pool-long = <0>; > ++ bm,pool-short = <3>; > + > + fixed-link { > + speed = <1000>; > +@@ -103,6 +115,9 @@ > + pinctrl-0 = <&ge1_rgmii_pins>; > + status = "okay"; > + phy-mode = "rgmii"; > ++ buffer-manager = <&bm>; > ++ bm,pool-long = <1>; > ++ bm,pool-short = <3>; > + > + fixed-link { > + speed = <1000>; > +@@ -115,6 +130,9 @@ > + status = "okay"; > + phy-mode = "sgmii"; > + phy = <&phy1>; > ++ buffer-manager = <&bm>; > ++ bm,pool-long = <2>; > ++ bm,pool-short = <3>; > + }; > + > + &i2c0 { > -- > 2.30.1 >
diff --git a/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch b/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch new file mode 100644 index 0000000000..3420edf075 --- /dev/null +++ b/target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch @@ -0,0 +1,83 @@ +From 23f0ff99446cf27cdc73f794a9d767e6af05e11c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org> +Date: Sun, 15 Nov 2020 14:59:17 +0100 +Subject: [PATCH 1/2] ARM: dts: turris-omnia: enable HW buffer management +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The buffer manager is available on Turris Omnia but needs to be +described in device-tree to be used. + +Signed-off-by: Marek Behún <kabel@kernel.org> +Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") +Cc: linux-arm-kernel@lists.infradead.org +Cc: Uwe Kleine-König <uwe@kleine-koenig.org> +Cc: Jason Cooper <jason@lakedaemon.net> +Cc: Gregory CLEMENT <gregory.clement@bootlin.com> +Cc: Andreas Färber <afaerber@suse.de> +Cc: Andrew Lunn <andrew@lunn.ch> +Cc: Rob Herring <robh+dt@kernel.org> +Cc: devicetree@vger.kernel.org +Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> +Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> +--- + arch/arm/boot/dts/armada-385-turris-omnia.dts | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts ++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts +@@ -31,7 +31,8 @@ + 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 { + +@@ -84,12 +85,23 @@ + }; + }; + ++&bm { ++ status = "okay"; ++}; ++ ++&bm_bppi { ++ status = "okay"; ++}; ++ + /* Connected to 88E6176 switch, port 6 */ + ð0 { + pinctrl-names = "default"; + pinctrl-0 = <&ge0_rgmii_pins>; + status = "okay"; + phy-mode = "rgmii"; ++ buffer-manager = <&bm>; ++ bm,pool-long = <0>; ++ bm,pool-short = <3>; + + fixed-link { + speed = <1000>; +@@ -103,6 +115,9 @@ + pinctrl-0 = <&ge1_rgmii_pins>; + status = "okay"; + phy-mode = "rgmii"; ++ buffer-manager = <&bm>; ++ bm,pool-long = <1>; ++ bm,pool-short = <3>; + + fixed-link { + speed = <1000>; +@@ -115,6 +130,9 @@ + status = "okay"; + phy-mode = "sgmii"; + phy = <&phy1>; ++ buffer-manager = <&bm>; ++ bm,pool-long = <2>; ++ bm,pool-short = <3>; + }; + + &i2c0 {
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> --- ...is-omnia-enable-HW-buffer-management.patch | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 target/linux/mvebu/patches-5.4/317-ARM-dts-turris-omnia-enable-HW-buffer-management.patch