All of lore.kernel.org
 help / color / mirror / Atom feed
* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-16 11:19 Bert Lindner
  2016-03-16 11:39 ` Marc Zyngier
  0 siblings, 1 reply; 33+ messages in thread
From: Bert Lindner @ 2016-03-16 11:19 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Hopefully this is the correct place and way to report this.

For the board sun7i-a20-olinuxino-lime2, there seems to be a problem 
with the eth0 PHY in mainline kernel 4.5.0 that developed since 
4.5.0-rc7. Ethernet does not work, although eth0 is reported:

root at lime2-079f:~# ip a l eth0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group 
default qlen 1000
     link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff

  Difference reported in dmesg:

4.5.0-rc7:
[    9.379279] NET: Registered protocol family 10
[   10.217148]  RX IPC Checksum Offload disabled
[   10.217195]  No MAC Management Counters available
[   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control off
[   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

4.5.0:
[    9.767125] NET: Registered protocol family 10
[   10.357405] libphy: PHY stmmac-0:ffffffff not found
[   10.362382] eth0: Could not attach to PHY
[   10.366557] stmmac_open: Cannot attach to PHY (error: -19)

.config is identical for both, also after make oldconfig, apart from 
comment with version number. DTB file is also identical between the two 
versions.

Kernels are compiled on the board itself. /proc/version string:
Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1 
(Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro 
4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016

Please let me know if more info is needed, if I should post complete 
.config, test compile with a particular config or patch, etc. Part of 
.config below.

Best,

     -Bert

grep -i 'mac\|eth\|sun[457]' config-4.5.0-rc7
CONFIG_MAC_PARTITION=y
# CONFIG_MACH_SUN4I is not set
# CONFIG_MACH_SUN5I is not set
# CONFIG_MACH_SUN6I is not set
CONFIG_MACH_SUN7I=y
# CONFIG_MACH_SUN8I is not set
# CONFIG_MACH_SUN9I is not set
CONFIG_NETFILTER_XT_MATCH_MAC=m
CONFIG_IP_SET_BITMAP_IPMAC=m
CONFIG_IP_SET_HASH_MAC=m
CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set
CONFIG_SCTP_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_COOKIE_HMAC_SHA1 is not set
CONFIG_L2TP_ETH=m
CONFIG_MAC80211=m
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
CONFIG_MAC80211_RC_MINSTREL_VHT=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
CONFIG_MAC80211_MESH=y
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MACVLAN is not set
# CONFIG_VETH is not set
CONFIG_ETHERNET=y
CONFIG_SUN4I_EMAC=m
# CONFIG_HIX5HD2_GMAC is not set
# CONFIG_HIP04_ETH is not set
# CONFIG_ETHOC is not set
CONFIG_STMMAC_ETH=y
CONFIG_STMMAC_PLATFORM=y
CONFIG_DWMAC_GENERIC=m
CONFIG_DWMAC_IPQ806X=m
CONFIG_DWMAC_LPC18XX=m
CONFIG_DWMAC_MESON=m
CONFIG_DWMAC_ROCKCHIP=m
CONFIG_DWMAC_SOCFPGA=m
CONFIG_DWMAC_STI=m
CONFIG_DWMAC_SUNXI=y
# CONFIG_SYNOPSYS_DWC_ETH_QOS is not set
CONFIG_MDIO_SUN4I=m
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_USB_KAWETH is not set
CONFIG_USB_NET_CDCETHER=m
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_BRCMSMAC is not set
# CONFIG_BRCMFMAC is not set
# CONFIG_MAC80211_HWSIM is not set
CONFIG_TOUCHSCREEN_SUN4I=m
CONFIG_SERIO_SUN4I_PS2=y
CONFIG_SPI_SUN4I=y
# CONFIG_PINCTRL_SUN4I_A10 is not set
# CONFIG_PINCTRL_SUN5I_A10S is not set
# CONFIG_PINCTRL_SUN5I_A13 is not set
CONFIG_PINCTRL_SUN7I_A20=y
# CONFIG_FB_MACMODES is not set
# CONFIG_USB_ETH is not set
CONFIG_DMA_SUN4I=y
# CONFIG_DW_DMAC is not set
CONFIG_SUN4I_TIMER=y
CONFIG_SUN5I_HSTIMER=y
CONFIG_PWM_SUN4I=m
CONFIG_PHY_SUN4I_USB=y
CONFIG_NLS_MAC_ROMAN=m
CONFIG_NLS_MAC_CELTIC=m
CONFIG_NLS_MAC_CENTEURO=m
CONFIG_NLS_MAC_CROATIAN=m
CONFIG_NLS_MAC_CYRILLIC=m
CONFIG_NLS_MAC_GAELIC=m
CONFIG_NLS_MAC_GREEK=m
CONFIG_NLS_MAC_ICELAND=m
CONFIG_NLS_MAC_INUIT=m
CONFIG_NLS_MAC_ROMANIAN=m
CONFIG_NLS_MAC_TURKISH=m
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
CONFIG_CRYPTO_CMAC=m
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_VMAC is not set
CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DEV_SUN4I_SS is not set

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 11:19 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7) Bert Lindner
@ 2016-03-16 11:39 ` Marc Zyngier
  2016-03-16 12:09   ` Robin Murphy
  0 siblings, 1 reply; 33+ messages in thread
From: Marc Zyngier @ 2016-03-16 11:39 UTC (permalink / raw)
  To: linux-arm-kernel

On 16/03/16 11:19, Bert Lindner wrote:
> Hi,
> 
> Hopefully this is the correct place and way to report this.
> 
> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem 
> with the eth0 PHY in mainline kernel 4.5.0 that developed since 
> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> 
> root at lime2-079f:~# ip a l eth0
> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group 
> default qlen 1000
>      link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
> 
>   Difference reported in dmesg:
> 
> 4.5.0-rc7:
> [    9.379279] NET: Registered protocol family 10
> [   10.217148]  RX IPC Checksum Offload disabled
> [   10.217195]  No MAC Management Counters available
> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
> 1Gbps/Full - flow control off
> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> 4.5.0:
> [    9.767125] NET: Registered protocol family 10
> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
> [   10.362382] eth0: Could not attach to PHY
> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> 
> .config is identical for both, also after make oldconfig, apart from 
> comment with version number. DTB file is also identical between the two 
> versions.
> 
> Kernels are compiled on the board itself. /proc/version string:
> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1 
> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro 
> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
> 
> Please let me know if more info is needed, if I should post complete 
> .config, test compile with a particular config or patch, etc. Part of 
> .config below.

Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
regression") and report whether or not this changes anything? This seems
to be the only stmac patch between -rc7 and release...

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 11:39 ` Marc Zyngier
@ 2016-03-16 12:09   ` Robin Murphy
  2016-03-16 13:06     ` Marc Zyngier
       [not found]     ` <56E94CF4.2060607-5wv7dgnIgG8@public.gmane.org>
  0 siblings, 2 replies; 33+ messages in thread
From: Robin Murphy @ 2016-03-16 12:09 UTC (permalink / raw)
  To: linux-arm-kernel

On 16/03/16 11:39, Marc Zyngier wrote:
> On 16/03/16 11:19, Bert Lindner wrote:
>> Hi,
>>
>> Hopefully this is the correct place and way to report this.
>>
>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>
>> root at lime2-079f:~# ip a l eth0
>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>> default qlen 1000
>>       link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>
>>    Difference reported in dmesg:
>>
>> 4.5.0-rc7:
>> [    9.379279] NET: Registered protocol family 10
>> [   10.217148]  RX IPC Checksum Offload disabled
>> [   10.217195]  No MAC Management Counters available
>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>> 1Gbps/Full - flow control off
>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>
>> 4.5.0:
>> [    9.767125] NET: Registered protocol family 10
>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>> [   10.362382] eth0: Could not attach to PHY
>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>
>> .config is identical for both, also after make oldconfig, apart from
>> comment with version number. DTB file is also identical between the two
>> versions.
>>
>> Kernels are compiled on the board itself. /proc/version string:
>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>
>> Please let me know if more info is needed, if I should post complete
>> .config, test compile with a particular config or patch, etc. Part of
>> .config below.
>
> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
> regression") and report whether or not this changes anything? This seems
> to be the only stmac patch between -rc7 and release...

Sounds like the same thing as the giant ongoing discussion thread here:

http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830

Robin.

>
> Thanks,
>
> 	M.
>

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 12:09   ` Robin Murphy
@ 2016-03-16 13:06     ` Marc Zyngier
       [not found]     ` <56E94CF4.2060607-5wv7dgnIgG8@public.gmane.org>
  1 sibling, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-03-16 13:06 UTC (permalink / raw)
  To: linux-arm-kernel

On 16/03/16 12:09, Robin Murphy wrote:
> On 16/03/16 11:39, Marc Zyngier wrote:
>> On 16/03/16 11:19, Bert Lindner wrote:
>>> Hi,
>>>
>>> Hopefully this is the correct place and way to report this.
>>>
>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>
>>> root at lime2-079f:~# ip a l eth0
>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>> default qlen 1000
>>>       link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>
>>>    Difference reported in dmesg:
>>>
>>> 4.5.0-rc7:
>>> [    9.379279] NET: Registered protocol family 10
>>> [   10.217148]  RX IPC Checksum Offload disabled
>>> [   10.217195]  No MAC Management Counters available
>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>> 1Gbps/Full - flow control off
>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>
>>> 4.5.0:
>>> [    9.767125] NET: Registered protocol family 10
>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>> [   10.362382] eth0: Could not attach to PHY
>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>
>>> .config is identical for both, also after make oldconfig, apart from
>>> comment with version number. DTB file is also identical between the two
>>> versions.
>>>
>>> Kernels are compiled on the board itself. /proc/version string:
>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>
>>> Please let me know if more info is needed, if I should post complete
>>> .config, test compile with a particular config or patch, etc. Part of
>>> .config below.
>>
>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>> regression") and report whether or not this changes anything? This seems
>> to be the only stmac patch between -rc7 and release...
> 
> Sounds like the same thing as the giant ongoing discussion thread here:
> 
> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830

Seems related indeed. What a mess.

Bert, if you can confirm that reverting this patch solves your issue,
maybe it'd be worth shimming in in that thread, as it looks like a bunch
of systems are affected.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 12:09   ` Robin Murphy
@ 2016-03-16 13:10         ` Andreas Färber
       [not found]     ` <56E94CF4.2060607-5wv7dgnIgG8@public.gmane.org>
  1 sibling, 0 replies; 33+ messages in thread
From: Andreas Färber @ 2016-03-16 13:10 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Marc Zyngier, Bert Lindner, Maxime Ripard,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA, Giuseppe Cavallaro

Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> On 16/03/16 11:39, Marc Zyngier wrote:
>> On 16/03/16 11:19, Bert Lindner wrote:
>>> Hopefully this is the correct place and way to report this.

The main discussion is on netdev list actually, CC'ed.

>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>
>>> root@lime2-079f:~# ip a l eth0
>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>> default qlen 1000
>>>       link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>
>>>    Difference reported in dmesg:
>>>
>>> 4.5.0-rc7:
>>> [    9.379279] NET: Registered protocol family 10
>>> [   10.217148]  RX IPC Checksum Offload disabled
>>> [   10.217195]  No MAC Management Counters available
>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>> 1Gbps/Full - flow control off
>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>
>>> 4.5.0:
>>> [    9.767125] NET: Registered protocol family 10
>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>> [   10.362382] eth0: Could not attach to PHY
>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>
>>> .config is identical for both, also after make oldconfig, apart from
>>> comment with version number. DTB file is also identical between the two
>>> versions.
>>>
>>> Kernels are compiled on the board itself. /proc/version string:
>>> Linux version 4.5.0-rc7 (root@lime2-079f) (gcc version 4.9.1
>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>> Linux version 4.5.0 (root@lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>
>>> Please let me know if more info is needed, if I should post complete
>>> .config, test compile with a particular config or patch, etc. Part of
>>> .config below.
>>
>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>> regression") and report whether or not this changes anything? This seems
>> to be the only stmac patch between -rc7 and release...
> 
> Sounds like the same thing as the giant ongoing discussion thread here:
> 
> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830

v4 fixes for 4.5 are here:

https://patchwork.ozlabs.org/patch/598195/ (revert)
https://patchwork.ozlabs.org/patch/598196/

v2 fixes for linux-next here:

https://patchwork.ozlabs.org/patch/598331/ (revert)
https://patchwork.ozlabs.org/patch/598332/

Please let Peppe know whether they work for you guys.

Cheers,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-16 13:10         ` Andreas Färber
  0 siblings, 0 replies; 33+ messages in thread
