arm64: rockchip: Initial GeekBox enablement
Subsystems (5)
v3 cover arm64: rockchip: Initial GeekBox enablement
Hello,
This series adds initial support for the RK3368 based GeekBox.
Since v2 almost a month has passed with none of the first patches getting queued despite Heiko offering to squash them himself, so here's a full update.
There were no more replies on the compatible string discussion for Landingship; I have now adopted Heiko's proposal of using "geekbuying,geekbox-landingship".
v3 does minor cleanups and starts squashing undisputed patches. The power button is still left separate, inserting cleanups to align all RK3368 boards at least.
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)
For v2 I may have screwed up testing the Landingship FDT; I now ran into this:
rk3x-i2c ff140000.i2c: using default SCL frequency: 100000
INFO: rcu_preempt detected stalls on CPUs/tasks:
1-...: (1 GPs behind) idle=481/140000000000000/0 softirq=130/131 fqs=5250
(detected by 7, t=5254 jiffies, g=-239, c=-240, q=90)
Task dump for CPU 1:
swapper/0 R running task 0 1 0 0x00000002
Call trace:
[<ffffff8008085c5c>] __switch_to+0xc4/0xd0
[<ffffff8008bc1000>] nonblocking_pool_data+0x20/0x80Keeping i2c1 disabled avoids that; i2c2 does not run into such problems. A quick git-grep shows that I'm the first actual user of i2c1 (and i2c2), so maybe something's wrong with clocks or pinctrl?
Regards,
Andreas
Andreas Färber (8):
Documentation: devicetree: Add vendor prefix for GeekBuying.com
Documentation: devicetree: rockchip: Document GeekBox
arm64: dts: rockchip: Add GeekBox config
Documentation: devicetree: Clean up gpio-keys example
arm64: dts: rockchip: Clean up gpio-keys nodes
arm64: dts: rockchip: Add power key to GeekBox
Documentation: devicetree: rockchip: Document Landingship
arm64: dts: rockchip: Add Landingship config
Documentation/devicetree/bindings/arm/rockchip.txt | 9 + .../devicetree/bindings/input/gpio-keys.txt | 2 - .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm64/boot/dts/rockchip/Makefile | 2 + arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi | 5 +- .../dts/rockchip/rk3368-geekbox-landingship.dts | 57 ++++ arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 319 +++++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 5 +- 8 files changed, 392 insertions(+), 8 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts
Signature · 6 lines
2.6.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v3 1/8 Documentation: devicetree: Add vendor prefix for GeekBuying.com
Use "geekbuying".
---
v2 -> v3:
* Rebased (ge vs. geekbuying)
v2: New (Heiko)
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -90,6 +90,7 @@ firefly Firefly focaltech FocalTech Systems Co.,Ltd fsl Freescale Semiconductor ge General Electric Company +geekbuying GeekBuying GEFanuc GE Fanuc Intelligent Platforms Embedded Systems, Inc. gef GE Fanuc Intelligent Platforms Embedded Systems, Inc. geniatech Geniatech, Inc.
Signature · 6 lines
2.6.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v3 2/8 Documentation: devicetree: rockchip: Document GeekBox
In reply to Andreas FärberUse "geekbuying,geekbox" compatible string.
---
v2 -> v3: Unchanged
v2: New (Heiko)
Documentation/devicetree/bindings/arm/rockchip.txt | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.txt +4 -0
@@ -87,6 +87,10 @@ Rockchip platforms device tree bindings "google,veyron-speedy-rev3", "google,veyron-speedy-rev2", "google,veyron-speedy", "google,veyron", "rockchip,rk3288"; +- GeekBuying GeekBox: + Required root node properties: + - compatible = "geekbuying,geekbox", "rockchip,rk3368"; + - Rockchip RK3368 evb: Required root node properties: - compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368";
Signature · 1 line
2.6.2
PATCH v3 3/8 arm64: dts: rockchip: Add GeekBox config
In reply to Andreas FärberThe GeekBox contains an MXM3 module with a Rockchip RK3368 SoC. Some connectors are available directly on the module.
This adds initial support, namely serial, USB, GMAC, eMMC, IR and TSADC.
---
v2 -> v3:
* Squashed GMAC, eMMC, IR, TSADC (Heiko)
* Fixed IR pinctrl pull setting (Julien)
* Changed TSADC polarity (rebooted immediately due to fixed otp-out pin)
v1 -> v2:
* Dropped rk3368-geekbox.dtsi. rk3368-geekbox-landingship.dts can #include "rk3368-geekbox.dts" just fine, when leaving out /dts-v1/;.
* Revisited always-on / boot-on for PMIC regulator nodes. (Heiko)
* Switched pmic-sleep from RK_FUNC_GPIO to RK_FUNC_2. (schematics)
arch/arm64/boot/dts/rockchip/Makefile | 1 + arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 299 ++++++++++++++++++++++++ 2 files changed, 300 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -1,4 +1,5 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb always := $(dtb-y)
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts new file +299 -0
299 lines not on this page · raw message
Signature · 1 line
2.6.2
PATCH v3 4/8 Documentation: devicetree: Clean up gpio-keys example
In reply to Andreas FärberDrop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
---
v3: New (Julien)
Documentation/devicetree/bindings/input/gpio-keys.txt | 2 -- 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/input/gpio-keys.txt +0 -2
@@ -34,8 +34,6 @@ Example nodes: gpio_keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; button@21 { label = "GPIO Key UP";
Signature · 6 lines
2.6.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Heiko Stübner
maintainerRe: [PATCH v3 4/8] Documentation: devicetree: Clean up gpio-keys example
Am Sonntag, 6. März 2016, 20:53:53 schrieb Andreas Färber:
Quoted 6 lines
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Reported-by Julien Chauveau <[email protected]>Signed-off-by Andreas Färber <[email protected]>---
changes to input-device bindings should go through the input tree, and thus include Dmitry Thorokhov and the linux-input lists.
Heiko
Quoted 19 lines
v3: New (Julien)
Documentation/devicetree/bindings/input/gpio-keys.txt | 2 -- 1 file changed, 2 deletions(-)(quoted diff) +0
-0
b/Documentation/devicetree/bindings/input/gpio-keys.txtindex21641236c095..1552a11f6786100644Documentation/devicetree/bindings/input/gpio-keys.txt +0
-2@@ -34,8 +34,6 @@ Example nodes: gpio_keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; button@21 { label = "GPIO Key UP";
Re: [PATCH v3 4/8] Documentation: devicetree: Clean up gpio-keys example
Am 07.03.2016 um 19:05 schrieb Heiko Stübner:
Quoted 10 lines
Am Sonntag, 6. März 2016, 20:53:53 schrieb Andreas Färber:
Quoted 6 lines
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Reported-by Julien Chauveau <[email protected]>Signed-off-by Andreas Färber <[email protected]>---
changes to input-device bindings should go through the input tree, and thus include Dmitry Thorokhov and the linux-input lists.
Thanks for noticing, MAINTAINERS update proposed and resent this patch using it.
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
PATCH v3 5/8 arm64: dts: rockchip: Clean up gpio-keys nodes
In reply to Andreas FärberDrop superfluous #address-cells and #size-cells.
Use KEY_POWER define for 116.
---
v3: New (Julien)
arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi | 5 ++--- arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi +2 -3
@@ -40,6 +40,7 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include <dt-bindings/input/input.h> #include <dt-bindings/pwm/pwm.h> #include "rk3368.dtsi"
@@ -105,8 +106,6 @@ keys: gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pwr_key>;
@@ -114,7 +113,7 @@ wakeup-source; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "GPIO Power"; - linux,code = <116>; + linux,code = <KEY_POWER>; }; };
arch/arm64/boot/dts/rockchip/rk3368-r88.dts +2 -3
@@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "Rockchip R88";
@@ -65,8 +66,6 @@ keys: gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pwr_key>;
@@ -74,7 +73,7 @@ wakeup-source; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "GPIO Power"; - linux,code = <116>; + linux,code = <KEY_POWER>; }; };
Signature · 1 line
2.6.2
PATCH v3 6/8 arm64: dts: rockchip: Add power key to GeekBox
In reply to Andreas Färber---
v2 -> v3:
* Adopted wakeup-source instead of gpio-key,wakeup (Julien)
* Dropped gpio-keys #address-cells and #size-cells properties (Julien)
* Dropped power button reg property (Julien)
* Adopted KEY_POWER (Julien)
* Fixed power button pinctrl pull setting (Julien)
v2: New
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +20 -0
@@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "GeekBox";
@@ -70,6 +71,19 @@ pinctrl-0 = <&ir_int>; }; + keys: gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + button at 0 { + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = <KEY_POWER>; + wakeup-source; + }; + }; + leds: gpio-leds { compatible = "gpio-leds";
@@ -265,6 +279,12 @@ }; }; + keys { + pwr_key: pwr-key { + rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_sleep: pmic-sleep { rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
Signature · 1 line
2.6.2
Re: [PATCH v3 6/8] arm64: dts: rockchip: Add power key to GeekBox
Quoted 30 lines
Le 6 mars 2016 ? 20:53, Andreas F?rber <[email protected]> a ?crit :
Signed-off-by Andreas F?rber <[email protected]>---
v2 -> v3:
* Adopted wakeup-source instead of gpio-key,wakeup (Julien)
* Dropped gpio-keys #address-cells and #size-cells properties (Julien)
* Dropped power button reg property (Julien)
* AdoptedKEY_POWER(Julien)
* Fixed power button pinctrl pull setting (Julien)v2: New
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts| 20 ++++++++++++++++++++1 file changed, 20 insertions(+)arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "GeekBox";
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 74
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -70,6 +71,19 @@ pinctrl-0 = <&ir_int>; }; + keys: gpio-keys {
I think you don't need the "keys" label, because there?s no phandle that refers to this.
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 79
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +5
-0+ compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + button at 0 {
Here you should use "power" instead of "button at 0".
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 82
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +3
-0+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = <KEY_POWER>;
According to Documentation/input/event-codes.txt, there?s a special event type for the power button. Should we use it here for that purpose?
linux,input-type = <EV_PWR>
Quoted 23 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +10
-0+ wakeup-source; + }; + }; + leds: gpio-leds { compatible = "gpio-leds";@@ -265,6 +279,12 @@ }; }; + keys { + pwr_key: pwr-key { + rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_sleep: pmic-sleep { rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;Signature · 1 line
2.6.2
Re: [PATCH v3 6/8] arm64: dts: rockchip: Add power key to GeekBox
Am 11.03.2016 um 00:04 schrieb Julien Chauveau:
Quoted 32 lines
Quoted 32 lines
Le 6 mars 2016 ? 20:53, Andreas F?rber <[email protected]> a ?crit :
Signed-off-by Andreas F?rber <[email protected]>---
v2 -> v3:
* Adopted wakeup-source instead of gpio-key,wakeup (Julien)
* Dropped gpio-keys #address-cells and #size-cells properties (Julien)
* Dropped power button reg property (Julien)
* AdoptedKEY_POWER(Julien)
* Fixed power button pinctrl pull setting (Julien)v2: New
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts| 20 ++++++++++++++++++++1 file changed, 20 insertions(+)arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "GeekBox";@@ -70,6 +71,19 @@ pinctrl-0 = <&ir_int>; };
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 74
Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0+ keys: gpio-keys {I think you don't need the "keys" label, because there?s no phandle that refers to this.
As discussed elsewhere, there are four additional keys on the Landingship (you proposed as sub-node names key1-key4). I prefer preparing the label now over adding it in a later patch.
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 79
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +5
-0+ compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + button at 0 {Here you should use "power" instead of "button at 0".
Done.
Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 82
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +3
-0+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = <KEY_POWER>;According to
Documentation/input/event-codes.txt, there?s a special event type for the power button. Should we use it here for that purpose?linux,input-type = <
EV_PWR>
The other RK3368 boards don't, so unless you can give a justification to convert all boards yet again and test how this makes a difference, I'd rather not do experiments here but leave that to someone who knows what they're doing and then do it consistently...
Thanks for the detailed review,
Andreas
Quoted 20 lines
Quoted 20 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +10
-0+ wakeup-source; + }; + }; + leds: gpio-leds { compatible = "gpio-leds";@@ -265,6 +279,12 @@ }; }; + keys { + pwr_key: pwr-key { + rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_sleep: pmic-sleep { rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
Re: [PATCH v3 6/8] arm64: dts: rockchip: Add power key to GeekBox
Am 16.03.2016 um 11:58 schrieb Andreas F?rber:
Quoted 6 lines
Am 11.03.2016 um 00:04 schrieb Julien Chauveau:
Quoted 5 lines
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -70,6 +71,19 @@ pinctrl-0 = <&ir_int>; }; + keys: gpio-keys {
[...]
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +5
-0+ compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + button at 0 {
[...]
Quoted 7 lines
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 82
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +3
-0+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = <KEY_POWER>;According to
Documentation/input/event-codes.txt, there?s a special event type for the power button. Should we use it here for that purpose?
Quoted 6 lines
Quoted 1 line
linux,input-type = <
EV_PWR>The other RK3368 boards don't, so unless you can give a justification to convert all boards yet again and test how this makes a difference, I'd rather not do experiments here but leave that to someone who knows what they're doing and then do it consistently...
For the record here's an evtest log:
geekbox:~ # evtest
No device specified, trying to scan all of /dev/input/event* Available devices:
/dev/input/event0: gpio_ir_recv /dev/input/event1: MCE IR Keyboard/Mouse (gpio-rc-recv) /dev/input/event2: gpio-keys
Select the device event number [0-2]: 2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 Input device name: "gpio-keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1458136008.850429, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1458136008.850429, -------------- SYN_REPORT ------------
systemd then goes on to shut down the system cleanly.
Regards,
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
Re: [PATCH v3 6/8] arm64: dts: rockchip: Add power key to GeekBox
In reply to Andreas FärberQuoted 30 lines
Le 6 mars 2016 ? 20:53, Andreas F?rber <[email protected]> a ?crit :
Signed-off-by Andreas F?rber <[email protected]>---
v2 -> v3:
* Adopted wakeup-source instead of gpio-key,wakeup (Julien)
* Dropped gpio-keys #address-cells and #size-cells properties (Julien)
* Dropped power button reg property (Julien)
* AdoptedKEY_POWER(Julien)
* Fixed power button pinctrl pull setting (Julien)v2: New
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts| 20 ++++++++++++++++++++1 file changed, 20 insertions(+)arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "GeekBox";
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 74
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +1
-0@@ -70,6 +71,19 @@ pinctrl-0 = <&ir_int>; }; + keys: gpio-keys {
I think you don't need the "keys" label, because there?s no phandle that refers to this.
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 79
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +5
-0+ compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + button at 0 {
Here you should use "power" instead of "button at 0".
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts line 82
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +3
-0+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = <KEY_POWER>;
According to Documentation/input/event-codes.txt, there?s a special event type for the power button. Should we use it here for that purpose?
linux,input-type = <EV_PWR>
Quoted 23 lines
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +10
-0+ wakeup-source; + }; + }; + leds: gpio-leds { compatible = "gpio-leds";@@ -265,6 +279,12 @@ }; }; + keys { + pwr_key: pwr-key { + rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_sleep: pmic-sleep { rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;Signature · 1 line
2.6.2
PATCH v3 7/8 Documentation: devicetree: rockchip: Document Landingship
In reply to Andreas FärberUse "geekbuying,geekbox-landingship" compatible string, plus those of the GeekBox module.
---
v2 -> v3:
* Changed compatible string to include geekbox- (Heiko) and clarify that this is for GeekBox module
v2: New
Documentation/devicetree/bindings/arm/rockchip.txt | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.txt +5 -0
@@ -91,6 +91,11 @@ Rockchip platforms device tree bindings Required root node properties: - compatible = "geekbuying,geekbox", "rockchip,rk3368"; +- GeekBuying Landingship with GeekBox module: + Required root node properties: + - compatible = "geekbuying,geekbox-landingship", + "geekbuying,geekbox", "rockchip,rk3368"; + - Rockchip RK3368 evb: Required root node properties: - compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368";
Signature · 1 line
2.6.2
Re: [PATCH v3 7/8] Documentation: devicetree: rockchip: Document Landingship
Quoted 9 lines · Andreas F?rber
Use "geekbuying,geekbox-landingship" compatible string, plus those of the GeekBox module.
Signed-off-by Andreas F?rber <[email protected]>---
v2 -> v3:
* Changed compatible string to include geekbox- (Heiko) and clarify that this is for GeekBox module
Quoted 4 lines
v2: New
Documentation/devicetree/bindings/arm/rockchip.txt | 5 +++++ 1 file changed, 5 insertions(+)
PATCH v3 8/8 arm64: dts: rockchip: Add Landingship config
In reply to Andreas Färber---
v2 -> v3:
* Changed compatible string to include geekbox- (Heiko)
* Rebroke compatible strings line
* Disabled i2c1 to avoid hang (next-20160304)
v2: New - showcases inclusion of GeekBox module config
arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3368-geekbox-landingship.dts | 57 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -1,5 +1,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox-landingship.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb always := $(dtb-y)
arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
2.6.2
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 5 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)
Still with us in next-20160307. CC'ing stmmac maintainers.
http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/drivers/net/ethernet/stmicro
Regards,
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
Heiko Stübner
maintainerHi Andreas,
Am Montag, 7. M?rz 2016, 13:17:54 schrieb Andreas F?rber:
Quoted 9 lines
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 6 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
do you remember from what revision you rebased away from, when it was still working (as a known-good state)?
Heiko
Quoted 6 lines
http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/drivers/
net/ethernet/stmicroRegards,
Andreas
Hi Heiko,
Am 07.03.2016 um 13:24 schrieb Heiko St?bner:
Quoted 5 lines
Am Montag, 7. M?rz 2016, 13:17:54 schrieb Andreas F?rber:
Quoted 4 lines
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 3 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
do you remember from what revision you rebased away from, when it was still working (as a known-good state)?
Hm, next-20160111 possibly... leaving all the 5 days and 4 days ago changes as candidates ("stmmac: share reset function between dwmac100 and dwmac1000" .. "stmmac: Fix 'eth0: No PHY found' regression").
Regards,
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
Hello Andreas, Heiko,
Quoted 9 lines · Andreas F?rber
Hi Heiko,
Am 07.03.2016 um 13:24 schrieb Heiko St?bner:
Quoted 6 lines
Am Montag, 7. M?rz 2016, 13:17:54 schrieb Andreas F?rber:
Quoted 5 lines
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 4 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
libphy: PHY stmmac-0:ffffffff not found
snps,phy-addr is not correct. Can you check it?
In the stmmac_mdio if this is not passed as parameter the bus should be scanned and the first IDs found should select the right address. I suppose in your box there is a real transceiver, so maybe the patch from Gabriel is not actually necessary.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
eth0: Could not attach to PHY
stmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
peppe
Quoted 11 lines
Quoted 3 lines
do you remember from what revision you rebased away from, when it was still working (as a known-good state)?
Hm, next-20160111 possibly... leaving all the 5 days and 4 days ago changes as candidates ("stmmac: share reset function between dwmac100 and dwmac1000" .. "stmmac: Fix 'eth0: No PHY found' regression").
Regards,
Andreas
Hello Giuseppe,
Am 07.03.2016 um 14:26 schrieb Giuseppe CAVALLARO:
Quoted 11 lines · Andreas F?rber
Quoted 8 lines
Am 07.03.2016 um 13:24 schrieb Heiko St?bner:
Quoted 7 lines
Am Montag, 7. M?rz 2016, 13:17:54 schrieb Andreas F?rber:
Quoted 6 lines
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 5 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the
PHY:libphy: PHY stmmac-0:ffffffff not found
snps,phy-addr is not correct. Can you check it?
It was never set:
Quoted 4 lines
In the
stmmac_mdioif this is not passed as parameter the bus should be scanned and the first IDs found should select the right address. I suppose in your box there is a real transceiver, so maybe the patch from Gabriel is not actually necessary.
On the GeekBox module there's an RTL8211E phy.
Indeed, reverting Gabriel's commit fixes the observed error messages:
rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
However, I am unable to ping any hosts on the network now.
Regards,
Andreas
Quoted 15 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
eth0: Could not attach to PHY
stmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
peppe
Quoted 8 lines
Quoted 4 lines
do you remember from what revision you rebased away from, when it was still
working (as a known-good state)?Hm, next-20160111 possibly... leaving all the 5 days and 4 days ago changes as candidates ("stmmac: share reset function between dwmac100 and dwmac1000" .. "stmmac: Fix 'eth0: No PHY found' regression").
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Andreas
Quoted 26 lines · Andreas F?rber
Hello Giuseppe,
Am 07.03.2016 um 14:26 schrieb Giuseppe CAVALLARO:
Quoted 11 lines · Andreas F?rber
Quoted 8 lines
Am 07.03.2016 um 13:24 schrieb Heiko St?bner:
Quoted 7 lines
Am Montag, 7. M?rz 2016, 13:17:54 schrieb Andreas F?rber:
Quoted 6 lines
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 5 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the
PHY:libphy: PHY stmmac-0:ffffffff not found
snps,phy-addr is not correct. Can you check it?
It was never set:
Quoted 4 lines
In the
stmmac_mdioif this is not passed as parameter the bus should be scanned and the first IDs found should select the right address. I suppose in your box there is a real transceiver, so maybe the patch from Gabriel is not actually necessary.
Quoted 6 lines
On the GeekBox module there's an RTL8211E phy.
Indeed, reverting Gabriel's commit fixes the observed error messages:
rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
so this means that the phy is found and the link auto-negotiated.
Gabriel, it sounds that the patch solved a regression you found on a configuration where the MAC dialogs with a switch but it breaks the setup with use a std transceiver.
Quoted 3 lines
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on Oct_2015 update.
If you share some logs to me I can take a look at them. Then we can try to check if the problem in on rx or tx path. I also ask you yo check the axi settings.
Let me know
Regards
peppe
Quoted 20 lines
Regards,
AndreasQuoted 15 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
eth0: Could not attach to PHY
stmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
peppe
Quoted 8 lines
Quoted 4 lines
do you remember from what revision you rebased away from, when it was still
working (as a known-good state)?Hm, next-20160111 possibly... leaving all the 5 days and 4 days ago changes as candidates ("stmmac: share reset function between dwmac100 and dwmac1000" .. "stmmac: Fix 'eth0: No PHY found' regression").
Hi Peppe,
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 5 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.
I've had success reverting drivers/net/ethernet/stmicro/ up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.
Quoted 3 lines
If you share some logs to me I can take a look at them. Then we can try to check if the problem in on rx or tx path. I also ask you yo check the axi settings.
On the reverted (good) branch I see in dmesg:
[ +0.001100] rk_gmac-dwmac ff290000.ethernet: Looking up phy-supply from device tree
[ +0.000030] rk808 0-001b: Looking up vcc12-supply from device tree [ +0.000013] vcc_lan: supplied by vcc_io [ +0.000120] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input). [ +0.000010] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30). [ +0.000007] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10). [ +0.000014] rk_gmac-dwmac ff290000.ethernet: init for RGMII [ +0.000104] rk_gmac-dwmac ff290000.ethernet: clock input from PHY [ +0.005099] rk_gmac-dwmac ff290000.ethernet: no reset control found [ +0.000007] stmmac - user ID: 0x10, Synopsys ID: 0x35 [ +0.000002] Ring mode enabled [ +0.000006] DMA HW capability register supported [ +0.000000] Normal descriptors [ +0.000004] RX Checksum Offload Engine supported (type 2) [ +0.000002] TX Checksum insertion supported [ +0.000002] Wake-Up On Lan supported [ +0.000052] Enable RX Mitigation via HW Watchdog Timer [ +0.000683] rk_gmac-dwmac ff290000.ethernet eth0: No MDIO subnode found [ +0.000124] of_get_named_gpiod_flags: can't parse 'snps,reset-gpio' property of node '/ethernet at ff290000[0]' [ +0.004219] libphy: stmmac: probed [ +0.000010] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active [ +0.000005] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ +0.881011] eth0: device MAC address 4a:78:dd:10:b3:17 [ +4.003065] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
The MAC address is random, changing each time. Otherwise there's no log difference I spot to the pre-Gabriel broken state.
If you need more info, let me know where to find it.
Thanks,
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Andreas F?rber
Hi Peppe,
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 2 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
Quoted 7 lines
Quoted 3 lines
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.
Andreas, I will check it and let you know asap.
Quoted 35 lines
Quoted 3 lines
If you share some logs to me I can take a look at them. Then we can try to check if the problem in on rx or tx path. I also ask you yo check the axi settings.
On the reverted (good) branch I see in dmesg:
[ +0.001100] rk_gmac-dwmac ff290000.ethernet: Looking up phy-supply from device tree
[ +0.000030] rk808 0-001b: Looking up vcc12-supply from device tree [ +0.000013] vcc_lan: supplied by vcc_io [ +0.000120] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input). [ +0.000010] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30). [ +0.000007] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10). [ +0.000014] rk_gmac-dwmac ff290000.ethernet: init for RGMII [ +0.000104] rk_gmac-dwmac ff290000.ethernet: clock input from PHY [ +0.005099] rk_gmac-dwmac ff290000.ethernet: no reset control found [ +0.000007] stmmac - user ID: 0x10, Synopsys ID: 0x35 [ +0.000002] Ring mode enabled [ +0.000006] DMA HW capability register supported [ +0.000000] Normal descriptors [ +0.000004] RX Checksum Offload Engine supported (type 2) [ +0.000002] TX Checksum insertion supported [ +0.000002] Wake-Up On Lan supported [ +0.000052] Enable RX Mitigation via HW Watchdog Timer [ +0.000683] rk_gmac-dwmac ff290000.ethernet eth0: No MDIO subnode found [ +0.000124] of_get_named_gpiod_flags: can't parse 'snps,reset-gpio' property of node '/ethernet at ff290000[0]' [ +0.004219] libphy: stmmac: probed [ +0.000010] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active [ +0.000005] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
Quoted 6 lines
[ +0.881011] eth0: device MAC address 4a:78:dd:10:b3:17 [ +4.003065] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
The MAC address is random, changing each time. Otherwise there's no log difference I spot to the pre-Gabriel broken state.
ok
Quoted 2 lines
If you need more info, let me know where to find it.
no it's ok at this stage.
Quoted 2 lines
Thanks,
welcome
Quoted 1 line
Andreas
Regards
peppe
Am 07.03.2016 um 16:52 schrieb Giuseppe CAVALLARO:
Quoted 11 lines · Andreas F?rber
Quoted 10 lines
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 5 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.
Quoted 5 lines
Quoted 3 lines
I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.Andreas, I will check it and let you know asap.
I verified that it's just these two commits that I need to revert:
"stmmac: Fix 'eth0: No PHY found' regression" "stmmac: first frame prep at the end of xmit routine"
Those in between don't cause conflicts and seem to work okay.
Andreas
Signature · 2 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · Andreas F?rber
Am 07.03.2016 um 16:52 schrieb Giuseppe CAVALLARO:
Quoted 15 lines · Andreas F?rber
Quoted 13 lines
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 5 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.
Quoted 9 lines
Quoted 1 line
Andreas, I will check it and let you know asap.
I verified that it's just these two commits that I need to revert:
"stmmac: Fix 'eth0: No PHY found' regression" "stmmac: first frame prep at the end of xmit routine"
Those in between don't cause conflicts and seem to work okay.
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)
If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Thanks,
Dinh
A message that is not in the archive (sent off-list or not yet received): CADhT+wfO8x4En78g5ixnnwbpaeXJGDo+Q1sOABYsbXzNZy0CPw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Hi Dinh,
On 3/8/2016 12:22 AM, Dinh Nguyen wrote:
[snip]
Quoted 7 lines
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)
Quoted 5 lines
If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
do you have this patch "stmmac: first frame prep at the end of xmit routine" ? Or you just reverted
"stmmac: Fix 'eth0: No PHY found' regression"
maybe we can sum:
"stmmac: Fix 'eth0: No PHY found' regression"
that is introducing a problem when a box has a transceiver
"stmmac: first frame prep at the end of xmit routine"
That is breaking the tx path on arm64
I will check both patches on my side and let you know
peppe
Quoted 4 lines
Thanks,
Dinh
Quoted 14 lines · Giuseppe CAVALLARO
Hi Dinh,
On 3/8/2016 12:22 AM, Dinh Nguyen wrote:
[snip]Quoted 10 lines
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
Quoted 8 lines
Quoted 3 lines
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
do you have this patch "stmmac: first frame prep at the end of xmit routine" ? Or you just reverted
"stmmac: Fix 'eth0: No PHY found' regression"
I only reverted "stmmac: Fix 'eth0: No PHY found' regression". I do have the patch "stmmac: first frame prep at the end of the xmit routine", but I did not need to revert that patch.
Dinh
Hi Dinh
Quoted 21 lines · Dinh Nguyen
Quoted 19 lines · Giuseppe CAVALLARO
Hi Dinh,
On 3/8/2016 12:22 AM, Dinh Nguyen wrote:
[snip]Quoted 13 lines
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Quoted 7 lines
Quoted 3 lines
do you have this patch "stmmac: first frame prep at the end of xmit routine" ? Or you just reverted
"stmmac: Fix 'eth0: No PHY found' regression"I only reverted "stmmac: Fix 'eth0: No PHY found' regression". I do have the patch "stmmac: first frame prep at the end of the xmit routine", but I did not need to revert that patch.
thx for this input.
FYI, I am reworking the code to manage the mdio inside the driver so a patch will come soon.
peppe
Quoted 3 lines
Dinh
Quoted 21 lines · Dinh Nguyen
Quoted 19 lines · Giuseppe CAVALLARO
Hi Dinh,
On 3/8/2016 12:22 AM, Dinh Nguyen wrote:
[snip]Quoted 13 lines
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Quoted 7 lines
Quoted 3 lines
do you have this patch "stmmac: first frame prep at the end of xmit routine" ? Or you just reverted
"stmmac: Fix 'eth0: No PHY found' regression"I only reverted "stmmac: Fix 'eth0: No PHY found' regression". I do have the patch "stmmac: first frame prep at the end of the xmit routine", but I did not need to revert that patch.
Hi,
in order to get the onboard network on the Radxa Rock2 to work at all on today's linux-next, I had to revert both commits:
* "stmmac: Fix 'eth0: No PHY found' regression" for the drivers to probe and the link to come up, and
* "stmmac: first frame prep at the end of the xmit routine" for the network interface to work at all.
But a few seconds into the nfsroot boot I start getting:
[ 9.136701] systemd[1]: Started Load Kernel Modules. [ 18.116321] nfs: server 10.42.0.1 not responding, still trying [ 18.516224] ------------[ cut here ]------------ [ 18.521024] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 18.529456] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed out
I'm attaching the full boot log.
Regards,
Tomeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rock2.log
Type: text/x-log
Size: 37321 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160309/c0b7c298/attachment-0001.bin>
A message that is not in the archive (sent off-list or not yet received): CAAObsKD9HoEbtV_JMz_R=bcrQseDmhncRAWP9k8djksL-LMQqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Hello
Quoted 6 lines · Tomeu Vizoso
in order to get the onboard network on the Radxa Rock2 to work at all on today's linux-next, I had to revert both commits:
* "stmmac: Fix 'eth0: No PHY found' regression" for the drivers to probe and the link to come up, and
I've just sent two patches (on top of net.git) to fix this problem pls let me know if these help on your side too.
Quoted 3 lines
* "stmmac: first frame prep at the end of the xmit routine" for the network interface to work at all.
I cannot reproduce it right now but I am looking at this again and let you know.
I will check your output file too
Regards
peppe
Quoted 15 lines
But a few seconds into the nfsroot boot I start getting:
[ 9.136701] systemd[1]: Started Load Kernel Modules. [ 18.116321] nfs: server 10.42.0.1 not responding, still trying [ 18.516224] ------------[ cut here ]------------ [ 18.521024] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 18.529456] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed outI'm attaching the full boot log.
Regards,
Tomeu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 14 lines · Giuseppe CAVALLARO
Hello
Quoted 6 lines · Tomeu Vizoso
in order to get the onboard network on the Radxa Rock2 to work at all on today's linux-next, I had to revert both commits:
* "stmmac: Fix 'eth0: No PHY found' regression" for the drivers to probe and the link to come up, and
I've just sent two patches (on top of net.git) to fix this problem pls let me know if these help on your side too.
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
* "stmmac: first frame prep at the end of the xmit routine" for the network interface to work at all.
I cannot reproduce it right now but I am looking at this again and let you know.
I will check your output file too
hmm, I think that the problem is around the "normal descriptor" management that is configured on the boxes where the driver is failing now. Using enhanced descriptors the network is ok. I will keep you up-to-date.
peppe
Quoted 23 lines
Regards
peppeQuoted 16 lines
But a few seconds into the nfsroot boot I start getting:
[ 9.136701] systemd[1]: Started Load Kernel Modules. [ 18.116321] nfs: server 10.42.0.1 not responding, still trying [ 18.516224] ------------[ cut here ]------------ [ 18.521024] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 18.529456] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0timed out
I'm attaching the full boot log.
Regards,
Tomeu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 27 lines · Giuseppe CAVALLARO
Quoted 17 lines · Giuseppe CAVALLARO
Hello
Quoted 7 lines · Tomeu Vizoso
in order to get the onboard network on the Radxa Rock2 to work at all on today's linux-next, I had to revert both commits:
* "stmmac: Fix 'eth0: No PHY found' regression" for the drivers to probe and the link to come up, and
I've just sent two patches (on top of net.git) to fix this problem pls let me know if these help on your side too.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
* "stmmac: first frame prep at the end of the xmit routine" for the network interface to work at all.
I cannot reproduce it right now but I am looking at this again and let you know.
I will check your output file too
Quoted 4 lines
hmm, I think that the problem is around the "normal descriptor" management that is configured on the boxes where the driver is failing now. Using enhanced descriptors the network is ok. I will keep you up-to-date.
Hi,
I have done some tests and these are the results:
* net.git (133800d1f028): probe failed
* net.git (133800d1f028) + revert: everything fine
* net.git (133800d1f028) + revert + "stmmac: fix MDIO settings": everything fine
* today's linux-next: probe failed
* today's linux-next + revert of 88f8b1bb41c6 stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all
* today's linux-next + revert of 88f8b1bb41c6 (stmmac: Fix 'eth0: No PHY found' regression) + revert of 0e80bdc9a72d (stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing out
Btw, could you CC LKML on future patches that need testing?
Thanks,
Tomeu
Quoted 27 lines
peppe
Quoted 23 lines
Regards
peppeQuoted 16 lines
But a few seconds into the nfsroot boot I start getting:
[ 9.136701] systemd[1]: Started Load Kernel Modules. [ 18.116321] nfs: server 10.42.0.1 not responding, still trying [ 18.516224] ------------[ cut here ]------------ [ 18.521024] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 18.529456] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0timed out
I'm attaching the full boot log.
Regards,
Tomeu
A message that is not in the archive (sent off-list or not yet received): CAAObsKBr9SXg1-wr9O-ypR8JozdGpeAwfDLMeUKi8ozxkKyTXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 33 lines · Tomeu Vizoso
Quoted 27 lines · Giuseppe CAVALLARO
Quoted 17 lines · Giuseppe CAVALLARO
Hello
Quoted 7 lines · Tomeu Vizoso
in order to get the onboard network on the Radxa Rock2 to work at all on today's linux-next, I had to revert both commits:
* "stmmac: Fix 'eth0: No PHY found' regression" for the drivers to probe and the link to come up, and
I've just sent two patches (on top of net.git) to fix this problem pls let me know if these help on your side too.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
* "stmmac: first frame prep at the end of the xmit routine" for the network interface to work at all.
I cannot reproduce it right now but I am looking at this again and let you know.
I will check your output file tooQuoted 4 lines
hmm, I think that the problem is around the "normal descriptor" management that is configured on the boxes where the driver is failing now. Using enhanced descriptors the network is ok. I will keep you up-to-date.
Quoted 5 lines
Hi,
I have done some tests and these are the results:
* net.git (
133800d1f028): probe failed
ok, failure due to the "stmmac: Fix 'eth0: No PHY found' regression"
Quoted 2 lines
* net.git (
133800d1f028) + revert: everything fine
ok that is expected but the fixed-link will be NOK
Quoted 2 lines
* net.git (
133800d1f028) + revert + "stmmac: fix MDIO settings": everything fine
thx for having tested it. So it works on real transceiver (tested by you) and with the fixed-link (tested by me).
Quoted 10 lines
* today's linux-next: probe failed
* today's linux-next + revert of
88f8b1bb41c6stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all* today's linux-next + revert of
88f8b1bb41c6(stmmac: Fix 'eth0: No PHY found' regression) + revert of0e80bdc9a72d(stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing out
ok, I was looking at this problem now that seems to related the "stmmac: first frame prep at the end of xmit routine" that, at first glance, is breaking the gmac 3.50 with normal descriptor.
Quoted 1 line
Btw, could you CC LKML on future patches that need testing?
sure
peppe
Quoted 34 lines
Thanks,
Tomeu
Quoted 27 lines
peppe
Quoted 23 lines
Regards
peppeQuoted 16 lines
But a few seconds into the nfsroot boot I start getting:
[ 9.136701] systemd[1]: Started Load Kernel Modules. [ 18.116321] nfs: server 10.42.0.1 not responding, still trying [ 18.516224] ------------[ cut here ]------------ [ 18.521024] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 18.529456] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0timed out
I'm attaching the full boot log.
Regards,
Tomeu
Hello Tomeu, Andreas,
Quoted 5 lines · Giuseppe CAVALLARO
Quoted 5 lines
* today's linux-next: probe failed
* today's linux-next + revert of
88f8b1bb41c6stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all
Quoted 8 lines
Quoted 4 lines
* today's linux-next + revert of
88f8b1bb41c6(stmmac: Fix 'eth0: No PHY found' regression) + revert of0e80bdc9a72d(stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing outok, I was looking at this problem now that seems to related the "stmmac: first frame prep at the end of xmit routine" that, at first glance, is breaking the gmac 3.50 with normal descriptor.
I have no Hw where to test this use case. So, I wonder if may I ask you to test some patch.
This first patch adds a missing barrier to the normal routine that inits the descriptor. Barrier was needed to well manage the OWN descriptor and it was not added in case of normal desc case after the xmit rework.
Then I will check the algo behind the new xmit and in case of problems, if you agree, we will decide to revert it because it aimed to add an optimization.
Let me know if you agree.
Regards
Peppe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: normal_tmp.patch
Type: text/x-patch
Size: 950 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160309/807d1599/attachment-0001.bin>
Quoted 28 lines · Giuseppe CAVALLARO
Hello Tomeu, Andreas,
Quoted 12 lines · Giuseppe CAVALLARO
Quoted 10 lines
* today's linux-next: probe failed
* today's linux-next + revert of
88f8b1bb41c6stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all* today's linux-next + revert of
88f8b1bb41c6(stmmac: Fix 'eth0: No PHY found' regression) + revert of0e80bdc9a72d(stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing outQuoted 3 lines
ok, I was looking at this problem now that seems to related the "stmmac: first frame prep at the end of xmit routine" that, at first glance, is breaking the gmac 3.50 with normal descriptor.
I have no Hw where to test this use case. So, I wonder if may I ask you to test some patch.
This first patch adds a missing barrier to the normal routine that inits the descriptor. Barrier was needed to well manage the OWN
descriptor and it was not added in case of normal desc case after the xmit rework.
Quoted 5 lines
Then I will check the algo behind the new xmit and in case of problems, if you agree, we will decide to revert it because it aimed to add an optimization.
Let me know if you agree.
I'm not sure what you would like to be tested, but just in case, I have just tried your patch on top of these commits and the result is the "transmit queue 0 timed out" error during boot:
6542b30d0a67 Revert "stmmac: first frame prep at the end of xmit routine" eb5274cbc0f7 Revert "stmmac: do not poll phy handler when attach a switch" e88e625a68d9 Revert "stmmac: fix phy init when attached to a phy" ef5dd3777876 stmmac: fix MDIO settings77634ba1f25c Revert "stmmac: Fix 'eth0: No PHY found' regression" 7811b4ffc312 Add linux-next specific files for 20160309
Regards,
Tomeu
Quoted 2 lines
Regards
Peppe
Hi Tomeu
Quoted 39 lines · Tomeu Vizoso
Quoted 28 lines · Giuseppe CAVALLARO
Hello Tomeu, Andreas,
Quoted 12 lines · Giuseppe CAVALLARO
Quoted 10 lines
* today's linux-next: probe failed
* today's linux-next + revert of
88f8b1bb41c6stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all* today's linux-next + revert of
88f8b1bb41c6(stmmac: Fix 'eth0: No PHY found' regression) + revert of0e80bdc9a72d(stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing outQuoted 3 lines
ok, I was looking at this problem now that seems to related the "stmmac: first frame prep at the end of xmit routine" that, at first glance, is breaking the gmac 3.50 with normal descriptor.
I have no Hw where to test this use case. So, I wonder if may I ask you to test some patch.
This first patch adds a missing barrier to the normal routine that inits the descriptor. Barrier was needed to well manage the OWN
descriptor and it was not added in case of normal desc case after the xmit rework.Quoted 5 lines
Then I will check the algo behind the new xmit and in case of problems, if you agree, we will decide to revert it because it aimed to add an optimization.
Let me know if you agree.
I'm not sure what you would like to be tested, but just in case, I have just tried your patch on top of these commits and the result is the "transmit queue 0 timed out" error during boot:
Quoted 6 lines
6542b30d0a67Revert "stmmac: first frame prep at the end of xmit routine"eb5274cbc0f7Revert "stmmac: do not poll phy handler when attach a switch"e88e625a68d9Revert "stmmac: fix phy init when attached to a phy"ef5dd3777876stmmac: fix MDIO settings77634ba1f25cRevert "stmmac: Fix 'eth0: No PHY found' regression"7811b4ffc312Add linux-next specific files for 20160309
I missed that the issue is not only related the
"stmmac: first frame prep at the end of xmit routine"
I have to try to test on 3.50 with normal descriptor. When using enhanced descriptors all works fine on my side.
I keep you informed.
peppe
Quoted 8 lines
Regards,
Tomeu
Quoted 2 lines
Regards
Peppe
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.
The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).
So, supposing the probe is ok and phy is connected, I need your input ...
Tomeu: after revering the 0e80bdc9a72d (stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.
Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.
Andreas: you are also using 3.50 with normal desc but I have not
clear if just reverting 0e80bdc9a72d commit the network is ok or you see timeout issues.
In the meantime I am trying to find a box where try normal setup and I can confirm that enhanced descriptors are ok on my side
Regards
Peppe
Quoted 76 lines · Giuseppe CAVALLARO
Hi Tomeu
Quoted 43 lines · Tomeu Vizoso
Quoted 31 lines · Giuseppe CAVALLARO
Hello Tomeu, Andreas,
Quoted 12 lines · Giuseppe CAVALLARO
Quoted 10 lines
* today's linux-next: probe failed
* today's linux-next + revert of
88f8b1bb41c6stmmac: Fix 'eth0: No PHY found' regression: probe succeeded but no network at all* today's linux-next + revert of
88f8b1bb41c6(stmmac: Fix 'eth0: No PHY found' regression) + revert of0e80bdc9a72d(stmmac: first frame prep at the end of xmit routine): probe succeeded, dhcp succeeds and nfsroot works for a few seconds before timing outQuoted 4 lines
ok, I was looking at this problem now that seems to related the "stmmac: first frame prep at the end of xmit routine" that, at first glance, is breaking the gmac 3.50 with normal descriptor.
I have no Hw where to test this use case. So, I wonder if may I ask you to
test some patch.This first patch adds a missing barrier to the normal routine that inits the
descriptor. Barrier was needed to well manage the OWN descriptor and it was not added in case of normal desc case after the xmit rework.Quoted 5 lines
Then I will check the algo behind the new xmit and in case of problems, if you agree, we will decide to revert it because it aimed to add an optimization.
Let me know if you agree.
I'm not sure what you would like to be tested, but just in case, I have just tried your patch on top of these commits and the result is the "transmit queue 0 timed out" error during boot:
Quoted 7 lines
6542b30d0a67Revert "stmmac: first frame prep at the end of xmit routine"eb5274cbc0f7Revert "stmmac: do not poll phy handler when attach a switch"e88e625a68d9Revert "stmmac: fix phy init when attached to a phy"ef5dd3777876stmmac: fix MDIO settings77634ba1f25cRevert "stmmac: Fix 'eth0: No PHY found' regression"7811b4ffc312Add linux-next specific files for 20160309I missed that the issue is not only related the
"stmmac: first frame prep at the end of xmit routine"
I have to try to test on 3.50 with normal descriptor. When using enhanced descriptors all works fine on my side.I keep you informed.
peppe
Quoted 8 lines
Regards,
Tomeu
Quoted 2 lines
Regards
Peppe
Quoted 11 lines · Giuseppe CAVALLARO
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).So, supposing the probe is ok and phy is connected, I need your input ...
Quoted 9 lines
Tomeu: after revering the
0e80bdc9a72d(stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.
Here it is:
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.5.0-rc6-next-20160304-00001-g092eb23
(dinguyen at linux-builds1) (gcc version 4.7.3 2013022 6 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 SMP Wed Mar 9 10:22:14 CST 2 016
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: Altera SOCFPGA Cyclone V SoC Development Kit [ 0.000000] cma: Reserved 64 MiB at 0x3c000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] PERCPU: Embedded 13 pages/cpu @ef7cc000 s23808 r8192 d21248 u53248 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait ip=dhcp [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 955932K/1048576K available (9522K kernel code, 1142K rwdata, 4124K rodata, 2048K init, 342K bss, 27108K reserved, 65536K cma-reserved, 196608K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0208000 - 0xc1053830 (14639 kB) [ 0.000000] .init : 0xc1100000 - 0xc1300000 (2048 kB) [ 0.000000] .data : 0xc1300000 - 0xc141da80 (1143 kB) [ 0.000000] .bss : 0xc141f000 - 0xc1474920 ( 343 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] L2C-310 erratum 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB [ 0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76060001 [ 0.000000] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns [ 0.000005] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns [ 0.000015] Switching to timer-based delay loop, resolution 10ns [ 0.000268] Console: colour dummy device 80x30 [ 0.000290] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=500000) [ 0.000301] pid_max: default: 32768 minimum: 301 [ 0.000374] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000382] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000879] CPU: Testing write buffer coherency: ok [ 0.001062] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.001207] Setting up static identity map for 0x300000 - 0x300098 [ 0.003872] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.003946] Brought up 2 CPUs [ 0.003959] SMP: Total of 2 processors activated (400.00 BogoMIPS). [ 0.003965] CPU: All CPU(s) started in SVC mode. [ 0.004672] devtmpfs: initialized [ 0.008193] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.008609] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns [ 0.011733] pinctrl core: initialized pinctrl subsystem [ 0.013149] NET: Registered protocol family 16 [ 0.014993] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.029850] cpuidle: using governor menu [ 0.035166] No ATAGs? [ 0.035199] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.035207] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.037795] Serial: AMBA PL011 UART driver [ 0.064193] vgaarb: loaded [ 0.064994] SCSI subsystem initialized [ 0.065377] usbcore: registered new interface driver usbfs [ 0.065427] usbcore: registered new interface driver hub [ 0.065471] usbcore: registered new device driver usb [ 0.065637] soc:usbphy at 0 supply vcc not found, using dummy regulator [ 0.066917] pps_core: LinuxPPS API ver. 1 registered [ 0.066925] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.066948] PTP clock support registered [ 0.067075] EDAC MC: Ver: 3.0.0 [ 0.068905] clocksource: Switched to clocksource timer1 [ 0.077130] NET: Registered protocol family 2 [ 0.077598] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.077675] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.077789] TCP: Hash tables configured (established 8192 bind 8192) [ 0.077850] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.077892] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.078045] NET: Registered protocol family 1 [ 0.078313] RPC: Registered named UNIX socket transport module. [ 0.078322] RPC: Registered udp transport module. [ 0.078327] RPC: Registered tcp transport module. [ 0.078332] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.079971] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.080491] workingset: timestamp_bits=28 max_order=18 bucket_order=0 [ 0.088552] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.089257] NFS: Registering the id_resolver key type [ 0.089295] Key type id_resolver registered [ 0.089302] Key type id_legacy registered [ 0.089357] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.090460] bounce: pool size: 64 pages [ 0.090644] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.090659] io scheduler noop registered [ 0.090670] io scheduler deadline registered [ 0.090702] io scheduler cfq registered (default) [ 0.101187] dma-pl330 ffe01000.pdma: Loaded driver for PL330 DMAC-341330 [ 0.101202] dma-pl330 ffe01000.pdma: DBUFF-512x8bytes Num_Chans-8 Num_Peri-32 Num_Events-8 [ 0.148800] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.150717] console [ttyS0] disabled [ 0.150752] ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 35, base_baud = 6250000) is a 16550A [ 0.760760] console [ttyS0] enabled [ 0.764930] ffc03000.serial1: ttyS1 at MMIO 0xffc03000 (irq = 36, base_baud = 6250000) is a 16550A [ 0.774702] SuperH (H)SCI(F) driver initialized [ 0.779746] msm_serial: driver initialized [ 0.783950] STMicroelectronics ASC driver initialized [ 0.789977] [drm] Initialized drm 1.1.0 20060810 [ 0.804439] brd: module loaded [ 0.812215] loop: module loaded [ 0.815664] at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write [ 0.827372] libphy: Fixed MDIO Bus: probed [ 0.832015] CAN device driver interface [ 0.836848] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k [ 0.843792] igb: Copyright (c) 2007-2014 Intel Corporation. [ 0.850523] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.855570] Ring mode enabled [ 0.858611] DMA HW capability register supported [ 0.863128] Enhanced/Alternate descriptors [ 0.867482] Enabled extended descriptors [ 0.871482] RX Checksum Offload Engine supported (type 2) [ 0.876948] TX Checksum insertion supported [ 0.881204] Enable RX Mitigation via HW Watchdog Timer [ 0.886863] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found [ 0.899090] libphy: stmmac: probed [ 0.902484] eth0: PHY ID 00221611 at 4 IRQ POLL (stmmac-0:04) active [ 0.909742] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver [ 0.917175] usbcore: registered new interface driver pegasus [ 0.922873] usbcore: registered new interface driver asix [ 0.928300] usbcore: registered new interface driver ax88179_178a [ 0.934422] usbcore: registered new interface driver cdc_ether [ 0.940294] usbcore: registered new interface driver smsc75xx [ 0.946078] usbcore: registered new interface driver smsc95xx [ 0.951848] usbcore: registered new interface driver net1080 [ 0.957529] usbcore: registered new interface driver cdc_subset [ 0.963470] usbcore: registered new interface driver zaurus [ 0.969098] usbcore: registered new interface driver cdc_ncm [ 0.975810] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.982335] ehci-pci: EHCI PCI platform driver [ 0.986814] ehci-platform: EHCI generic platform driver [ 0.992147] ehci-omap: OMAP-EHCI Host Controller driver [ 0.997446] ehci-orion: EHCI orion driver [ 1.001534] SPEAr-ehci: EHCI SPEAr driver [ 1.005623] ehci-st: EHCI STMicroelectronics driver [ 1.010577] ehci-exynos: EHCI EXYNOS driver [ 1.014845] ehci-atmel: EHCI Atmel driver [ 1.018930] tegra-ehci: Tegra EHCI driver [ 1.023017] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.029198] ohci-pci: OHCI PCI platform driver [ 1.033671] ohci-platform: OHCI generic platform driver [ 1.038999] ohci-omap3: OHCI OMAP3 driver [ 1.043076] SPEAr-ohci: OHCI SPEAr driver [ 1.047166] ohci-st: OHCI STMicroelectronics driver [ 1.052119] ohci-atmel: OHCI Atmel driver [ 1.056540] usbcore: registered new interface driver usb-storage [ 1.063604] mousedev: PS/2 mouse device common for all mice [ 1.071372] rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0 [ 1.078720] i2c /dev entries driver [ 1.088558] sdhci: Secure Digital Host Controller Interface driver [ 1.094733] sdhci: Copyright(c) Pierre Ossman [ 1.099926] Synopsys Designware Multimedia Card Interface Driver [ 1.106160] dw_mmc ff704000.dwmmc0: IDMAC supports 32-bit address mode. [ 1.112832] dw_mmc ff704000.dwmmc0: Using internal DMA controller. [ 1.119003] dw_mmc ff704000.dwmmc0: Version ID is 240a [ 1.124161] dw_mmc ff704000.dwmmc0: DW MMC controller at irq 30,32 bit host data width,1024 deep fifo [ 1.133484] dw_mmc ff704000.dwmmc0: Got CD GPIO [ 1.163951] dw_mmc ff704000.dwmmc0: 1 slots initialized [ 1.169801] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.176752] ledtrig-cpu: registered to indicate activity on CPUs [ 1.183123] usbcore: registered new interface driver usbhid [ 1.188689] usbhid: USB HID core driver [ 1.196305] NET: Registered protocol family 10 [ 1.201510] sit: IPv6 over IPv4 tunneling driver [ 1.206748] NET: Registered protocol family 17 [ 1.211203] can: controller area network core (rev 20120528 abi 9) [ 1.217420] NET: Registered protocol family 29 [ 1.221867] can: raw protocol (rev 20120528) [ 1.226139] can: broadcast manager protocol (rev 20120528 t) [ 1.231793] can: netlink gateway (rev 20130117) max_hops=1 [ 1.237633] Key type dns_resolver registered [ 1.242056] ThumbEE CPU extension supported. [ 1.246339] Registering SWP/SWPB emulation handler [ 1.252996] rtc-ds1307 0-0068: setting system clock to 2000-01-01 10:28:48 UTC (946722528) [ 1.283660] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 1.293419] mmc0: new high speed SDHC card at address 0007 [ 1.299260] mmcblk0: mmc0:0007 SD4GB 3.71 GiB [ 1.305075] mmcblk0: p1 p2 p3 p4 [ 1.336767] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 5.324487] socfpga-dwmac ff702000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 5.333591] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 5.343917] Sending DHCP requests ., OK
Quoted 24 lines · Dinh Nguyen
Quoted 11 lines · Giuseppe CAVALLARO
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).So, supposing the probe is ok and phy is connected, I need your input ...
Quoted 9 lines
Tomeu: after revering the
0e80bdc9a72d(stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.Here it is:
...
Quoted 11 lines
[ 0.850523] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.855570] Ring mode enabled [ 0.858611] DMA HW capability register supported [ 0.863128] Enhanced/Alternate descriptors [ 0.867482] Enabled extended descriptors [ 0.871482] RX Checksum Offload Engine supported (type 2) [ 0.876948] TX Checksum insertion supported [ 0.881204] Enable RX Mitigation via HW Watchdog Timer [ 0.886863] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found [ 0.899090] libphy: stmmac: probed [ 0.902484] eth0: PHY ID 00221611 at 4 IRQ POLL (stmmac-0:04) active
Thx Dinh, so you are using the Enhanced/Alternate descriptors I am debugging on my side on a setup with normal descriptors, I let you know
peppe
Quoted 43 lines · Giuseppe CAVALLARO
Quoted 26 lines · Dinh Nguyen
Quoted 12 lines · Giuseppe CAVALLARO
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).So, supposing the probe is ok and phy is connected, I need your input ...
Quoted 9 lines
Tomeu: after revering the
0e80bdc9a72d(stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.Here it is:
...
Quoted 12 lines
[ 0.850523] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.855570] Ring mode enabled [ 0.858611] DMA HW capability register supported [ 0.863128] Enhanced/Alternate descriptors [ 0.867482] Enabled extended descriptors [ 0.871482] RX Checksum Offload Engine supported (type 2) [ 0.876948] TX Checksum insertion supported [ 0.881204] Enable RX Mitigation via HW Watchdog Timer [ 0.886863] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found [ 0.899090] libphy: stmmac: probed [ 0.902484] eth0: PHY ID 00221611 at 4 IRQ POLL (stmmac-0:04) active
Quoted 4 lines
Thx Dinh, so you are using the Enhanced/Alternate descriptors I am debugging on my side on a setup with normal descriptors, I let you know
Doesn't the printout "Enhanced/Alternate descriptors" mean that I'm using Enhanced/Alternate descriptors?
Dinh
Quoted 45 lines · Dinh Nguyen
Quoted 43 lines · Giuseppe CAVALLARO
Quoted 26 lines · Dinh Nguyen
Quoted 12 lines · Giuseppe CAVALLARO
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).So, supposing the probe is ok and phy is connected, I need your input ...
Quoted 9 lines
Tomeu: after revering the
0e80bdc9a72d(stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.Here it is:
...
Quoted 12 lines
[ 0.850523] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.855570] Ring mode enabled [ 0.858611] DMA HW capability register supported [ 0.863128] Enhanced/Alternate descriptors [ 0.867482] Enabled extended descriptors [ 0.871482] RX Checksum Offload Engine supported (type 2) [ 0.876948] TX Checksum insertion supported [ 0.881204] Enable RX Mitigation via HW Watchdog Timer [ 0.886863] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found [ 0.899090] libphy: stmmac: probed [ 0.902484] eth0: PHY ID 00221611 at 4 IRQ POLL (stmmac-0:04) active
Quoted 7 lines
Quoted 4 lines
Thx Dinh, so you are using the Enhanced/Alternate descriptors I am debugging on my side on a setup with normal descriptors, I let you know
Doesn't the printout "Enhanced/Alternate descriptors" mean that I'm using Enhanced/Alternate descriptors?
yes this means that you have the Databook 3.70a and, from the HW capability register, the driver will use the Enhanced/Alternate descriptors. This is the same HW I am using on my side where the stmmac is working fine.
In the case where it is failing on net-next, although on Databook 3.50a, the HW capability register says that there is no enhanced descriptors and the driver uses the normal ones.
Tomeu, I kindly ask you to try the patch attached. I found a bug on Tx path for normal descriptors. Please let me know if this help. Also let me know if we actually need to revert the 0e80bdc9a72d.
I am trying to find some HW where test the normal descriptors to speed-up the tests on my side directly.
Let me know and thx in advance.
Regards,
Peppe
Quoted 3 lines
Dinh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stmmac-fix-tx-prepare-for-normal-desc.patch
Type: text/x-patch
Size: 1221 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160311/5f65d1f1/attachment.bin>
Quoted 68 lines · Giuseppe CAVALLARO
Quoted 53 lines · Dinh Nguyen
Quoted 50 lines · Giuseppe CAVALLARO
Quoted 28 lines · Dinh Nguyen
Quoted 13 lines · Giuseppe CAVALLARO
Hi Tomeu, Dinh, Andreas
I need a sum and help from you to go ahead on the
tx timeout.The "stmmac: MDIO fixes" seems to be the candidate to
fix the phy connection and I will send the V2 asap (Andreas' comment).So, supposing the probe is ok and phy is connected, I need your input ...
Quoted 9 lines
Tomeu: after revering the
0e80bdc9a72d(stmmac: first frame
prep at the end of xmit routine) the network is not stable and there is a timeout after a while. The box has 3.50 with normal desc settings.Dinh: the network is ok, I wonder if you can share a boot
log just to understand if the normal or enhanced descriptors are used.Here it is:
...
Quoted 14 lines
[ 0.850523] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.855570] Ring mode enabled [ 0.858611] DMA HW capability register supported [ 0.863128] Enhanced/Alternate descriptors [ 0.867482] Enabled extended descriptors [ 0.871482] RX Checksum Offload Engine supported (type 2) [ 0.876948] TX Checksum insertion supported [ 0.881204] Enable RX Mitigation via HW Watchdog Timer [ 0.886863] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found [ 0.899090] libphy: stmmac: probed [ 0.902484] eth0: PHY ID 00221611 at 4 IRQ POLL (stmmac-0:04) activeQuoted 7 lines
Quoted 4 lines
Thx Dinh, so you are using the Enhanced/Alternate descriptors I am debugging on my side on a setup with normal descriptors, I let you know
Doesn't the printout "Enhanced/Alternate descriptors" mean that I'm using Enhanced/Alternate descriptors?
yes this means that you have the Databook 3.70a and, from the HW capability register, the driver will use the Enhanced/Alternate descriptors. This is the same HW I am using on my side where the stmmac is working fine.
Quoted 7 lines
In the case where it is failing on net-next, although on Databook 3.50a, the HW capability register says that there is no enhanced descriptors and the driver uses the normal ones.
Tomeu, I kindly ask you to try the patch attached. I found a bug on Tx path for normal descriptors. Please let me know if this help. Also let me know if we actually need to revert the
0e80bdc9a72d.
Hi Peppe,
with that patch I don't see any difference at all in my setup.
So to be clear, with these commits on top of next-20160314, I still get the hang during boot:
209afef6f0cd ARM: dts: rockchip: Add mdio node to ethernet node 2315acc6cf7f Revert "stmmac: first frame prep at the end of xmit routine" b5e08e810c63 stmmac: fix tx prepare for normal desc 37c15a31d850 i2c: immediately mark ourselves as registered 4342eec3c5a2 Add linux-next specific files for 20160314
[ 27.521026] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 27.529460] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed out
https://git.collabora.com/cgit/user/tomeu/linux.git/log/?h=broken-eth-on-rock2
Quoted 2 lines
I am trying to find some HW where test the normal descriptors to speed-up the tests on my side directly.
Maybe get your tree in kernelci.org? I'm not sure if it's currently doing any nfsroot boots, though.
Regards,
Tomeu
Quoted 9 lines
Let me know and thx in advance.
Regards,
PeppeQuoted 3 lines
Dinh
Hi Tomeu
Quoted 13 lines · Tomeu Vizoso
Hi Peppe,
with that patch I don't see any difference at all in my setup.
So to be clear, with these commits on top of next-20160314, I still get the hang during boot:
209afef6f0cdARM: dts: rockchip: Add mdio node to ethernet node2315acc6cf7fRevert "stmmac: first frame prep at the end of xmit routine"b5e08e810c63stmmac: fix tx prepare for normal desc37c15a31d850i2c: immediately mark ourselves as registered4342eec3c5a2Add linux-next specific files for 20160314
Quoted 3 lines
[ 27.521026] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 27.529460] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0 timed out
I do not reproduce the WATCHDOG but i am continuing to look at the code to understand if normal descriptor management is ok or not. I keep you informed.
Just an info, did you test with 2315acc6cf7f included? Just to understand if it is introducing a problem. It works in case of enhanced descriptors are used instead of.
thx I will take a look at this
Regards
Peppe
Quoted 33 lines · Giuseppe CAVALLARO
Hi Tomeu
Quoted 14 lines · Tomeu Vizoso
Hi Peppe,
with that patch I don't see any difference at all in my setup.
So to be clear, with these commits on top of next-20160314, I still get the hang during boot:
209afef6f0cdARM: dts: rockchip: Add mdio node to ethernet node2315acc6cf7fRevert "stmmac: first frame prep at the end of xmit routine"b5e08e810c63stmmac: fix tx prepare for normal desc37c15a31d850i2c: immediately mark ourselves as registered4342eec3c5a2Add linux-next specific files for 20160314Quoted 4 lines
[ 27.521026] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x284/0x288 [ 27.529460] NETDEV WATCHDOG: eth0 (rk_gmac-dwmac): transmit queue 0timed out
I do not reproduce the WATCHDOG but i am continuing to look at the code to understand if normal descriptor management is ok or not. I keep you informed.
Just an info, did you test with
2315acc6cf7fincluded? Just to understand if it is introducing a problem. It works in case of enhanced descriptors are used instead of.Quoted 2 lines
Quoted 4 lines
thx I will take a look at this
Thanks.
Btw, I have rebased on top of 4.5 this morning and I have noticed that 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") got in there, so I guess we have now a bunch of boards with broken network on that release :(
Regards,
Tomeu
Quoted 4 lines
Regards
Peppe
Hello Tomeu
Quoted 6 lines · Tomeu Vizoso
Thanks.
Btw, I have rebased on top of 4.5 this morning and I have noticed that
88f8b1bb41c6("stmmac: Fix 'eth0: No PHY found' regression") got in there, so I guess we have now a bunch of boards with broken network on that release:(
This is the status on my side: I am testing on an HW that has the Enhanced descriptors and all works fine.
On this HW, if I force the driver to use the normal descriptor layout, I meet problems but using both net.git and net-next. So I suspect I cannot ply with this HW forcing the normal descriptors. But! That is helping me to check if, on net-next, the stmmac is actually programming fine the normal desc case.
I have just found another fix so I kindly ask you to apply the temp patch attached and let me know.
In details, I have noticed that the OWN bit was not set in the right TDES0.
I also ask you to give me a log of the kernel where the stmmac was running fine. I would like to see which configuration it is selected at runtime by the driver on your box.
From your previous logs (where the stmmac failed), it seems that
the problem is on normal desc but, to be honest, this is the first case I see a 3.50a with HW capability register and w/o Enhanced descriptors.
Best Regards
Peppe
Quoted 3 lines
Regards,
Tomeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160315/143d261f/attachment-0001.bin>
Quoted 26 lines · Giuseppe CAVALLARO
Hello Tomeu
Quoted 7 lines · Tomeu Vizoso
Thanks.
Btw, I have rebased on top of 4.5 this morning and I have noticed that
88f8b1bb41c6("stmmac: Fix 'eth0: No PHY found' regression") got in there, so I guess we have now a bunch of boards with broken network on that release:(This is the status on my side: I am testing on an HW that has the Enhanced descriptors and all works fine.
On this HW, if I force the driver to use the normal descriptor layout, I meet problems but using both net.git and net-next. So I suspect I cannot ply with this HW forcing the normal descriptors. But! That is helping me to check if, on net-next, the stmmac is actually programming fine the normal desc case.
I have just found another fix so I kindly ask you to apply the temp patch attached and let me know.
In details, I have noticed that the OWN bit was not set in the right TDES0.
Quoted 8 lines
I also ask you to give me a log of the kernel where the stmmac was running fine. I would like to see which configuration it is selected at runtime by the driver on your box.
From your previous logs (where the stmmac failed), it seems that the problem is on normal desc but, to be honest, this is the first case I see a 3.50a with HW capability register and w/o Enhanced descriptors.
Are you still working on a fix for:
[ 1.196110] libphy: PHY stmmac-0:ffffffff not found [ 1.200972] eth0: Could not attach to PHY [ 1.204991] stmmac_open: Cannot attach to PHY (error: -19)
I see the error still there as of linux-next 20160330.
Dinh
Quoted 37 lines · Dinh Nguyen
Quoted 26 lines · Giuseppe CAVALLARO
Hello Tomeu
Quoted 7 lines · Tomeu Vizoso
Thanks.
Btw, I have rebased on top of 4.5 this morning and I have noticed that
88f8b1bb41c6("stmmac: Fix 'eth0: No PHY found' regression") got in there, so I guess we have now a bunch of boards with broken network on that release:(This is the status on my side: I am testing on an HW that has the Enhanced descriptors and all works fine.
On this HW, if I force the driver to use the normal descriptor layout, I meet problems but using both net.git and net-next. So I suspect I cannot ply with this HW forcing the normal descriptors. But! That is helping me to check if, on net-next, the stmmac is actually programming fine the normal desc case.
I have just found another fix so I kindly ask you to apply the temp patch attached and let me know.
In details, I have noticed that the OWN bit was not set in the right TDES0.Quoted 8 lines
I also ask you to give me a log of the kernel where the stmmac was running fine. I would like to see which configuration it is selected at runtime by the driver on your box.
From your previous logs (where the stmmac failed), it seems that
the problem is on normal desc but, to be honest, this is the first case I see a 3.50a with HW capability register and w/o Enhanced descriptors.
Quoted 7 lines
Are you still working on a fix for:
[ 1.196110] libphy: PHY stmmac-0:ffffffff not found [ 1.200972] eth0: Could not attach to PHY [ 1.204991] stmmac_open: Cannot attach to PHY (error: -19)I see the error still there as of linux-next 20160330.
this could be because the fixes have been not applied on net-next I will check and resend all asap
peppe
Quoted 3 lines
Dinh
Hi Andreas and Dinh Thanks for your feedback i will check it.
Best regards
Gabriel
Quoted 41 lines · Dinh Nguyen
Quoted 16 lines · Andreas F?rber
Am 07.03.2016 um 16:52 schrieb Giuseppe CAVALLARO:
Quoted 15 lines · Andreas F?rber
Quoted 13 lines
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 5 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.Quoted 9 lines
Quoted 1 line
Andreas, I will check it and let you know asap.
I verified that it's just these two commits that I need to revert:
"stmmac: Fix 'eth0: No PHY found' regression" "stmmac: first frame prep at the end of xmit routine"
Those in between don't cause conflicts and seem to work okay.
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Thanks,
Dinh
A message that is not in the archive (sent off-list or not yet received): CAG374jBLD5YuBT=r3V98OqdUTXMepvQ_tLz4XMJdQMzzGYi22A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 1 line · Gabriel Fernandez
Hi Andreas and Dinh Thanks for your feedback i will check it.
hmm, I was looking at the code and indeed I have some doubt on mdio_bus_data management that the patch changes explaining why the Andreas's box fails and phy_add is not detected.
Keep the sync
peppe
Quoted 48 lines
Best regards
Gabriel
Quoted 41 lines · Dinh Nguyen
Quoted 16 lines · Andreas F?rber
Am 07.03.2016 um 16:52 schrieb Giuseppe CAVALLARO:
Quoted 15 lines · Andreas F?rber
Quoted 13 lines
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 2 lines · Andreas F?rber
Quoted 1 line
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 5 lines
Quoted 1 line
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.Quoted 9 lines
Quoted 1 line
Andreas, I will check it and let you know asap.
I verified that it's just these two commits that I need to revert:
"stmmac: Fix 'eth0: No PHY found' regression" "stmmac: first frame prep at the end of xmit routine"
Those in between don't cause conflicts and seem to work okay.
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Thanks,
Dinh
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Giuseppe CAVALLARO
Quoted 2 lines · Gabriel Fernandez
Hi Andreas and Dinh Thanks for your feedback i will check it.
Quoted 8 lines
hmm, I was looking at the code and indeed I have some doubt on
mdio_bus_datamanagement that the patch changes explaining why the Andreas's box fails andphy_addis not detected.Keep the sync
peppe
Okay Thanks Peppe
Gabriel
Quoted 64 lines
Quoted 63 lines
Best regards
Gabriel
Quoted 53 lines · Dinh Nguyen
Quoted 29 lines · Andreas F?rber
Am 07.03.2016 um 16:52 schrieb Giuseppe CAVALLARO:
Quoted 19 lines · Andreas F?rber
Quoted 17 lines
Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO:
Quoted 4 lines · Andreas F?rber
Quoted 2 lines
Indeed, reverting Gabriel's commit fixes the observed error messages
[...]
Quoted 7 lines
Quoted 2 lines
However, I am unable to ping any hosts on the network now.
hmm, this could be another problem. I wonder if you can check which recent patch is introducing the problem on ARM64. For example if this depends on
Oct_2015update.Quoted 6 lines
Quoted 3 lines
I've had success reverting
drivers/net/ethernet/stmicro/up to and including "stmmac: first frame prep at the end of xmit routine", i.e. top 7 commits.Andreas, I will check it and let you know asap.
Quoted 7 lines
I verified that it's just these two commits that I need to revert:
"stmmac: Fix 'eth0: No PHY found' regression" "stmmac: first frame prep at the end of xmit routine"
Those in between don't cause conflicts and seem to work okay.
I'm seeing the same issue on the SoCFPGA platform:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)If I just revert:
"stmmac: Fix 'eth0: No PHY found' regression"
then the issue goes away.
Thanks,
Dinh
Hi
Quoted 9 lines · Andreas F?rber
Am 06.03.2016 um 20:53 schrieb Andreas F?rber:
Quoted 5 lines
On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY:
libphy: PHY stmmac-0:ffffffff not found
eth0: Could not attach to PHYstmmac_open: Cannot attach to PHY (error: -19)Still with us in next-20160307. CC'ing stmmac maintainers.
tx_delay = <0x30>;
rx_delay = <0x10>;
status = "ok";
+ mdio0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "snps,dwmac-mdio";
+ ethphy0: ethernet-phy at 0 {
+ };+ };
This is sufficient to get it in the rk3288 firefly
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
Michael
Quoted 13 lines
http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/drivers/net/ethernet/stmicro
Regards,
Andreas--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)_______________________________________________
Linux-rockchip mailing list
Linux-rockchip at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Signature · 4 lines
| Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |