AnsweredAssumed Answered

DPAA+shared interface

Question asked by sharath kumar on Jul 3, 2017
Latest reply on Jul 5, 2017 by Yiping Wang

Hi,

I am trying to configure interface in shared mode on p2041 custom board

 

the transmission is getting faied and the error counters is incremented

 

boot time log

 

fsl_mac: mac.c:416:mac_load() fsl_mac: FSL FMan MAC API based driver ()
fsl_mac b04e0000.ethernet: FMan dTSEC version: 0x08240101
fsl_mac b04e0000.ethernet: FMan MAC address: 00:00:0e:46:11:fd
fsl_mac b04e2000.ethernet: FMan dTSEC version: 0x08240101
fsl_mac b04e2000.ethernet: FMan MAC address: 00:00:0e:46:12:fd
fsl_mac b04e4000.ethernet: FMan dTSEC version: 0x08240101
fsl_mac b04e4000.ethernet: FMan MAC address: 00:00:0e:46:13:fd
fsl_mac b04e6000.ethernet: FMan dTSEC version: 0x08240101
fsl_mac b04e6000.ethernet: FMan MAC address: 00:00:0e:46:14:fd
fsl_mac b04e8000.ethernet: FMan dTSEC version: 0x08240101
fsl_mac b04e8000.ethernet: FMan MAC address: 00:00:0e:46:15:fd
fsl_dpa: FSL DPAA Ethernet driver ()
fsl_dpa: Probed interface eth0
fsl_dpa: Probed interface eth1
fsl_dpa_shared: FSL DPAA Shared Ethernet driver ()
fsl_dpa_shared: Probed shared interface eth2
fsl_dpa_proxy: FSL DPAA Proxy initialization driver ()
fsl_oh: FSL FMan Offline Parsing port driver ()
fsl_oh dpa-fman0-oh.17: Found OH node handle compatible with fsl,dpa-oh.
fsl_oh dpa-fman0-oh.17: OH port /soc@0b0000000/fman@400000/port@82000 has no buffer pool. Fragmentation will not be enabled
fsl_oh dpa-fman0-oh.17: OH port /soc@0b0000000/fman@400000/port@82000 enabled.
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.

 

 

ifconfig command run on the shared interface

 

root@p2041rdb:~# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:00:0E:46:11:FD
inet addr:192.168.15.5 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: fe80::200:eff:fe46:11fd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:b04e0000-b04e0fff

root@p2041rdb:~#
root@p2041rdb:~#
root@p2041rdb:~# cat /sys/devices/fsl,dpaa.11/ethernet.12/net/eth2/device_type
root@p2041rdb:~#
root@p2041rdb:~# cat /sys/devices/fsl,dpaa.11/ethernet.12/net/eth2/device_type
sharedroot@p2041rdb:~#

 

DTB/DTS entry

 

ethernet@0 {
compatible = "fsl,p2041-dpa-ethernet", "fsl,dpa-ethernet-shared";
fsl,fman-mac = <0x24>;
fsl,bman-buffer-pools = <&bp17>;
fsl,qman-frame-queues-rx = <0x50 0x1 0x51 0x1 0x210 3>;
fsl,qman-frame-queues-tx = <0x0 0x1 0x0 0x1 0x200 8>;
};

 


bp17: buffer-pool@17 {
compatible = "fsl,p2041-bpool", "fsl,bpool";
fsl,bpid = <17>;
fsl,bpool-ethernet-cfg = <0 2048 0 1728 0 0>;
fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
};

 

can someone point how debug this issue

 

-Sharath

Outcomes