From: Andreas Färber @ 2016-03-16 13:10 UTC (permalink / raw)
  To: linux-arm-kernel

Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> On 16/03/16 11:39, Marc Zyngier wrote:
>> On 16/03/16 11:19, Bert Lindner wrote:
>>> Hopefully this is the correct place and way to report this.

The main discussion is on netdev list actually, CC'ed.

>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>
>>> root at lime2-079f:~# ip a l eth0
>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>> default qlen 1000
>>>       link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>
>>>    Difference reported in dmesg:
>>>
>>> 4.5.0-rc7:
>>> [    9.379279] NET: Registered protocol family 10
>>> [   10.217148]  RX IPC Checksum Offload disabled
>>> [   10.217195]  No MAC Management Counters available
>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>> 1Gbps/Full - flow control off
>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>
>>> 4.5.0:
>>> [    9.767125] NET: Registered protocol family 10
>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>> [   10.362382] eth0: Could not attach to PHY
>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>
>>> .config is identical for both, also after make oldconfig, apart from
>>> comment with version number. DTB file is also identical between the two
>>> versions.
>>>
>>> Kernels are compiled on the board itself. /proc/version string:
>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>
>>> Please let me know if more info is needed, if I should post complete
>>> .config, test compile with a particular config or patch, etc. Part of
>>> .config below.
>>
>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>> regression") and report whether or not this changes anything? This seems
>> to be the only stmac patch between -rc7 and release...
> 
> Sounds like the same thing as the giant ongoing discussion thread here:
> 
> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830

v4 fixes for 4.5 are here:

https://patchwork.ozlabs.org/patch/598195/ (revert)
https://patchwork.ozlabs.org/patch/598196/

v2 fixes for linux-next here:

https://patchwork.ozlabs.org/patch/598331/ (revert)
https://patchwork.ozlabs.org/patch/598332/

Please let Peppe know whether they work for you guys.

Cheers,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 13:10         ` Andreas Färber
@ 2016-03-16 15:10             ` Bert Lindner
  -1 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-03-16 15:10 UTC (permalink / raw)
  To: Andreas Färber, Robin Murphy
  Cc: Marc Zyngier, Maxime Ripard, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA, Giuseppe Cavallaro

