All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: MAC#2 RGMII mode can't ping other IP address on AST2500
@ 2018-09-26  7:21 xiuzhi
  0 siblings, 0 replies; 4+ messages in thread
From: xiuzhi @ 2018-09-26  7:21 UTC (permalink / raw)
  To: openbmc, Andrew.Jeffery

[-- Attachment #1: Type: text/plain, Size: 3027 bytes --]

Hi Andrew,

On Wed, 26 Sep 2018, at 11:47, xiuzhi wrote:
>> Hi All,
>>    My hardware set AST2500 MAC#2  on RGMII mode. the device is Broadcom 
>> BCM54612, The PHY and control is good . But it can not ping other IP. 
>> The .dts file is:
>>  
>> &mac1 {
>> 
>>         status = "okay";
>> 
>>         pinctrl-names = "default";
>> 
>>         pinctrl-0 = <&pinctrl_rgmii2_default>;
>> 
>> };
>> 
>> The kernel boot info:
>> 
>> [    3.747357] ftgmac100 1e680000.ethernet: Error applying setting, 
>> reverse things back

>The failure to apply the pinctrl configuration isn't going to help. Can you >please open an issue on GitHub, provide the full dmesg output and point >to the kernel tree and configuration you are building?
I  created a new issue No 3388:  https://github.com/openbmc/openbmc/issues/3388


Xiuzhi
>Thanks,

>Andrew

> 
>> [    3.755351] ftgmac100 1e680000.ethernet: Generated random MAC address 
>> 6a:ba:31:cd:e3:32
>> 
>> [    3.771891] libphy: ftgmac100_mdio: probed
>> 
>> [    3.776178] Generic PHY 1e680000.ethernet--1:00: attached PHY driver 
>> [Generic PHY] (mii_bus:phy_addr=1e680000.ethernet--1:00, irq=POLL)
>> 
>> [    3.799636] ftgmac100 1e680000.ethernet eth0: irq 19, mapped at 5ae85020
>> 
>> ... ...
>> 
>> [  OK  ] Found device /dev/aspeed-lpc-ctrl.
>> 
>> [  OK     17.494678] ftgmac100 1e680000.ethernet eth0: Link is Up - 
>> 100Mbps/Full - flow control rx/tx
>> 
>> m] Created slice[   17.503871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link 
>> becomes ready
>> 
>>  system-xyz.openbmc_project.led.controller.slice.
>> 
>>          Starting Network Name Resolution...
>> 
>> [  OK  ] Reached target System Time Synchronized.
>> 
>> ......
>> 
>> The values of register SCU0C and SCU70 are correct, the values are:
>> 
>> #devmem 0x1e6e200C
>> 
>> 0xFFDD7A8B,  the bit 21 is 0(MAC#2 enable clock running) ,the bit 20 is 1
>> 
>> #dev mem 0x1e6e2070
>> 
>> 0xF109F296 , the bit 7 is 1 (RGMII),the bit6 is 0
>> 
>> 
>> 
>> 
>> Execting the command "ifconfig eth0 up" log is:
>> 
>> root@romulus:~# ifconfig eth0 up  
>> 
>> [  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>> 
>> root@romulus:~# [  274.986878] ftgmac100 1e680000.ethernet eth0: Link is 
>> Up - 100Mbps/Full - flow control rx/tx
>> 
>> [  274.995944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
>> 
>> My bmc ip is 192.168.120.141, it can't ping other IPs.
>> 
>> I also set the gateway. route add default gw 192.168.120.254.
>> I trace the error  "ftgmac100 1e680000.ethernet: Error applying setting, 
>> reverse things back" in file drivers/pinctrl/core.c  
>> L1206 
>> list_for_each_entry(setting, &stte->settings,node)
>> switch(setting->type?{
>> case PIN_MAP_TYPE_MUX_GROUP
>>       ret = pinmux_enable_setting(setting); 
>> }
>> the ret value is -1 
>> My kernel version is 4.17.14. The other kernel versions reproduce the 
>> same error.
>> What is wrong with it?
>> 
>> 
>> Xiuzhi

[-- Attachment #2: Type: text/html, Size: 4193 bytes --]

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

* Re: MAC#2 RGMII mode can't ping other IP address on AST2500
  2018-09-26  3:49 ` Andrew Jeffery
@ 2018-09-26  6:58   ` Cédric Le Goater
  0 siblings, 0 replies; 4+ messages in thread
From: Cédric Le Goater @ 2018-09-26  6:58 UTC (permalink / raw)
  To: Andrew Jeffery, xiuzhi, openbmc

On 9/26/18 5:49 AM, Andrew Jeffery wrote:
> Hello,
> 
> On Wed, 26 Sep 2018, at 11:47, xiuzhi wrote:
>> Hi All,
>>    My hardware set AST2500 MAC#2  on RGMII mode. the device is Broadcom 
>> BCM54612, The PHY and control is good . But it can not ping other IP. 
>> The .dts file is:
>>  
>> &mac1 {
>>
>>         status = "okay";
>>
>>         pinctrl-names = "default";
>>
>>         pinctrl-0 = <&pinctrl_rgmii2_default>;
>>
>> };
>>
>> The kernel boot info:
>>
>> [    3.747357] ftgmac100 1e680000.ethernet: Error applying setting, 
>> reverse things back
> 
> The failure to apply the pinctrl configuration isn't going to help. Can you please open an issue on GitHub, provide the full dmesg output and point to the kernel tree and configuration you are building?

yes. 

The OpenBMC kernel works fine but the DTS is adding the mdio pins. 

Thanks,

C.  


> Thanks,
> 
> Andrew
> 
>>
>> [    3.755351] ftgmac100 1e680000.ethernet: Generated random MAC address 
>> 6a:ba:31:cd:e3:32
>>
>> [    3.771891] libphy: ftgmac100_mdio: probed
>>
>> [    3.776178] Generic PHY 1e680000.ethernet--1:00: attached PHY driver 
>> [Generic PHY] (mii_bus:phy_addr=1e680000.ethernet--1:00, irq=POLL)
>>
>> [    3.799636] ftgmac100 1e680000.ethernet eth0: irq 19, mapped at 5ae85020
>>
>> ... ...
>>
>> [  OK  ] Found device /dev/aspeed-lpc-ctrl.
>>
>> [  OK     17.494678] ftgmac100 1e680000.ethernet eth0: Link is Up - 
>> 100Mbps/Full - flow control rx/tx
>>
>> m] Created slice[   17.503871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link 
>> becomes ready
>>
>>  system-xyz.openbmc_project.led.controller.slice.
>>
>>          Starting Network Name Resolution...
>>
>> [  OK  ] Reached target System Time Synchronized.
>>
>> ......
>>
>> The values of register SCU0C and SCU70 are correct, the values are:
>>
>> #devmem 0x1e6e200C
>>
>> 0xFFDD7A8B,  the bit 21 is 0(MAC#2 enable clock running) ,the bit 20 is 1
>>
>> #dev mem 0x1e6e2070
>>
>> 0xF109F296 , the bit 7 is 1 (RGMII),the bit6 is 0
>>
>>
>>
>>
>> Execting the command "ifconfig eth0 up" log is:
>>
>> root@romulus:~# ifconfig eth0 up  
>>
>> [  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
>>
>> root@romulus:~# [  274.986878] ftgmac100 1e680000.ethernet eth0: Link is 
>> Up - 100Mbps/Full - flow control rx/tx
>>
>> [  274.995944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
>>
>> My bmc ip is 192.168.120.141, it can't ping other IPs.
>>
>> I also set the gateway. route add default gw 192.168.120.254.
>> I trace the error  "ftgmac100 1e680000.ethernet: Error applying setting, 
>> reverse things back" in file drivers/pinctrl/core.c  
>> L1206 
>> list_for_each_entry(setting, &stte->settings,node)
>> switch(setting->type){
>> case PIN_MAP_TYPE_MUX_GROUP
>>       ret = pinmux_enable_setting(setting); 
>> }
>> the ret value is -1 
>> My kernel version is 4.17.14. The other kernel versions reproduce the 
>> same error.
>> What is wrong with it?
>>
>>
>> Xiuzhi

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

* Re: MAC#2 RGMII mode can't ping other IP address on AST2500
  2018-09-26  2:17 =?gb18030?B?eGl1emhp?=
@ 2018-09-26  3:49 ` Andrew Jeffery
  2018-09-26  6:58   ` Cédric Le Goater
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Jeffery @ 2018-09-26  3:49 UTC (permalink / raw)
  To: xiuzhi, openbmc

Hello,

On Wed, 26 Sep 2018, at 11:47, xiuzhi wrote:
> Hi All,
>    My hardware set AST2500 MAC#2  on RGMII mode. the device is Broadcom 
> BCM54612, The PHY and control is good . But it can not ping other IP. 
> The .dts file is:
>  
> &mac1 {
> 
>         status = "okay";
> 
>         pinctrl-names = "default";
> 
>         pinctrl-0 = <&pinctrl_rgmii2_default>;
> 
> };
> 
> The kernel boot info:
> 
> [    3.747357] ftgmac100 1e680000.ethernet: Error applying setting, 
> reverse things back

The failure to apply the pinctrl configuration isn't going to help. Can you please open an issue on GitHub, provide the full dmesg output and point to the kernel tree and configuration you are building?

Thanks,

Andrew

> 
> [    3.755351] ftgmac100 1e680000.ethernet: Generated random MAC address 
> 6a:ba:31:cd:e3:32
> 
> [    3.771891] libphy: ftgmac100_mdio: probed
> 
> [    3.776178] Generic PHY 1e680000.ethernet--1:00: attached PHY driver 
> [Generic PHY] (mii_bus:phy_addr=1e680000.ethernet--1:00, irq=POLL)
> 
> [    3.799636] ftgmac100 1e680000.ethernet eth0: irq 19, mapped at 5ae85020
> 
> ... ...
> 
> [  OK  ] Found device /dev/aspeed-lpc-ctrl.
> 
> [  OK     17.494678] ftgmac100 1e680000.ethernet eth0: Link is Up - 
> 100Mbps/Full - flow control rx/tx
> 
> m] Created slice[   17.503871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link 
> becomes ready
> 
>  system-xyz.openbmc_project.led.controller.slice.
> 
>          Starting Network Name Resolution...
> 
> [  OK  ] Reached target System Time Synchronized.
> 
> ......
> 
> The values of register SCU0C and SCU70 are correct, the values are:
> 
> #devmem 0x1e6e200C
> 
> 0xFFDD7A8B,  the bit 21 is 0(MAC#2 enable clock running) ,the bit 20 is 1
> 
> #dev mem 0x1e6e2070
> 
> 0xF109F296 , the bit 7 is 1 (RGMII),the bit6 is 0
> 
> 
> 
> 
> Execting the command "ifconfig eth0 up" log is:
> 
> root@romulus:~# ifconfig eth0 up  
> 
> [  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> 
> root@romulus:~# [  274.986878] ftgmac100 1e680000.ethernet eth0: Link is 
> Up - 100Mbps/Full - flow control rx/tx
> 
> [  274.995944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
> 
> My bmc ip is 192.168.120.141, it can't ping other IPs.
> 
> I also set the gateway. route add default gw 192.168.120.254.
> I trace the error  "ftgmac100 1e680000.ethernet: Error applying setting, 
> reverse things back" in file drivers/pinctrl/core.c  
> L1206 
> list_for_each_entry(setting, &stte->settings,node)
> switch(setting->type){
> case PIN_MAP_TYPE_MUX_GROUP
>       ret = pinmux_enable_setting(setting); 
> }
> the ret value is -1 
> My kernel version is 4.17.14. The other kernel versions reproduce the 
> same error.
> What is wrong with it?
> 
> 
> Xiuzhi

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

* MAC#2 RGMII mode can't ping other IP address on AST2500
@ 2018-09-26  2:17 =?gb18030?B?eGl1emhp?=
  2018-09-26  3:49 ` Andrew Jeffery
  0 siblings, 1 reply; 4+ messages in thread
From: =?gb18030?B?eGl1emhp?= @ 2018-09-26  2:17 UTC (permalink / raw)
  To: =?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 2354 bytes --]

Hi All,
   My hardware set AST2500 MAC#2  on RGMII mode. the device is Broadcom BCM54612, The PHY and control is good . But it can not ping other IP. The .dts file is:
 
&mac1 {

        status = "okay";

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_rgmii2_default>;

};

The kernel boot info:

[    3.747357] ftgmac100 1e680000.ethernet: Error applying setting, reverse things back

[    3.755351] ftgmac100 1e680000.ethernet: Generated random MAC address 6a:ba:31:cd:e3:32

[    3.771891] libphy: ftgmac100_mdio: probed

[    3.776178] Generic PHY 1e680000.ethernet--1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1e680000.ethernet--1:00, irq=POLL)

[    3.799636] ftgmac100 1e680000.ethernet eth0: irq 19, mapped at 5ae85020

... ...

[  OK  ] Found device /dev/aspeed-lpc-ctrl.

[  OK     17.494678] ftgmac100 1e680000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

m] Created slice[   17.503871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

 system-xyz.openbmc_project.led.controller.slice.

         Starting Network Name Resolution...

[  OK  ] Reached target System Time Synchronized.

......

The values of register SCU0C and SCU70 are correct, the values are:

#devmem 0x1e6e200C

0xFFDD7A8B,  the bit 21 is 0(MAC#2 enable clock running) ,the bit 20 is 1

#dev mem 0x1e6e2070

0xF109F296 , the bit 7 is 1 (RGMII),the bit6 is 0




Execting the command "ifconfig eth0 up" log is:

root@romulus:~# ifconfig eth0 up  

[  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

root@romulus:~# [  274.986878] ftgmac100 1e680000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

[  274.995944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 

My bmc ip is 192.168.120.141, it can't ping other IPs.

I also set the gateway. route add default gw 192.168.120.254.
I trace the error  "ftgmac100 1e680000.ethernet: Error applying setting, reverse things back" in file drivers/pinctrl/core.c  
L1206 
list_for_each_entry(setting, &stte->settings,node)
switch(setting->type£©{
case PIN_MAP_TYPE_MUX_GROUP
      ret = pinmux_enable_setting(setting); 
}
the ret value is -1 
My kernel version is 4.17.14. The other kernel versions reproduce the same error.
What is wrong with it?


Xiuzhi

[-- Attachment #2: Type: text/html, Size: 4540 bytes --]

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

end of thread, other threads:[~2018-09-26  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26  7:21 MAC#2 RGMII mode can't ping other IP address on AST2500 xiuzhi
  -- strict thread matches above, loose matches on Subject: below --
2018-09-26  2:17 =?gb18030?B?eGl1emhp?=
2018-09-26  3:49 ` Andrew Jeffery
2018-09-26  6:58   ` Cédric Le Goater

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.