On 2016-03-16 14:10, Andreas Färber wrote:
> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>> On 16/03/16 11:39, Marc Zyngier wrote:
>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>> Hopefully this is the correct place and way to report this.
>
> The main discussion is on netdev list actually, CC'ed.
>
>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>
>>>> root@lime2-079f:~# ip a l eth0
>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>> default qlen 1000
>>>>        link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>
>>>>     Difference reported in dmesg:
>>>>
>>>> 4.5.0-rc7:
>>>> [    9.379279] NET: Registered protocol family 10
>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>> [   10.217195]  No MAC Management Counters available
>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>> 1Gbps/Full - flow control off
>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>
>>>> 4.5.0:
>>>> [    9.767125] NET: Registered protocol family 10
>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>> [   10.362382] eth0: Could not attach to PHY
>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>
>>>> .config is identical for both, also after make oldconfig, apart from
>>>> comment with version number. DTB file is also identical between the two
>>>> versions.
>>>>
>>>> Kernels are compiled on the board itself. /proc/version string:
>>>> Linux version 4.5.0-rc7 (root@lime2-079f) (gcc version 4.9.1
>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>> Linux version 4.5.0 (root@lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>
>>>> Please let me know if more info is needed, if I should post complete
>>>> .config, test compile with a particular config or patch, etc. Part of
>>>> .config below.
>>>
>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>> regression") and report whether or not this changes anything? This seems
>>> to be the only stmac patch between -rc7 and release...
>>
>> Sounds like the same thing as the giant ongoing discussion thread here:
>>
>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>
> v4 fixes for 4.5 are here:
>
> https://patchwork.ozlabs.org/patch/598195/ (revert)
> https://patchwork.ozlabs.org/patch/598196/
>
> v2 fixes for linux-next here:
>
> https://patchwork.ozlabs.org/patch/598331/ (revert)
> https://patchwork.ozlabs.org/patch/598332/
>
> Please let Peppe know whether they work for you guys.

Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:

root@lime2-079f:~# cat /proc/version
Linux version 4.5.0-minus-88f8b1b (root@lime2-079f) (gcc version 4.9.1 
(Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016

 From dmesg output:
[    9.731730] NET: Registered protocol family 10
[   10.516893]  RX IPC Checksum Offload disabled
[   10.516948]  No MAC Management Counters available
[   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control off
[   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

.. and connected over ethernet.

Thanks, best,

	-bert

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-16 15:10             ` Bert Lindner
  0 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-03-16 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

On 2016-03-16 14:10, Andreas F?rber wrote:
> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>> On 16/03/16 11:39, Marc Zyngier wrote:
>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>> Hopefully this is the correct place and way to report this.
>
> The main discussion is on netdev list actually, CC'ed.
>
>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>
>>>> root at lime2-079f:~# ip a l eth0
>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>> default qlen 1000
>>>>        link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>
>>>>     Difference reported in dmesg:
>>>>
>>>> 4.5.0-rc7:
>>>> [    9.379279] NET: Registered protocol family 10
>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>> [   10.217195]  No MAC Management Counters available
>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>> 1Gbps/Full - flow control off
>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>
>>>> 4.5.0:
>>>> [    9.767125] NET: Registered protocol family 10
>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>> [   10.362382] eth0: Could not attach to PHY
>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>
>>>> .config is identical for both, also after make oldconfig, apart from
>>>> comment with version number. DTB file is also identical between the two
>>>> versions.
>>>>
>>>> Kernels are compiled on the board itself. /proc/version string:
>>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>
>>>> Please let me know if more info is needed, if I should post complete
>>>> .config, test compile with a particular config or patch, etc. Part of
>>>> .config below.
>>>
>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>> regression") and report whether or not this changes anything? This seems
>>> to be the only stmac patch between -rc7 and release...
>>
>> Sounds like the same thing as the giant ongoing discussion thread here:
>>
>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>
> v4 fixes for 4.5 are here:
>
> https://patchwork.ozlabs.org/patch/598195/ (revert)
> https://patchwork.ozlabs.org/patch/598196/
>
> v2 fixes for linux-next here:
>
> https://patchwork.ozlabs.org/patch/598331/ (revert)
> https://patchwork.ozlabs.org/patch/598332/
>
> Please let Peppe know whether they work for you guys.

Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:

root at lime2-079f:~# cat /proc/version
Linux version 4.5.0-minus-88f8b1b (root at lime2-079f) (gcc version 4.9.1 
(Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016

 From dmesg output:
[    9.731730] NET: Registered protocol family 10
[   10.516893]  RX IPC Checksum Offload disabled
[   10.516948]  No MAC Management Counters available
[   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control off
[   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

.. and connected over ethernet.

Thanks, best,

	-bert

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 15:10             ` Bert Lindner
@ 2016-03-16 17:42                 ` Marc Zyngier
  -1 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-03-16 17:42 UTC (permalink / raw)
  To: Bert Lindner, Andreas Färber, Robin Murphy
  Cc: Maxime Ripard, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA, Giuseppe Cavallaro

On 16/03/16 15:10, Bert Lindner wrote:
> On 2016-03-16 14:10, Andreas Färber wrote:
>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>> Hopefully this is the correct place and way to report this.
>>
>> The main discussion is on netdev list actually, CC'ed.
>>
>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> root@lime2-079f:~# ip a l eth0
>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>>> default qlen 1000
>>>>>        link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>>
>>>>>     Difference reported in dmesg:
>>>>>
>>>>> 4.5.0-rc7:
>>>>> [    9.379279] NET: Registered protocol family 10
>>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>>> [   10.217195]  No MAC Management Counters available
>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>> 1Gbps/Full - flow control off
>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>
>>>>> 4.5.0:
>>>>> [    9.767125] NET: Registered protocol family 10
>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> .config is identical for both, also after make oldconfig, apart from
>>>>> comment with version number. DTB file is also identical between the two
>>>>> versions.
>>>>>
>>>>> Kernels are compiled on the board itself. /proc/version string:
>>>>> Linux version 4.5.0-rc7 (root@lime2-079f) (gcc version 4.9.1
>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>>> Linux version 4.5.0 (root@lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>>
>>>>> Please let me know if more info is needed, if I should post complete
>>>>> .config, test compile with a particular config or patch, etc. Part of
>>>>> .config below.
>>>>
>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>>> regression") and report whether or not this changes anything? This seems
>>>> to be the only stmac patch between -rc7 and release...
>>>
>>> Sounds like the same thing as the giant ongoing discussion thread here:
>>>
>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>>
>> v4 fixes for 4.5 are here:
>>
>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>> https://patchwork.ozlabs.org/patch/598196/
>>
>> v2 fixes for linux-next here:
>>
>> https://patchwork.ozlabs.org/patch/598331/ (revert)
>> https://patchwork.ozlabs.org/patch/598332/
>>
>> Please let Peppe know whether they work for you guys.
> 
> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
> 
> root@lime2-079f:~# cat /proc/version
> Linux version 4.5.0-minus-88f8b1b (root@lime2-079f) (gcc version 4.9.1 
> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
> 
>  From dmesg output:
> [    9.731730] NET: Registered protocol family 10
> [   10.516893]  RX IPC Checksum Offload disabled
> [   10.516948]  No MAC Management Counters available
> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
> 1Gbps/Full - flow control off
> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> .. and connected over ethernet.

Good to know, thanks. Could you also give the potential fix a go (as
mentioned by Andreas)? Just to make sure that whatever gets merged next
will actually fix the issue.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-16 17:42                 ` Marc Zyngier
  0 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-03-16 17:42 UTC (permalink / raw)
  To: linux-arm-kernel

On 16/03/16 15:10, Bert Lindner wrote:
> On 2016-03-16 14:10, Andreas F?rber wrote:
>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>> Hopefully this is the correct place and way to report this.
>>
>> The main discussion is on netdev list actually, CC'ed.
>>
>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> root at lime2-079f:~# ip a l eth0
>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>>> default qlen 1000
>>>>>        link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>>
>>>>>     Difference reported in dmesg:
>>>>>
>>>>> 4.5.0-rc7:
>>>>> [    9.379279] NET: Registered protocol family 10
>>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>>> [   10.217195]  No MAC Management Counters available
>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>> 1Gbps/Full - flow control off
>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>
>>>>> 4.5.0:
>>>>> [    9.767125] NET: Registered protocol family 10
>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> .config is identical for both, also after make oldconfig, apart from
>>>>> comment with version number. DTB file is also identical between the two
>>>>> versions.
>>>>>
>>>>> Kernels are compiled on the board itself. /proc/version string:
>>>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>>
>>>>> Please let me know if more info is needed, if I should post complete
>>>>> .config, test compile with a particular config or patch, etc. Part of
>>>>> .config below.
>>>>
>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>>> regression") and report whether or not this changes anything? This seems
>>>> to be the only stmac patch between -rc7 and release...
>>>
>>> Sounds like the same thing as the giant ongoing discussion thread here:
>>>
>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>>
>> v4 fixes for 4.5 are here:
>>
>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>> https://patchwork.ozlabs.org/patch/598196/
>>
>> v2 fixes for linux-next here:
>>
>> https://patchwork.ozlabs.org/patch/598331/ (revert)
>> https://patchwork.ozlabs.org/patch/598332/
>>
>> Please let Peppe know whether they work for you guys.
> 
> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
> 
> root at lime2-079f:~# cat /proc/version
> Linux version 4.5.0-minus-88f8b1b (root at lime2-079f) (gcc version 4.9.1 
> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
> 
>  From dmesg output:
> [    9.731730] NET: Registered protocol family 10
> [   10.516893]  RX IPC Checksum Offload disabled
> [   10.516948]  No MAC Management Counters available
> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
> 1Gbps/Full - flow control off
> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> .. and connected over ethernet.

Good to know, thanks. Could you also give the potential fix a go (as
mentioned by Andreas)? Just to make sure that whatever gets merged next
will actually fix the issue.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 17:42                 ` Marc Zyngier
@ 2016-03-16 23:56                     ` Bert Lindner
  -1 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-03-16 23:56 UTC (permalink / raw)
  To: Marc Zyngier, Andreas Färber, Robin Murphy
  Cc: Maxime Ripard, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA, Giuseppe Cavallaro

On 2016-03-16 18:42, Marc Zyngier wrote:
> On 16/03/16 15:10, Bert Lindner wrote:
>> On 2016-03-16 14:10, Andreas Färber wrote:
>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>> Hopefully this is the correct place and way to report this.
>>>
>>> The main discussion is on netdev list actually, CC'ed.
>>>
>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>>
>>>>>> root@lime2-079f:~# ip a l eth0
>>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>>>> default qlen 1000
>>>>>>         link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>>>
>>>>>>      Difference reported in dmesg:
>>>>>>
>>>>>> 4.5.0-rc7:
>>>>>> [    9.379279] NET: Registered protocol family 10
>>>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>>>> [   10.217195]  No MAC Management Counters available
>>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control off
>>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>
>>>>>> 4.5.0:
>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>>
>>>>>> .config is identical for both, also after make oldconfig, apart from
>>>>>> comment with version number. DTB file is also identical between the two
>>>>>> versions.
>>>>>>
>>>>>> Kernels are compiled on the board itself. /proc/version string:
>>>>>> Linux version 4.5.0-rc7 (root@lime2-079f) (gcc version 4.9.1
>>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>>>> Linux version 4.5.0 (root@lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>>>
>>>>>> Please let me know if more info is needed, if I should post complete
>>>>>> .config, test compile with a particular config or patch, etc. Part of
>>>>>> .config below.
>>>>>
>>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>>>> regression") and report whether or not this changes anything? This seems
>>>>> to be the only stmac patch between -rc7 and release...
>>>>
>>>> Sounds like the same thing as the giant ongoing discussion thread here:
>>>>
>>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>>>
>>> v4 fixes for 4.5 are here:
>>>
>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>> https://patchwork.ozlabs.org/patch/598196/
>>>
>>> v2 fixes for linux-next here:
>>>
>>> https://patchwork.ozlabs.org/patch/598331/ (revert)
>>> https://patchwork.ozlabs.org/patch/598332/
>>>
>>> Please let Peppe know whether they work for you guys.
>>
>> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
>>
>> root@lime2-079f:~# cat /proc/version
>> Linux version 4.5.0-minus-88f8b1b (root@lime2-079f) (gcc version 4.9.1
>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
>>
>>   From dmesg output:
>> [    9.731730] NET: Registered protocol family 10
>> [   10.516893]  RX IPC Checksum Offload disabled
>> [   10.516948]  No MAC Management Counters available
>> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>> 1Gbps/Full - flow control off
>> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>
>> .. and connected over ethernet.
>
> Good to know, thanks. Could you also give the potential fix a go (as
> mentioned by Andreas)? Just to make sure that whatever gets merged next
> will actually fix the issue.

Yes sure, it took a while because I had to travel. Confirmed, the 
v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:

root@lime2-079f:~# cat /proc/version
Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version 
4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016

dmesg:
[    8.245273] NET: Registered protocol family 10
[    9.297406]  RX IPC Checksum Offload disabled
[    9.297460]  No MAC Management Counters available
[    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control rx/tx
[   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

The board is connected to my laptop rather than to a switch, so that 
might be where the flow control message comes from (not sure). Anyway 
ethernet works.

I'm less familiar with linux-next - not sure what base to test against, 
I understand it is being redefined almost daily.

Thanks!

	-Bert

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-16 23:56                     ` Bert Lindner
  0 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-03-16 23:56 UTC (permalink / raw)
  To: linux-arm-kernel

On 2016-03-16 18:42, Marc Zyngier wrote:
> On 16/03/16 15:10, Bert Lindner wrote:
>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>> Hopefully this is the correct place and way to report this.
>>>
>>> The main discussion is on netdev list actually, CC'ed.
>>>
>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>>
>>>>>> root at lime2-079f:~# ip a l eth0
>>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
>>>>>> default qlen 1000
>>>>>>         link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
>>>>>>
>>>>>>      Difference reported in dmesg:
>>>>>>
>>>>>> 4.5.0-rc7:
>>>>>> [    9.379279] NET: Registered protocol family 10
>>>>>> [   10.217148]  RX IPC Checksum Offload disabled
>>>>>> [   10.217195]  No MAC Management Counters available
>>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control off
>>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>
>>>>>> 4.5.0:
>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>>
>>>>>> .config is identical for both, also after make oldconfig, apart from
>>>>>> comment with version number. DTB file is also identical between the two
>>>>>> versions.
>>>>>>
>>>>>> Kernels are compiled on the board itself. /proc/version string:
>>>>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
>>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
>>>>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
>>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
>>>>>>
>>>>>> Please let me know if more info is needed, if I should post complete
>>>>>> .config, test compile with a particular config or patch, etc. Part of
>>>>>> .config below.
>>>>>
>>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
>>>>> regression") and report whether or not this changes anything? This seems
>>>>> to be the only stmac patch between -rc7 and release...
>>>>
>>>> Sounds like the same thing as the giant ongoing discussion thread here:
>>>>
>>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
>>>
>>> v4 fixes for 4.5 are here:
>>>
>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>> https://patchwork.ozlabs.org/patch/598196/
>>>
>>> v2 fixes for linux-next here:
>>>
>>> https://patchwork.ozlabs.org/patch/598331/ (revert)
>>> https://patchwork.ozlabs.org/patch/598332/
>>>
>>> Please let Peppe know whether they work for you guys.
>>
>> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
>>
>> root at lime2-079f:~# cat /proc/version
>> Linux version 4.5.0-minus-88f8b1b (root at lime2-079f) (gcc version 4.9.1
>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
>>
>>   From dmesg output:
>> [    9.731730] NET: Registered protocol family 10
>> [   10.516893]  RX IPC Checksum Offload disabled
>> [   10.516948]  No MAC Management Counters available
>> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>> 1Gbps/Full - flow control off
>> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>
>> .. and connected over ethernet.
>
> Good to know, thanks. Could you also give the potential fix a go (as
> mentioned by Andreas)? Just to make sure that whatever gets merged next
> will actually fix the issue.

Yes sure, it took a while because I had to travel. Confirmed, the 
v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:

root at lime2-079f:~# cat /proc/version
Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version 
4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016

dmesg:
[    8.245273] NET: Registered protocol family 10
[    9.297406]  RX IPC Checksum Offload disabled
[    9.297460]  No MAC Management Counters available
[    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control rx/tx
[   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

The board is connected to my laptop rather than to a switch, so that 
might be where the flow control message comes from (not sure). Anyway 
ethernet works.

I'm less familiar with linux-next - not sure what base to test against, 
I understand it is being redefined almost daily.

Thanks!

	-Bert

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-16 23:56                     ` Bert Lindner
@ 2016-03-17  7:52                         ` Marc Zyngier
  -1 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-03-17  7:52 UTC (permalink / raw)
  To: Bert Lindner
  Cc: Andreas Färber, Robin Murphy, Maxime Ripard,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA, Giuseppe Cavallaro

On Thu, 17 Mar 2016 00:56:40 +0100
Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:

> On 2016-03-16 18:42, Marc Zyngier wrote:
> > On 16/03/16 15:10, Bert Lindner wrote:
> >> On 2016-03-16 14:10, Andreas Färber wrote:
> >>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> >>>> On 16/03/16 11:39, Marc Zyngier wrote:
> >>>>> On 16/03/16 11:19, Bert Lindner wrote:
> >>>>>> Hopefully this is the correct place and way to report this.
> >>>
> >>> The main discussion is on netdev list actually, CC'ed.
> >>>
> >>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
> >>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
> >>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> >>>>>>
> >>>>>> root@lime2-079f:~# ip a l eth0
> >>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
> >>>>>> default qlen 1000
> >>>>>>         link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
> >>>>>>
> >>>>>>      Difference reported in dmesg:
> >>>>>>
> >>>>>> 4.5.0-rc7:
> >>>>>> [    9.379279] NET: Registered protocol family 10
> >>>>>> [   10.217148]  RX IPC Checksum Offload disabled
> >>>>>> [   10.217195]  No MAC Management Counters available
> >>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >>>>>> 1Gbps/Full - flow control off
> >>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>>>>>
> >>>>>> 4.5.0:
> >>>>>> [    9.767125] NET: Registered protocol family 10
> >>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
> >>>>>> [   10.362382] eth0: Could not attach to PHY
> >>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> >>>>>>
> >>>>>> .config is identical for both, also after make oldconfig, apart from
> >>>>>> comment with version number. DTB file is also identical between the two
> >>>>>> versions.
> >>>>>>
> >>>>>> Kernels are compiled on the board itself. /proc/version string:
> >>>>>> Linux version 4.5.0-rc7 (root@lime2-079f) (gcc version 4.9.1
> >>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
> >>>>>> Linux version 4.5.0 (root@lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
> >>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
> >>>>>>
> >>>>>> Please let me know if more info is needed, if I should post complete
> >>>>>> .config, test compile with a particular config or patch, etc. Part of
> >>>>>> .config below.
> >>>>>
> >>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
> >>>>> regression") and report whether or not this changes anything? This seems
> >>>>> to be the only stmac patch between -rc7 and release...
> >>>>
> >>>> Sounds like the same thing as the giant ongoing discussion thread here:
> >>>>
> >>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
> >>>
> >>> v4 fixes for 4.5 are here:
> >>>
> >>> https://patchwork.ozlabs.org/patch/598195/ (revert)
> >>> https://patchwork.ozlabs.org/patch/598196/
> >>>
> >>> v2 fixes for linux-next here:
> >>>
> >>> https://patchwork.ozlabs.org/patch/598331/ (revert)
> >>> https://patchwork.ozlabs.org/patch/598332/
> >>>
> >>> Please let Peppe know whether they work for you guys.
> >>
> >> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
> >>
> >> root@lime2-079f:~# cat /proc/version
> >> Linux version 4.5.0-minus-88f8b1b (root@lime2-079f) (gcc version 4.9.1
> >> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
> >>
> >>   From dmesg output:
> >> [    9.731730] NET: Registered protocol family 10
> >> [   10.516893]  RX IPC Checksum Offload disabled
> >> [   10.516948]  No MAC Management Counters available
> >> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >> 1Gbps/Full - flow control off
> >> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>
> >> .. and connected over ethernet.
> >
> > Good to know, thanks. Could you also give the potential fix a go (as
> > mentioned by Andreas)? Just to make sure that whatever gets merged next
> > will actually fix the issue.
> 
> Yes sure, it took a while because I had to travel. Confirmed, the 
> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
> 
> root@lime2-079f:~# cat /proc/version
> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version 
> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
> 
> dmesg:
> [    8.245273] NET: Registered protocol family 10
> [    9.297406]  RX IPC Checksum Offload disabled
> [    9.297460]  No MAC Management Counters available
> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
> 1Gbps/Full - flow control rx/tx
> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> The board is connected to my laptop rather than to a switch, so that 
> might be where the flow control message comes from (not sure). Anyway 
> ethernet works.

Cool, many thanks for taking the time to test and report.

Hopefully Giuseppe will get this merged quickly enough in mainline, and
it should then trickle into a 4.5-stable release (cc-ing stable on
these patches would probably be a good idea, BTW).

> I'm less familiar with linux-next - not sure what base to test against, 
> I understand it is being redefined almost daily.

You can consider -next as a daily view of what mainline could become.
An over-sized crystal ball, in a way... ;-) Given that the regression
exists in mainline, there was no real point testing with -next.

Thanks again,

	M.
-- 
Jazz is not dead. It just smells funny.

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-03-17  7:52                         ` Marc Zyngier
  0 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-03-17  7:52 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 17 Mar 2016 00:56:40 +0100
Bert Lindner <bert@a20.net> wrote:

> On 2016-03-16 18:42, Marc Zyngier wrote:
> > On 16/03/16 15:10, Bert Lindner wrote:
> >> On 2016-03-16 14:10, Andreas F?rber wrote:
> >>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> >>>> On 16/03/16 11:39, Marc Zyngier wrote:
> >>>>> On 16/03/16 11:19, Bert Lindner wrote:
> >>>>>> Hopefully this is the correct place and way to report this.
> >>>
> >>> The main discussion is on netdev list actually, CC'ed.
> >>>
> >>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
> >>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
> >>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> >>>>>>
> >>>>>> root at lime2-079f:~# ip a l eth0
> >>>>>> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
> >>>>>> default qlen 1000
> >>>>>>         link/ether 02:c9:05:02:07:9f brd ff:ff:ff:ff:ff:ff
> >>>>>>
> >>>>>>      Difference reported in dmesg:
> >>>>>>
> >>>>>> 4.5.0-rc7:
> >>>>>> [    9.379279] NET: Registered protocol family 10
> >>>>>> [   10.217148]  RX IPC Checksum Offload disabled
> >>>>>> [   10.217195]  No MAC Management Counters available
> >>>>>> [   10.217627] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>>>>> [   15.206250] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >>>>>> 1Gbps/Full - flow control off
> >>>>>> [   15.206360] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>>>>>
> >>>>>> 4.5.0:
> >>>>>> [    9.767125] NET: Registered protocol family 10
> >>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
> >>>>>> [   10.362382] eth0: Could not attach to PHY
> >>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> >>>>>>
> >>>>>> .config is identical for both, also after make oldconfig, apart from
> >>>>>> comment with version number. DTB file is also identical between the two
> >>>>>> versions.
> >>>>>>
> >>>>>> Kernels are compiled on the board itself. /proc/version string:
> >>>>>> Linux version 4.5.0-rc7 (root at lime2-079f) (gcc version 4.9.1
> >>>>>> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Mon Mar 7 11:57:25 UTC 2016
> >>>>>> Linux version 4.5.0 (root at lime2-079f) (gcc version 4.9.1 (Ubuntu/Linaro
> >>>>>> 4.9.1-16ubuntu6) ) #1 SMP Tue Mar 15 11:39:01 UTC 2016
> >>>>>>
> >>>>>> Please let me know if more info is needed, if I should post complete
> >>>>>> .config, test compile with a particular config or patch, etc. Part of
> >>>>>> .config below.
> >>>>>
> >>>>> Can you please try reverting 88f8b1b ("stmmac: Fix 'eth0: No PHY found'
> >>>>> regression") and report whether or not this changes anything? This seems
> >>>>> to be the only stmac patch between -rc7 and release...
> >>>>
> >>>> Sounds like the same thing as the giant ongoing discussion thread here:
> >>>>
> >>>> http://thread.gmane.org/gmane.linux.drivers.devicetree/159007/focus=402830
> >>>
> >>> v4 fixes for 4.5 are here:
> >>>
> >>> https://patchwork.ozlabs.org/patch/598195/ (revert)
> >>> https://patchwork.ozlabs.org/patch/598196/
> >>>
> >>> v2 fixes for linux-next here:
> >>>
> >>> https://patchwork.ozlabs.org/patch/598331/ (revert)
> >>> https://patchwork.ozlabs.org/patch/598332/
> >>>
> >>> Please let Peppe know whether they work for you guys.
> >>
> >> Hi guys - I can confirm 4.5.0 minus 88f8b1b works for me:
> >>
> >> root at lime2-079f:~# cat /proc/version
> >> Linux version 4.5.0-minus-88f8b1b (root at lime2-079f) (gcc version 4.9.1
> >> (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #2 SMP Wed Mar 16 12:50:03 UTC 2016
> >>
> >>   From dmesg output:
> >> [    9.731730] NET: Registered protocol family 10
> >> [   10.516893]  RX IPC Checksum Offload disabled
> >> [   10.516948]  No MAC Management Counters available
> >> [   10.517374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >> [   15.505548] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >> 1Gbps/Full - flow control off
> >> [   15.505660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>
> >> .. and connected over ethernet.
> >
> > Good to know, thanks. Could you also give the potential fix a go (as
> > mentioned by Andreas)? Just to make sure that whatever gets merged next
> > will actually fix the issue.
> 
> Yes sure, it took a while because I had to travel. Confirmed, the 
> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
> 
> root at lime2-079f:~# cat /proc/version
> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version 
> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
> 
> dmesg:
> [    8.245273] NET: Registered protocol family 10
> [    9.297406]  RX IPC Checksum Offload disabled
> [    9.297460]  No MAC Management Counters available
> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 
> 1Gbps/Full - flow control rx/tx
> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> The board is connected to my laptop rather than to a switch, so that 
> might be where the flow control message comes from (not sure). Anyway 
> ethernet works.

Cool, many thanks for taking the time to test and report.

Hopefully Giuseppe will get this merged quickly enough in mainline, and
it should then trickle into a 4.5-stable release (cc-ing stable on
these patches would probably be a good idea, BTW).

> I'm less familiar with linux-next - not sure what base to test against, 
> I understand it is being redefined almost daily.

You can consider -next as a daily view of what mainline could become.
An over-sized crystal ball, in a way... ;-) Given that the regression
exists in mainline, there was no real point testing with -next.

Thanks again,

	M.
-- 
Jazz is not dead. It just smells funny.

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-03-17  7:52                         ` Marc Zyngier
@ 2016-05-20  5:44                           ` Andre Heider
  -1 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20  5:44 UTC (permalink / raw)
  To: Giuseppe Cavallaro, Alexandre Torgue
  Cc: Bert Lindner, Maxime Ripard, Robin Murphy, Andreas Färber,
	Marc Zyngier, linux-arm-kernel, netdev, linux-sunxi

Giuseppe, Alexandre, et al.,

On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> On Thu, 17 Mar 2016 00:56:40 +0100
> Bert Lindner <bert@a20.net> wrote:
>> On 2016-03-16 18:42, Marc Zyngier wrote:
>> > On 16/03/16 15:10, Bert Lindner wrote:
>> >> On 2016-03-16 14:10, Andreas Färber wrote:
>> >>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>> >>>> On 16/03/16 11:39, Marc Zyngier wrote:
>> >>>>> On 16/03/16 11:19, Bert Lindner wrote:
...
>> >>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>> >>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>> >>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
...
>> >>>>>> [    9.767125] NET: Registered protocol family 10
>> >>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>> >>>>>> [   10.362382] eth0: Could not attach to PHY
>> >>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
...
>> >>> v4 fixes for 4.5 are here:
>> >>>
>> >>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>> >>> https://patchwork.ozlabs.org/patch/598196/
...
>> > Good to know, thanks. Could you also give the potential fix a go (as
>> > mentioned by Andreas)? Just to make sure that whatever gets merged next
>> > will actually fix the issue.
>>
>> Yes sure, it took a while because I had to travel. Confirmed, the
>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>
>> root@lime2-079f:~# cat /proc/version
>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>
>> dmesg:
>> [    8.245273] NET: Registered protocol family 10
>> [    9.297406]  RX IPC Checksum Offload disabled
>> [    9.297460]  No MAC Management Counters available
>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>> 1Gbps/Full - flow control rx/tx
>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>
>> The board is connected to my laptop rather than to a switch, so that
>> might be where the flow control message comes from (not sure). Anyway
>> ethernet works.
>
> Cool, many thanks for taking the time to test and report.
>
> Hopefully Giuseppe will get this merged quickly enough in mainline, and
> it should then trickle into a 4.5-stable release (cc-ing stable on
> these patches would probably be a good idea, BTW).

stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
v4.5 [0], including all five stable releases :(
The v4.5 patches quoted above are already +4 weeks old, could we
please get them into stable?

Thanks!
Andre

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823493

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20  5:44                           ` Andre Heider
  0 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20  5:44 UTC (permalink / raw)
  To: linux-arm-kernel

Giuseppe, Alexandre, et al.,

On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> On Thu, 17 Mar 2016 00:56:40 +0100
> Bert Lindner <bert@a20.net> wrote:
>> On 2016-03-16 18:42, Marc Zyngier wrote:
>> > On 16/03/16 15:10, Bert Lindner wrote:
>> >> On 2016-03-16 14:10, Andreas F?rber wrote:
>> >>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>> >>>> On 16/03/16 11:39, Marc Zyngier wrote:
>> >>>>> On 16/03/16 11:19, Bert Lindner wrote:
...
>> >>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>> >>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>> >>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
...
>> >>>>>> [    9.767125] NET: Registered protocol family 10
>> >>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>> >>>>>> [   10.362382] eth0: Could not attach to PHY
>> >>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
...
>> >>> v4 fixes for 4.5 are here:
>> >>>
>> >>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>> >>> https://patchwork.ozlabs.org/patch/598196/
...
>> > Good to know, thanks. Could you also give the potential fix a go (as
>> > mentioned by Andreas)? Just to make sure that whatever gets merged next
>> > will actually fix the issue.
>>
>> Yes sure, it took a while because I had to travel. Confirmed, the
>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>
>> root at lime2-079f:~# cat /proc/version
>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>
>> dmesg:
>> [    8.245273] NET: Registered protocol family 10
>> [    9.297406]  RX IPC Checksum Offload disabled
>> [    9.297460]  No MAC Management Counters available
>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>> 1Gbps/Full - flow control rx/tx
>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>
>> The board is connected to my laptop rather than to a switch, so that
>> might be where the flow control message comes from (not sure). Anyway
>> ethernet works.
>
> Cool, many thanks for taking the time to test and report.
>
> Hopefully Giuseppe will get this merged quickly enough in mainline, and
> it should then trickle into a 4.5-stable release (cc-ing stable on
> these patches would probably be a good idea, BTW).

stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
v4.5 [0], including all five stable releases :(
The v4.5 patches quoted above are already +4 weeks old, could we
please get them into stable?

Thanks!
Andre

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823493

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20  5:44                           ` Andre Heider
@ 2016-05-20  7:56                               ` Marc Zyngier
  -1 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-20  7:56 UTC (permalink / raw)
  To: Andre Heider, Giuseppe Cavallaro, Alexandre Torgue
  Cc: Bert Lindner, Maxime Ripard, Robin Murphy, Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

On 20/05/16 06:44, Andre Heider wrote:
> Giuseppe, Alexandre, et al.,
> 
> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org> wrote:
>> On Thu, 17 Mar 2016 00:56:40 +0100
>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
> ...
>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> ...
>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> ...
>>>>>> v4 fixes for 4.5 are here:
>>>>>>
>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>> https://patchwork.ozlabs.org/patch/598196/
> ...
>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>> mentioned by Andreas)? Just to make sure that whatever gets merged next
>>>> will actually fix the issue.
>>>
>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>
>>> root@lime2-079f:~# cat /proc/version
>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>>
>>> dmesg:
>>> [    8.245273] NET: Registered protocol family 10
>>> [    9.297406]  RX IPC Checksum Offload disabled
>>> [    9.297460]  No MAC Management Counters available
>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>> 1Gbps/Full - flow control rx/tx
>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>
>>> The board is connected to my laptop rather than to a switch, so that
>>> might be where the flow control message comes from (not sure). Anyway
>>> ethernet works.
>>
>> Cool, many thanks for taking the time to test and report.
>>
>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>> it should then trickle into a 4.5-stable release (cc-ing stable on
>> these patches would probably be a good idea, BTW).
> 
> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
> v4.5 [0], including all five stable releases :(

All the A20 platforms are dead, actually.

> The v4.5 patches quoted above are already +4 weeks old, could we
> please get them into stable?

For that, the maintainer would have needed to CC stable, which he
didn't. I'd expect someone who cares to send these patches to stable.
It'd be better if the maintainer would do it himself though.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20  7:56                               ` Marc Zyngier
  0 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-20  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

On 20/05/16 06:44, Andre Heider wrote:
> Giuseppe, Alexandre, et al.,
> 
> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com> wrote:
>> On Thu, 17 Mar 2016 00:56:40 +0100
>> Bert Lindner <bert@a20.net> wrote:
>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
> ...
>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> ...
>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> ...
>>>>>> v4 fixes for 4.5 are here:
>>>>>>
>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>> https://patchwork.ozlabs.org/patch/598196/
> ...
>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>> mentioned by Andreas)? Just to make sure that whatever gets merged next
>>>> will actually fix the issue.
>>>
>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>
>>> root at lime2-079f:~# cat /proc/version
>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>>
>>> dmesg:
>>> [    8.245273] NET: Registered protocol family 10
>>> [    9.297406]  RX IPC Checksum Offload disabled
>>> [    9.297460]  No MAC Management Counters available
>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>> 1Gbps/Full - flow control rx/tx
>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>
>>> The board is connected to my laptop rather than to a switch, so that
>>> might be where the flow control message comes from (not sure). Anyway
>>> ethernet works.
>>
>> Cool, many thanks for taking the time to test and report.
>>
>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>> it should then trickle into a 4.5-stable release (cc-ing stable on
>> these patches would probably be a good idea, BTW).
> 
> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
> v4.5 [0], including all five stable releases :(

All the A20 platforms are dead, actually.

> The v4.5 patches quoted above are already +4 weeks old, could we
> please get them into stable?

For that, the maintainer would have needed to CC stable, which he
didn't. I'd expect someone who cares to send these patches to stable.
It'd be better if the maintainer would do it himself though.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20  7:56                               ` Marc Zyngier
@ 2016-05-20  8:14                                   ` Giuseppe CAVALLARO
  -1 siblings, 0 replies; 33+ messages in thread
From: Giuseppe CAVALLARO @ 2016-05-20  8:14 UTC (permalink / raw)
  To: Marc Zyngier, Andre Heider, Alexandre Torgue
  Cc: Bert Lindner, Maxime Ripard, Robin Murphy, Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hello

On 5/20/2016 9:56 AM, Marc Zyngier wrote:
> On 20/05/16 06:44, Andre Heider wrote:
>> Giuseppe, Alexandre, et al.,
>>
>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org> wrote:
>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>> ...
>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>> ...
>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>> ...
>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>
>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>> ...
>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged next
>>>>> will actually fix the issue.
>>>>
>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>
>>>> root@lime2-079f:~# cat /proc/version
>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>>>
>>>> dmesg:
>>>> [    8.245273] NET: Registered protocol family 10
>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>> [    9.297460]  No MAC Management Counters available
>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>> 1Gbps/Full - flow control rx/tx
>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>
>>>> The board is connected to my laptop rather than to a switch, so that
>>>> might be where the flow control message comes from (not sure). Anyway
>>>> ethernet works.
>>>
>>> Cool, many thanks for taking the time to test and report.
>>>
>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>> these patches would probably be a good idea, BTW).
>>
>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>> v4.5 [0], including all five stable releases :(
>
> All the A20 platforms are dead, actually.
>
>> The v4.5 patches quoted above are already +4 weeks old, could we
>> please get them into stable?
>
> For that, the maintainer would have needed to CC stable, which he
> didn't. I'd expect someone who cares to send these patches to stable.
> It'd be better if the maintainer would do it himself though.

sure, I can send the patches to stable (sorry if I missed to add
stable ML on CC).

Andre, I have not clear if the train of patches actually fix the
issue or if you need my support to fix something else. In that case
I need some input for debugging (e.g. kernel log).

let me know, is it enough to re-send the patches only?

Regards
Peppe

>
> Thanks,
>
> 	M.
>

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20  8:14                                   ` Giuseppe CAVALLARO
  0 siblings, 0 replies; 33+ messages in thread
From: Giuseppe CAVALLARO @ 2016-05-20  8:14 UTC (permalink / raw)
  To: linux-arm-kernel

Hello

On 5/20/2016 9:56 AM, Marc Zyngier wrote:
> On 20/05/16 06:44, Andre Heider wrote:
>> Giuseppe, Alexandre, et al.,
>>
>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com> wrote:
>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>> Bert Lindner <bert@a20.net> wrote:
>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>> ...
>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a problem
>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>> ...
>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>> ...
>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>
>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>> ...
>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged next
>>>>> will actually fix the issue.
>>>>
>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>
>>>> root at lime2-079f:~# cat /proc/version
>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC 2016
>>>>
>>>> dmesg:
>>>> [    8.245273] NET: Registered protocol family 10
>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>> [    9.297460]  No MAC Management Counters available
>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>> 1Gbps/Full - flow control rx/tx
>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>
>>>> The board is connected to my laptop rather than to a switch, so that
>>>> might be where the flow control message comes from (not sure). Anyway
>>>> ethernet works.
>>>
>>> Cool, many thanks for taking the time to test and report.
>>>
>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>> these patches would probably be a good idea, BTW).
>>
>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>> v4.5 [0], including all five stable releases :(
>
> All the A20 platforms are dead, actually.
>
>> The v4.5 patches quoted above are already +4 weeks old, could we
>> please get them into stable?
>
> For that, the maintainer would have needed to CC stable, which he
> didn't. I'd expect someone who cares to send these patches to stable.
> It'd be better if the maintainer would do it himself though.

sure, I can send the patches to stable (sorry if I missed to add
stable ML on CC).

Andre, I have not clear if the train of patches actually fix the
issue or if you need my support to fix something else. In that case
I need some input for debugging (e.g. kernel log).

let me know, is it enough to re-send the patches only?

Regards
Peppe

>
> Thanks,
>
> 	M.
>

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20  8:14                                   ` Giuseppe CAVALLARO
@ 2016-05-20 10:30                                       ` Andre Heider
  -1 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20 10:30 UTC (permalink / raw)
  To: Giuseppe CAVALLARO
  Cc: Marc Zyngier, Alexandre Torgue, Bert Lindner, Maxime Ripard,
	Robin Murphy, Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hi,

On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
<peppe.cavallaro-qxv4g6HH51o@public.gmane.org> wrote:
> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>
>> On 20/05/16 06:44, Andre Heider wrote:
>>>
>>> Giuseppe, Alexandre, et al.,
>>>
>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
>>> wrote:
>>>>
>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>>>>
>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>
>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>
>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>
>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>
>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>
>>> ...
>>>>>>>>>>>
>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>> problem
>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>
>>> ...
>>>>>>>>>>>
>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>
>>> ...
>>>>>>>>
>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>
>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>
>>> ...
>>>>>>
>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>> next
>>>>>> will actually fix the issue.
>>>>>
>>>>>
>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>
>>>>> root@lime2-079f:~# cat /proc/version
>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>> 2016
>>>>>
>>>>> dmesg:
>>>>> [    8.245273] NET: Registered protocol family 10
>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>> [    9.297460]  No MAC Management Counters available
>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>> 1Gbps/Full - flow control rx/tx
>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>
>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>> ethernet works.
>>>>
>>>>
>>>> Cool, many thanks for taking the time to test and report.
>>>>
>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>> these patches would probably be a good idea, BTW).
>>>
>>>
>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>> v4.5 [0], including all five stable releases :(
>>
>>
>> All the A20 platforms are dead, actually.
>>
>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>> please get them into stable?
>>
>>
>> For that, the maintainer would have needed to CC stable, which he
>> didn't. I'd expect someone who cares to send these patches to stable.
>> It'd be better if the maintainer would do it himself though.
>
>
> sure, I can send the patches to stable (sorry if I missed to add
> stable ML on CC).
>
> Andre, I have not clear if the train of patches actually fix the
> issue or if you need my support to fix something else. In that case
> I need some input for debugging (e.g. kernel log).

Bert already confirmed that those two patches fixes stmmac on his
Lime2, so I assume that it fixes the issue for all A20 platforms.

> let me know, is it enough to re-send the patches only?

Just a resend with cc:stable :)

Thanks!
Andre

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20 10:30                                       ` Andre Heider
  0 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
<peppe.cavallaro@st.com> wrote:
> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>
>> On 20/05/16 06:44, Andre Heider wrote:
>>>
>>> Giuseppe, Alexandre, et al.,
>>>
>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>> wrote:
>>>>
>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>
>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>
>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>
>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>>>
>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>
>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>
>>> ...
>>>>>>>>>>>
>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>> problem
>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>
>>> ...
>>>>>>>>>>>
>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>
>>> ...
>>>>>>>>
>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>
>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>
>>> ...
>>>>>>
>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>> next
>>>>>> will actually fix the issue.
>>>>>
>>>>>
>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>
>>>>> root at lime2-079f:~# cat /proc/version
>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>> 2016
>>>>>
>>>>> dmesg:
>>>>> [    8.245273] NET: Registered protocol family 10
>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>> [    9.297460]  No MAC Management Counters available
>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>> 1Gbps/Full - flow control rx/tx
>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>
>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>> ethernet works.
>>>>
>>>>
>>>> Cool, many thanks for taking the time to test and report.
>>>>
>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>> these patches would probably be a good idea, BTW).
>>>
>>>
>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>> v4.5 [0], including all five stable releases :(
>>
>>
>> All the A20 platforms are dead, actually.
>>
>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>> please get them into stable?
>>
>>
>> For that, the maintainer would have needed to CC stable, which he
>> didn't. I'd expect someone who cares to send these patches to stable.
>> It'd be better if the maintainer would do it himself though.
>
>
> sure, I can send the patches to stable (sorry if I missed to add
> stable ML on CC).
>
> Andre, I have not clear if the train of patches actually fix the
> issue or if you need my support to fix something else. In that case
> I need some input for debugging (e.g. kernel log).

Bert already confirmed that those two patches fixes stmmac on his
Lime2, so I assume that it fixes the issue for all A20 platforms.

> let me know, is it enough to re-send the patches only?

Just a resend with cc:stable :)

Thanks!
Andre

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20 10:30                                       ` Andre Heider
@ 2016-05-20 10:36                                         ` Marc Zyngier
  -1 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-20 10:36 UTC (permalink / raw)
  To: Andre Heider, Giuseppe CAVALLARO
  Cc: Alexandre Torgue, Bert Lindner, Maxime Ripard, Robin Murphy,
	Andreas Färber, linux-arm-kernel, netdev, linux-sunxi

On 20/05/16 11:30, Andre Heider wrote:
> Hi,
> 
> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
> <peppe.cavallaro@st.com> wrote:
>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>
>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>
>>>> Giuseppe, Alexandre, et al.,
>>>>
>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>> wrote:
>>>>>
>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>
>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>
>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>
>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>>
>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>
>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>> problem
>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>
>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>
>>>> ...
>>>>>>>>>
>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>
>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>
>>>> ...
>>>>>>>
>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>> next
>>>>>>> will actually fix the issue.
>>>>>>
>>>>>>
>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>
>>>>>> root@lime2-079f:~# cat /proc/version
>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>> 2016
>>>>>>
>>>>>> dmesg:
>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>
>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>> ethernet works.
>>>>>
>>>>>
>>>>> Cool, many thanks for taking the time to test and report.
>>>>>
>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>> these patches would probably be a good idea, BTW).
>>>>
>>>>
>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>> v4.5 [0], including all five stable releases :(
>>>
>>>
>>> All the A20 platforms are dead, actually.
>>>
>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>> please get them into stable?
>>>
>>>
>>> For that, the maintainer would have needed to CC stable, which he
>>> didn't. I'd expect someone who cares to send these patches to stable.
>>> It'd be better if the maintainer would do it himself though.
>>
>>
>> sure, I can send the patches to stable (sorry if I missed to add
>> stable ML on CC).
>>
>> Andre, I have not clear if the train of patches actually fix the
>> issue or if you need my support to fix something else. In that case
>> I need some input for debugging (e.g. kernel log).
> 
> Bert already confirmed that those two patches fixes stmmac on his
> Lime2, so I assume that it fixes the issue for all A20 platforms.
> 
>> let me know, is it enough to re-send the patches only?
> 
> Just a resend with cc:stable :)

Not quite. Please read Documentation/stable_kernel_rules.txt, and the
section that concerns networking patches (and then consult
Documentation/networking/netdev-FAQ.txt which has all the details).

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20 10:36                                         ` Marc Zyngier
  0 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-20 10:36 UTC (permalink / raw)
  To: linux-arm-kernel

On 20/05/16 11:30, Andre Heider wrote:
> Hi,
> 
> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
> <peppe.cavallaro@st.com> wrote:
>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>
>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>
>>>> Giuseppe, Alexandre, et al.,
>>>>
>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>> wrote:
>>>>>
>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>
>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>
>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>
>>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>>>>
>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>
>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>> problem
>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>
>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>
>>>> ...
>>>>>>>>>
>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>
>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>
>>>> ...
>>>>>>>
>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>> next
>>>>>>> will actually fix the issue.
>>>>>>
>>>>>>
>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>
>>>>>> root at lime2-079f:~# cat /proc/version
>>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>> 2016
>>>>>>
>>>>>> dmesg:
>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>
>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>> ethernet works.
>>>>>
>>>>>
>>>>> Cool, many thanks for taking the time to test and report.
>>>>>
>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>> these patches would probably be a good idea, BTW).
>>>>
>>>>
>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>> v4.5 [0], including all five stable releases :(
>>>
>>>
>>> All the A20 platforms are dead, actually.
>>>
>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>> please get them into stable?
>>>
>>>
>>> For that, the maintainer would have needed to CC stable, which he
>>> didn't. I'd expect someone who cares to send these patches to stable.
>>> It'd be better if the maintainer would do it himself though.
>>
>>
>> sure, I can send the patches to stable (sorry if I missed to add
>> stable ML on CC).
>>
>> Andre, I have not clear if the train of patches actually fix the
>> issue or if you need my support to fix something else. In that case
>> I need some input for debugging (e.g. kernel log).
> 
> Bert already confirmed that those two patches fixes stmmac on his
> Lime2, so I assume that it fixes the issue for all A20 platforms.
> 
>> let me know, is it enough to re-send the patches only?
> 
> Just a resend with cc:stable :)

Not quite. Please read Documentation/stable_kernel_rules.txt, and the
section that concerns networking patches (and then consult
Documentation/networking/netdev-FAQ.txt which has all the details).

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20 10:36                                         ` Marc Zyngier
@ 2016-05-20 10:43                                             ` Andre Heider
  -1 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20 10:43 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: Giuseppe CAVALLARO, Alexandre Torgue, Bert Lindner,
	Maxime Ripard, Robin Murphy, Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hi,

On Fri, May 20, 2016 at 12:36 PM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org> wrote:
> On 20/05/16 11:30, Andre Heider wrote:
>> Hi,
>>
>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>> <peppe.cavallaro-qxv4g6HH51o@public.gmane.org> wrote:
>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>
>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>
>>>>> Giuseppe, Alexandre, et al.,
>>>>>
>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
>>>>> wrote:
>>>>>>
>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>>>>>>
>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>
>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>>>
>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>> problem
>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> ...
>>>>>>>>>>
>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>
>>>>> ...
>>>>>>>>
>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>> next
>>>>>>>> will actually fix the issue.
>>>>>>>
>>>>>>>
>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>
>>>>>>> root@lime2-079f:~# cat /proc/version
>>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>> 2016
>>>>>>>
>>>>>>> dmesg:
>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>
>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>> ethernet works.
>>>>>>
>>>>>>
>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>
>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>> these patches would probably be a good idea, BTW).
>>>>>
>>>>>
>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>> v4.5 [0], including all five stable releases :(
>>>>
>>>>
>>>> All the A20 platforms are dead, actually.
>>>>
>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>> please get them into stable?
>>>>
>>>>
>>>> For that, the maintainer would have needed to CC stable, which he
>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>> It'd be better if the maintainer would do it himself though.
>>>
>>>
>>> sure, I can send the patches to stable (sorry if I missed to add
>>> stable ML on CC).
>>>
>>> Andre, I have not clear if the train of patches actually fix the
>>> issue or if you need my support to fix something else. In that case
>>> I need some input for debugging (e.g. kernel log).
>>
>> Bert already confirmed that those two patches fixes stmmac on his
>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>
>>> let me know, is it enough to re-send the patches only?
>>
>> Just a resend with cc:stable :)
>
> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> section that concerns networking patches (and then consult
> Documentation/networking/netdev-FAQ.txt which has all the details).

Right, it's just been a while since I sent a patch.
What I really meant was "do what's neccessary for -stable inclusion" :)

Regards,
Andre

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-20 10:43                                             ` Andre Heider
  0 siblings, 0 replies; 33+ messages in thread
From: Andre Heider @ 2016-05-20 10:43 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On Fri, May 20, 2016 at 12:36 PM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> On 20/05/16 11:30, Andre Heider wrote:
>> Hi,
>>
>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>> <peppe.cavallaro@st.com> wrote:
>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>
>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>
>>>>> Giuseppe, Alexandre, et al.,
>>>>>
>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>>> wrote:
>>>>>>
>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>>
>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>
>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>>>>>
>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>> problem
>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> ...
>>>>>>>>>>
>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>
>>>>> ...
>>>>>>>>
>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>> next
>>>>>>>> will actually fix the issue.
>>>>>>>
>>>>>>>
>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>
>>>>>>> root at lime2-079f:~# cat /proc/version
>>>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>> 2016
>>>>>>>
>>>>>>> dmesg:
>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>
>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>> ethernet works.
>>>>>>
>>>>>>
>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>
>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>> these patches would probably be a good idea, BTW).
>>>>>
>>>>>
>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>> v4.5 [0], including all five stable releases :(
>>>>
>>>>
>>>> All the A20 platforms are dead, actually.
>>>>
>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>> please get them into stable?
>>>>
>>>>
>>>> For that, the maintainer would have needed to CC stable, which he
>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>> It'd be better if the maintainer would do it himself though.
>>>
>>>
>>> sure, I can send the patches to stable (sorry if I missed to add
>>> stable ML on CC).
>>>
>>> Andre, I have not clear if the train of patches actually fix the
>>> issue or if you need my support to fix something else. In that case
>>> I need some input for debugging (e.g. kernel log).
>>
>> Bert already confirmed that those two patches fixes stmmac on his
>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>
>>> let me know, is it enough to re-send the patches only?
>>
>> Just a resend with cc:stable :)
>
> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> section that concerns networking patches (and then consult
> Documentation/networking/netdev-FAQ.txt which has all the details).

Right, it's just been a while since I sent a patch.
What I really meant was "do what's neccessary for -stable inclusion" :)

Regards,
Andre

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-20 10:36                                         ` Marc Zyngier
@ 2016-05-21 15:47                                             ` Bert Lindner
  -1 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-05-21 15:47 UTC (permalink / raw)
  To: Marc Zyngier, Andre Heider, Giuseppe CAVALLARO
  Cc: Alexandre Torgue, Maxime Ripard, Robin Murphy,
	Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hi,

On 2016-05-20 12:36, Marc Zyngier wrote:
> On 20/05/16 11:30, Andre Heider wrote:
>> Hi,
>>
>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>> <peppe.cavallaro-qxv4g6HH51o@public.gmane.org> wrote:
>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>
>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>
>>>>> Giuseppe, Alexandre, et al.,
>>>>>
>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
>>>>> wrote:
>>>>>>
>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>>>>>>
>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>
>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>>>
>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>> problem
>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> ...
>>>>>>>>>>
>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>
>>>>> ...
>>>>>>>>
>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>> next
>>>>>>>> will actually fix the issue.
>>>>>>>
>>>>>>>
>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>
>>>>>>> root@lime2-079f:~# cat /proc/version
>>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>> 2016
>>>>>>>
>>>>>>> dmesg:
>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>
>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>> ethernet works.
>>>>>>
>>>>>>
>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>
>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>> these patches would probably be a good idea, BTW).
>>>>>
>>>>>
>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>> v4.5 [0], including all five stable releases :(
>>>>
>>>>
>>>> All the A20 platforms are dead, actually.
>>>>
>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>> please get them into stable?
>>>>
>>>>
>>>> For that, the maintainer would have needed to CC stable, which he
>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>> It'd be better if the maintainer would do it himself though.
>>>
>>>
>>> sure, I can send the patches to stable (sorry if I missed to add
>>> stable ML on CC).
>>>
>>> Andre, I have not clear if the train of patches actually fix the
>>> issue or if you need my support to fix something else. In that case
>>> I need some input for debugging (e.g. kernel log).
>>
>> Bert already confirmed that those two patches fixes stmmac on his
>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>
>>> let me know, is it enough to re-send the patches only?
>>
>> Just a resend with cc:stable :)
>
> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> section that concerns networking patches (and then consult
> Documentation/networking/netdev-FAQ.txt which has all the details).

FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the 
lime2. Had not tried 4.5.x again.

Best,

	-bert


-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-21 15:47                                             ` Bert Lindner
  0 siblings, 0 replies; 33+ messages in thread
From: Bert Lindner @ 2016-05-21 15:47 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On 2016-05-20 12:36, Marc Zyngier wrote:
> On 20/05/16 11:30, Andre Heider wrote:
>> Hi,
>>
>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>> <peppe.cavallaro@st.com> wrote:
>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>
>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>
>>>>> Giuseppe, Alexandre, et al.,
>>>>>
>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>>> wrote:
>>>>>>
>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>>
>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>
>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>>>>>
>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>
>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>> problem
>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>
>>>>> ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>
>>>>> ...
>>>>>>>>>>
>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>
>>>>> ...
>>>>>>>>
>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>> next
>>>>>>>> will actually fix the issue.
>>>>>>>
>>>>>>>
>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>
>>>>>>> root at lime2-079f:~# cat /proc/version
>>>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>> 2016
>>>>>>>
>>>>>>> dmesg:
>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>
>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>> ethernet works.
>>>>>>
>>>>>>
>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>
>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>> these patches would probably be a good idea, BTW).
>>>>>
>>>>>
>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>> v4.5 [0], including all five stable releases :(
>>>>
>>>>
>>>> All the A20 platforms are dead, actually.
>>>>
>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>> please get them into stable?
>>>>
>>>>
>>>> For that, the maintainer would have needed to CC stable, which he
>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>> It'd be better if the maintainer would do it himself though.
>>>
>>>
>>> sure, I can send the patches to stable (sorry if I missed to add
>>> stable ML on CC).
>>>
>>> Andre, I have not clear if the train of patches actually fix the
>>> issue or if you need my support to fix something else. In that case
>>> I need some input for debugging (e.g. kernel log).
>>
>> Bert already confirmed that those two patches fixes stmmac on his
>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>
>>> let me know, is it enough to re-send the patches only?
>>
>> Just a resend with cc:stable :)
>
> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> section that concerns networking patches (and then consult
> Documentation/networking/netdev-FAQ.txt which has all the details).

FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the 
lime2. Had not tried 4.5.x again.

Best,

	-bert

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-21 15:47                                             ` Bert Lindner
@ 2016-05-22  9:30                                                 ` Marc Zyngier
  -1 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-22  9:30 UTC (permalink / raw)
  To: Bert Lindner
  Cc: Andre Heider, Giuseppe CAVALLARO, Alexandre Torgue,
	Maxime Ripard, Robin Murphy, Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

On Sat, 21 May 2016 17:47:05 +0200
Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:

> Hi,
> 
> On 2016-05-20 12:36, Marc Zyngier wrote:
> > On 20/05/16 11:30, Andre Heider wrote:
> >> Hi,
> >>
> >> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
> >> <peppe.cavallaro-qxv4g6HH51o@public.gmane.org> wrote:
> >>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
> >>>>
> >>>> On 20/05/16 06:44, Andre Heider wrote:
> >>>>>
> >>>>> Giuseppe, Alexandre, et al.,
> >>>>>
> >>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
> >>>>> wrote:
> >>>>>>
> >>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
> >>>>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
> >>>>>>>
> >>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
> >>>>>>>>
> >>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
> >>>>>>>>>
> >>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
> >>>>>>>>>>
> >>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> >>>>>>>>>>>
> >>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
> >>>>>
> >>>>> ...
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
> >>>>>>>>>>>>> problem
> >>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
> >>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> >>>>>
> >>>>> ...
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
> >>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
> >>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
> >>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> >>>>>
> >>>>> ...
> >>>>>>>>>>
> >>>>>>>>>> v4 fixes for 4.5 are here:
> >>>>>>>>>>
> >>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
> >>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
> >>>>>
> >>>>> ...
> >>>>>>>>
> >>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
> >>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
> >>>>>>>> next
> >>>>>>>> will actually fix the issue.
> >>>>>>>
> >>>>>>>
> >>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
> >>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
> >>>>>>>
> >>>>>>> root@lime2-079f:~# cat /proc/version
> >>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
> >>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
> >>>>>>> 2016
> >>>>>>>
> >>>>>>> dmesg:
> >>>>>>> [    8.245273] NET: Registered protocol family 10
> >>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
> >>>>>>> [    9.297460]  No MAC Management Counters available
> >>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >>>>>>> 1Gbps/Full - flow control rx/tx
> >>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>>>>>>
> >>>>>>> The board is connected to my laptop rather than to a switch, so that
> >>>>>>> might be where the flow control message comes from (not sure). Anyway
> >>>>>>> ethernet works.
> >>>>>>
> >>>>>>
> >>>>>> Cool, many thanks for taking the time to test and report.
> >>>>>>
> >>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
> >>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
> >>>>>> these patches would probably be a good idea, BTW).
> >>>>>
> >>>>>
> >>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
> >>>>> v4.5 [0], including all five stable releases :(
> >>>>
> >>>>
> >>>> All the A20 platforms are dead, actually.
> >>>>
> >>>>> The v4.5 patches quoted above are already +4 weeks old, could we
> >>>>> please get them into stable?
> >>>>
> >>>>
> >>>> For that, the maintainer would have needed to CC stable, which he
> >>>> didn't. I'd expect someone who cares to send these patches to stable.
> >>>> It'd be better if the maintainer would do it himself though.
> >>>
> >>>
> >>> sure, I can send the patches to stable (sorry if I missed to add
> >>> stable ML on CC).
> >>>
> >>> Andre, I have not clear if the train of patches actually fix the
> >>> issue or if you need my support to fix something else. In that case
> >>> I need some input for debugging (e.g. kernel log).
> >>
> >> Bert already confirmed that those two patches fixes stmmac on his
> >> Lime2, so I assume that it fixes the issue for all A20 platforms.
> >>
> >>> let me know, is it enough to re-send the patches only?
> >>
> >> Just a resend with cc:stable :)
> >
> > Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> > section that concerns networking patches (and then consult
> > Documentation/networking/netdev-FAQ.txt which has all the details).
> 
> FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the 
> lime2. Had not tried 4.5.x again.

We've already established this. This is a 4.5-specific regression (both
4.4 and 4.6 are fine). One major issue is that Debian Stretch is
currently shipping with 4.5, and upgrading to it results in a system
without networking. Should this patch make it into stable, the fix would
quickly percolate into distro kernels, and we could forget about it.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny.

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-22  9:30                                                 ` Marc Zyngier
  0 siblings, 0 replies; 33+ messages in thread
From: Marc Zyngier @ 2016-05-22  9:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, 21 May 2016 17:47:05 +0200
Bert Lindner <bert@a20.net> wrote:

> Hi,
> 
> On 2016-05-20 12:36, Marc Zyngier wrote:
> > On 20/05/16 11:30, Andre Heider wrote:
> >> Hi,
> >>
> >> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
> >> <peppe.cavallaro@st.com> wrote:
> >>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
> >>>>
> >>>> On 20/05/16 06:44, Andre Heider wrote:
> >>>>>
> >>>>> Giuseppe, Alexandre, et al.,
> >>>>>
> >>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
> >>>>> wrote:
> >>>>>>
> >>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
> >>>>>> Bert Lindner <bert@a20.net> wrote:
> >>>>>>>
> >>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
> >>>>>>>>
> >>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
> >>>>>>>>>
> >>>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
> >>>>>>>>>>
> >>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
> >>>>>>>>>>>
> >>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
> >>>>>
> >>>>> ...
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
> >>>>>>>>>>>>> problem
> >>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
> >>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
> >>>>>
> >>>>> ...
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
> >>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
> >>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
> >>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
> >>>>>
> >>>>> ...
> >>>>>>>>>>
> >>>>>>>>>> v4 fixes for 4.5 are here:
> >>>>>>>>>>
> >>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
> >>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
> >>>>>
> >>>>> ...
> >>>>>>>>
> >>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
> >>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
> >>>>>>>> next
> >>>>>>>> will actually fix the issue.
> >>>>>>>
> >>>>>>>
> >>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
> >>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
> >>>>>>>
> >>>>>>> root at lime2-079f:~# cat /proc/version
> >>>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
> >>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
> >>>>>>> 2016
> >>>>>>>
> >>>>>>> dmesg:
> >>>>>>> [    8.245273] NET: Registered protocol family 10
> >>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
> >>>>>>> [    9.297460]  No MAC Management Counters available
> >>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
> >>>>>>> 1Gbps/Full - flow control rx/tx
> >>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> >>>>>>>
> >>>>>>> The board is connected to my laptop rather than to a switch, so that
> >>>>>>> might be where the flow control message comes from (not sure). Anyway
> >>>>>>> ethernet works.
> >>>>>>
> >>>>>>
> >>>>>> Cool, many thanks for taking the time to test and report.
> >>>>>>
> >>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
> >>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
> >>>>>> these patches would probably be a good idea, BTW).
> >>>>>
> >>>>>
> >>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
> >>>>> v4.5 [0], including all five stable releases :(
> >>>>
> >>>>
> >>>> All the A20 platforms are dead, actually.
> >>>>
> >>>>> The v4.5 patches quoted above are already +4 weeks old, could we
> >>>>> please get them into stable?
> >>>>
> >>>>
> >>>> For that, the maintainer would have needed to CC stable, which he
> >>>> didn't. I'd expect someone who cares to send these patches to stable.
> >>>> It'd be better if the maintainer would do it himself though.
> >>>
> >>>
> >>> sure, I can send the patches to stable (sorry if I missed to add
> >>> stable ML on CC).
> >>>
> >>> Andre, I have not clear if the train of patches actually fix the
> >>> issue or if you need my support to fix something else. In that case
> >>> I need some input for debugging (e.g. kernel log).
> >>
> >> Bert already confirmed that those two patches fixes stmmac on his
> >> Lime2, so I assume that it fixes the issue for all A20 platforms.
> >>
> >>> let me know, is it enough to re-send the patches only?
> >>
> >> Just a resend with cc:stable :)
> >
> > Not quite. Please read Documentation/stable_kernel_rules.txt, and the
> > section that concerns networking patches (and then consult
> > Documentation/networking/netdev-FAQ.txt which has all the details).
> 
> FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the 
> lime2. Had not tried 4.5.x again.

We've already established this. This is a 4.5-specific regression (both
4.4 and 4.6 are fine). One major issue is that Debian Stretch is
currently shipping with 4.5, and upgrading to it results in a system
without networking. Should this patch make it into stable, the fix would
quickly percolate into distro kernels, and we could forget about it.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny.

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
  2016-05-22  9:30                                                 ` Marc Zyngier
  (?)
@ 2016-05-23 13:28                                                     ` Giuseppe CAVALLARO
  -1 siblings, 0 replies; 33+ messages in thread
From: Giuseppe CAVALLARO @ 2016-05-23 13:28 UTC (permalink / raw)
  To: Marc Zyngier, Bert Lindner
  Cc: Andre Heider, Alexandre Torgue, Maxime Ripard, Robin Murphy,
	Andreas Färber,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
	stable-u79uwXL29TY76Z2rM5mHXA

Hello

On 5/22/2016 11:30 AM, Marc Zyngier wrote:
> On Sat, 21 May 2016 17:47:05 +0200
> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>
>> Hi,
>>
>> On 2016-05-20 12:36, Marc Zyngier wrote:
>>> On 20/05/16 11:30, Andre Heider wrote:
>>>> Hi,
>>>>
>>>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>>>> <peppe.cavallaro-qxv4g6HH51o@public.gmane.org> wrote:
>>>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>>>
>>>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>>>
>>>>>>> Giuseppe, Alexandre, et al.,
>>>>>>>
>>>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>>>> Bert Lindner <bert-phGP8mJ4Mqk@public.gmane.org> wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>>>> problem
>>>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>>>
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>>>
>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>>>> next
>>>>>>>>>> will actually fix the issue.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>>>
>>>>>>>>> root@lime2-079f:~# cat /proc/version
>>>>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>>>> 2016
>>>>>>>>>
>>>>>>>>> dmesg:
>>>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>>>
>>>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>>>> ethernet works.
>>>>>>>>
>>>>>>>>
>>>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>>>
>>>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>>>> these patches would probably be a good idea, BTW).
>>>>>>>
>>>>>>>
>>>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>>>> v4.5 [0], including all five stable releases :(
>>>>>>
>>>>>>
>>>>>> All the A20 platforms are dead, actually.
>>>>>>
>>>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>>>> please get them into stable?
>>>>>>
>>>>>>
>>>>>> For that, the maintainer would have needed to CC stable, which he
>>>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>>>> It'd be better if the maintainer would do it himself though.
>>>>>
>>>>>
>>>>> sure, I can send the patches to stable (sorry if I missed to add
>>>>> stable ML on CC).
>>>>>
>>>>> Andre, I have not clear if the train of patches actually fix the
>>>>> issue or if you need my support to fix something else. In that case
>>>>> I need some input for debugging (e.g. kernel log).
>>>>
>>>> Bert already confirmed that those two patches fixes stmmac on his
>>>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>>>
>>>>> let me know, is it enough to re-send the patches only?
>>>>
>>>> Just a resend with cc:stable :)
>>>
>>> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
>>> section that concerns networking patches (and then consult
>>> Documentation/networking/netdev-FAQ.txt which has all the details).
>>
>> FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the
>> lime2. Had not tried 4.5.x again.
>
> We've already established this. This is a 4.5-specific regression (both
> 4.4 and 4.6 are fine). One major issue is that Debian Stretch is
> currently shipping with 4.5, and upgrading to it results in a system
> without networking. Should this patch make it into stable, the fix would
> quickly percolate into distro kernels, and we could forget about it.

I have just ported and sent the patches to stable list.

   [PATCH 0/2 (linux-stable-4.5.y)] net: stmmac: MDIO fixes

Please, let me know if it is ok for you.

Peppe



> Thanks,
>
> 	M.
>

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

* Re: 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-23 13:28                                                     ` Giuseppe CAVALLARO
  0 siblings, 0 replies; 33+ messages in thread
From: Giuseppe CAVALLARO @ 2016-05-23 13:28 UTC (permalink / raw)
  To: Marc Zyngier, Bert Lindner
  Cc: Andre Heider, Alexandre Torgue, Maxime Ripard, Robin Murphy,
	Andreas Färber, linux-arm-kernel, netdev, linux-sunxi,
	stable

Hello

On 5/22/2016 11:30 AM, Marc Zyngier wrote:
> On Sat, 21 May 2016 17:47:05 +0200
> Bert Lindner <bert@a20.net> wrote:
>
>> Hi,
>>
>> On 2016-05-20 12:36, Marc Zyngier wrote:
>>> On 20/05/16 11:30, Andre Heider wrote:
>>>> Hi,
>>>>
>>>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>>>> <peppe.cavallaro@st.com> wrote:
>>>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>>>
>>>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>>>
>>>>>>> Giuseppe, Alexandre, et al.,
>>>>>>>
>>>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 2016-03-16 14:10, Andreas Färber wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>>>> problem
>>>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>>>
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>>>
>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>>>> next
>>>>>>>>>> will actually fix the issue.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>>>
>>>>>>>>> root@lime2-079f:~# cat /proc/version
>>>>>>>>> Linux version 4.5.0-598195-598196-v4 (root@lime2-079f) (gcc version
>>>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>>>> 2016
>>>>>>>>>
>>>>>>>>> dmesg:
>>>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>>>
>>>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>>>> ethernet works.
>>>>>>>>
>>>>>>>>
>>>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>>>
>>>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>>>> these patches would probably be a good idea, BTW).
>>>>>>>
>>>>>>>
>>>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>>>> v4.5 [0], including all five stable releases :(
>>>>>>
>>>>>>
>>>>>> All the A20 platforms are dead, actually.
>>>>>>
>>>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>>>> please get them into stable?
>>>>>>
>>>>>>
>>>>>> For that, the maintainer would have needed to CC stable, which he
>>>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>>>> It'd be better if the maintainer would do it himself though.
>>>>>
>>>>>
>>>>> sure, I can send the patches to stable (sorry if I missed to add
>>>>> stable ML on CC).
>>>>>
>>>>> Andre, I have not clear if the train of patches actually fix the
>>>>> issue or if you need my support to fix something else. In that case
>>>>> I need some input for debugging (e.g. kernel log).
>>>>
>>>> Bert already confirmed that those two patches fixes stmmac on his
>>>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>>>
>>>>> let me know, is it enough to re-send the patches only?
>>>>
>>>> Just a resend with cc:stable :)
>>>
>>> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
>>> section that concerns networking patches (and then consult
>>> Documentation/networking/netdev-FAQ.txt which has all the details).
>>
>> FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the
>> lime2. Had not tried 4.5.x again.
>
> We've already established this. This is a 4.5-specific regression (both
> 4.4 and 4.6 are fine). One major issue is that Debian Stretch is
> currently shipping with 4.5, and upgrading to it results in a system
> without networking. Should this patch make it into stable, the fix would
> quickly percolate into distro kernels, and we could forget about it.

I have just ported and sent the patches to stable list.

   [PATCH 0/2 (linux-stable-4.5.y)] net: stmmac: MDIO fixes

Please, let me know if it is ok for you.

Peppe



> Thanks,
>
> 	M.
>


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

* 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7)
@ 2016-05-23 13:28                                                     ` Giuseppe CAVALLARO
  0 siblings, 0 replies; 33+ messages in thread
From: Giuseppe CAVALLARO @ 2016-05-23 13:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hello

On 5/22/2016 11:30 AM, Marc Zyngier wrote:
> On Sat, 21 May 2016 17:47:05 +0200
> Bert Lindner <bert@a20.net> wrote:
>
>> Hi,
>>
>> On 2016-05-20 12:36, Marc Zyngier wrote:
>>> On 20/05/16 11:30, Andre Heider wrote:
>>>> Hi,
>>>>
>>>> On Fri, May 20, 2016 at 10:14 AM, Giuseppe CAVALLARO
>>>> <peppe.cavallaro@st.com> wrote:
>>>>> On 5/20/2016 9:56 AM, Marc Zyngier wrote:
>>>>>>
>>>>>> On 20/05/16 06:44, Andre Heider wrote:
>>>>>>>
>>>>>>> Giuseppe, Alexandre, et al.,
>>>>>>>
>>>>>>> On Thu, Mar 17, 2016 at 8:52 AM, Marc Zyngier <marc.zyngier@arm.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> On Thu, 17 Mar 2016 00:56:40 +0100
>>>>>>>> Bert Lindner <bert@a20.net> wrote:
>>>>>>>>>
>>>>>>>>> On 2016-03-16 18:42, Marc Zyngier wrote:
>>>>>>>>>>
>>>>>>>>>> On 16/03/16 15:10, Bert Lindner wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 2016-03-16 14:10, Andreas F?rber wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Am 16.03.2016 um 13:09 schrieb Robin Murphy:
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 16/03/16 11:39, Marc Zyngier wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 16/03/16 11:19, Bert Lindner wrote:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> For the board sun7i-a20-olinuxino-lime2, there seems to be a
>>>>>>>>>>>>>>> problem
>>>>>>>>>>>>>>> with the eth0 PHY in mainline kernel 4.5.0 that developed since
>>>>>>>>>>>>>>> 4.5.0-rc7. Ethernet does not work, although eth0 is reported:
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [    9.767125] NET: Registered protocol family 10
>>>>>>>>>>>>>>> [   10.357405] libphy: PHY stmmac-0:ffffffff not found
>>>>>>>>>>>>>>> [   10.362382] eth0: Could not attach to PHY
>>>>>>>>>>>>>>> [   10.366557] stmmac_open: Cannot attach to PHY (error: -19)
>>>>>>>
>>>>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> v4 fixes for 4.5 are here:
>>>>>>>>>>>>
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598195/ (revert)
>>>>>>>>>>>> https://patchwork.ozlabs.org/patch/598196/
>>>>>>>
>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Good to know, thanks. Could you also give the potential fix a go (as
>>>>>>>>>> mentioned by Andreas)? Just to make sure that whatever gets merged
>>>>>>>>>> next
>>>>>>>>>> will actually fix the issue.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes sure, it took a while because I had to travel. Confirmed, the
>>>>>>>>> v4-for-4.5 fix works well for me, on sun7i-a20-olinuxino-lime2:
>>>>>>>>>
>>>>>>>>> root at lime2-079f:~# cat /proc/version
>>>>>>>>> Linux version 4.5.0-598195-598196-v4 (root at lime2-079f) (gcc version
>>>>>>>>> 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #1 SMP Wed Mar 16 16:44:22 UTC
>>>>>>>>> 2016
>>>>>>>>>
>>>>>>>>> dmesg:
>>>>>>>>> [    8.245273] NET: Registered protocol family 10
>>>>>>>>> [    9.297406]  RX IPC Checksum Offload disabled
>>>>>>>>> [    9.297460]  No MAC Management Counters available
>>>>>>>>> [    9.297951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>>>> [   16.285658] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>>>>> 1Gbps/Full - flow control rx/tx
>>>>>>>>> [   16.285798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
>>>>>>>>>
>>>>>>>>> The board is connected to my laptop rather than to a switch, so that
>>>>>>>>> might be where the flow control message comes from (not sure). Anyway
>>>>>>>>> ethernet works.
>>>>>>>>
>>>>>>>>
>>>>>>>> Cool, many thanks for taking the time to test and report.
>>>>>>>>
>>>>>>>> Hopefully Giuseppe will get this merged quickly enough in mainline, and
>>>>>>>> it should then trickle into a 4.5-stable release (cc-ing stable on
>>>>>>>> these patches would probably be a good idea, BTW).
>>>>>>>
>>>>>>>
>>>>>>> stmmac is broken on at least Lime2, BananaPi and Cubieboard2 since
>>>>>>> v4.5 [0], including all five stable releases :(
>>>>>>
>>>>>>
>>>>>> All the A20 platforms are dead, actually.
>>>>>>
>>>>>>> The v4.5 patches quoted above are already +4 weeks old, could we
>>>>>>> please get them into stable?
>>>>>>
>>>>>>
>>>>>> For that, the maintainer would have needed to CC stable, which he
>>>>>> didn't. I'd expect someone who cares to send these patches to stable.
>>>>>> It'd be better if the maintainer would do it himself though.
>>>>>
>>>>>
>>>>> sure, I can send the patches to stable (sorry if I missed to add
>>>>> stable ML on CC).
>>>>>
>>>>> Andre, I have not clear if the train of patches actually fix the
>>>>> issue or if you need my support to fix something else. In that case
>>>>> I need some input for debugging (e.g. kernel log).
>>>>
>>>> Bert already confirmed that those two patches fixes stmmac on his
>>>> Lime2, so I assume that it fixes the issue for all A20 platforms.
>>>>
>>>>> let me know, is it enough to re-send the patches only?
>>>>
>>>> Just a resend with cc:stable :)
>>>
>>> Not quite. Please read Documentation/stable_kernel_rules.txt, and the
>>> section that concerns networking patches (and then consult
>>> Documentation/networking/netdev-FAQ.txt which has all the details).
>>
>> FWIW, recent 4.6-rc series and 4.6.0 have worked fine for me and the
>> lime2. Had not tried 4.5.x again.
>
> We've already established this. This is a 4.5-specific regression (both
> 4.4 and 4.6 are fine). One major issue is that Debian Stretch is
> currently shipping with 4.5, and upgrading to it results in a system
> without networking. Should this patch make it into stable, the fix would
> quickly percolate into distro kernels, and we could forget about it.

I have just ported and sent the patches to stable list.

   [PATCH 0/2 (linux-stable-4.5.y)] net: stmmac: MDIO fixes

Please, let me know if it is ok for you.

Peppe



> Thanks,
>
> 	M.
>

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

end of thread, other threads:[~2016-05-23 13:28 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 11:19 4.5.0 on sun7i-a20-olinuxino-lime2: libphy: PHY stmmac-0:ffffffff not found (regression from rc7) Bert Lindner
2016-03-16 11:39 ` Marc Zyngier
2016-03-16 12:09   ` Robin Murphy
2016-03-16 13:06     ` Marc Zyngier
     [not found]     ` <56E94CF4.2060607-5wv7dgnIgG8@public.gmane.org>
2016-03-16 13:10       ` Andreas Färber
2016-03-16 13:10         ` Andreas Färber
     [not found]         ` <56E95B57.1090100-l3A5Bk7waGM@public.gmane.org>
2016-03-16 15:10           ` Bert Lindner
2016-03-16 15:10             ` Bert Lindner
     [not found]             ` <56E9776F.3070102-phGP8mJ4Mqk@public.gmane.org>
2016-03-16 17:42               ` Marc Zyngier
2016-03-16 17:42                 ` Marc Zyngier
     [not found]                 ` <56E99B0C.2070609-5wv7dgnIgG8@public.gmane.org>
2016-03-16 23:56                   ` Bert Lindner
2016-03-16 23:56                     ` Bert Lindner
     [not found]                     ` <56E9F2B8.1030605-phGP8mJ4Mqk@public.gmane.org>
2016-03-17  7:52                       ` Marc Zyngier
2016-03-17  7:52                         ` Marc Zyngier
2016-05-20  5:44                         ` Andre Heider
2016-05-20  5:44                           ` Andre Heider
     [not found]                           ` <CAHsu+b-t_r93XKLJTUcin6xjhOrFVn3_60vwHkbRt3iHK28CbA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20  7:56                             ` Marc Zyngier
2016-05-20  7:56                               ` Marc Zyngier
     [not found]                               ` <573EC33D.2010209-5wv7dgnIgG8@public.gmane.org>
2016-05-20  8:14                                 ` Giuseppe CAVALLARO
2016-05-20  8:14                                   ` Giuseppe CAVALLARO
     [not found]                                   ` <573EC77A.2000800-qxv4g6HH51o@public.gmane.org>
2016-05-20 10:30                                     ` Andre Heider
2016-05-20 10:30                                       ` Andre Heider
2016-05-20 10:36                                       ` Marc Zyngier
2016-05-20 10:36                                         ` Marc Zyngier
     [not found]                                         ` <573EE8B4.1050701-5wv7dgnIgG8@public.gmane.org>
2016-05-20 10:43                                           ` Andre Heider
2016-05-20 10:43                                             ` Andre Heider
2016-05-21 15:47                                           ` Bert Lindner
2016-05-21 15:47                                             ` Bert Lindner
     [not found]                                             ` <574082F9.7010702-phGP8mJ4Mqk@public.gmane.org>
2016-05-22  9:30                                               ` Marc Zyngier
2016-05-22  9:30                                                 ` Marc Zyngier
     [not found]                                                 ` <20160522103056.2fa86293-5wv7dgnIgG8@public.gmane.org>
2016-05-23 13:28                                                   ` Giuseppe CAVALLARO
2016-05-23 13:28                                                     ` Giuseppe CAVALLARO
2016-05-23 13:28                                                     ` Giuseppe CAVALLARO

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.