AnsweredAssumed Answered

Memac Manage

Question asked by Stefano Di Giulio on Jul 22, 2016
Latest reply on Jul 24, 2016 by ufedor

Hi,

I need support for a problem on the management memac interface.     

my environment:   

QorIQ T2080,   

VxWorks 6.9       

 

we are connected the Phy Marvel Alaska 88E1340.   

With the below assignmetns   

SERDES1 Lane C memac1 MDIO 0 addr 0   

SERDES1 Lane D memac2 MDIO 0 addr 1   

SERDES1 Lane E memac3 MDIO 0 addr 2   

SERDES1 Lane F memac4 MDIO 0 addr 1       

 

Via MDIO bus, the Marve responding properly,   

read and write properly registers and the physical can negotiate with the external link (RJ45). 

 

But we can not generate traffic outgoing and incoming through Marvel.         

 

more informations   

Our RCW:     -> d 0xf0000000,30,4

NOTE: memory values are displayed in hexadecimal.

0xf0000000:  aa55aa55 010e0100 0a0a000f 0f000000  *.U.U............*

0xf0000010:  00000000 00000000 1c1f0002 00504200  *.............PB.*

0xf0000020:  ec027000 c1000000 00000000 00000000  *..p.............*

0xf0000030:  00000000 0003a000 00000300 02800000  *................*

0xf0000040:  00000000 00000004 08138040 35684718  *...........@5hG.*

 

General SRDS control registes

-> d 0xBE0EA000,100,4 NOTE: memory values are displayed in hexadecimal.

0xbe0ea000:  464745e8 00800009 08204100 00260000  *FGE...... A..&..*

0xbe0ea010:  00000000 e8000000 00000000 00000000  *................*

0xbe0ea020:  264745e7 80000008 08004100 00800c00  *&GE.......A.....*

0xbe0ea030:  00000000 e8000000 00000000 00000000  *................*

0xbe0ea040:  00000000 00000000 00000000 00000000  *................*

0xbe0ea050:  00000000 00000000 00000000 00000000  *................*

0xbe0ea060:  00000000 00000000 00000000 00000000  *................*

0xbe0ea070:  00000000 00000000 00000000 00000000  *................*

0xbe0ea080:  00000000 00000000 00000000 00000000  *................*

0xbe0ea090:  48000000 00000000 00000000 00000000  *H...............*

0xbe0ea0a0:  48008000 00000000 00000000 00000000  *H...............*

0xbe0ea0b0:  01880000 00000000 00000000 00000000  *................*

0xbe0ea0c0:  00000000 00000000 00000000 00000000  *................*

0xbe0ea0d0:  99000000 00000000 00000000 00000000  *................*

0xbe0ea0e0:  00000000 0a550000 00000000 00000000  *.....U..........*

0xbe0ea0f0:  00000000 00000000 00000000 00000000  *................*

 

mEMAC General contro and statu registers

-> d 0xBE4E2008,100,4 NOTE: memory values are displayed in hexadecimal.

0xbe4e2000:                    00000803 a21ea000  *            ....*

0xbe4e2010:  0000a0aa 000005f2 00000000 00000500  *................*

0xbe4e2020:  00400080 00000000 00000000 0000003f  *.@.............?*

0xbe4e2030:  4000321c 00000000 00001340 00001340  *@.2........@...@*

0xbe4e2040:  e0000060 0000000c 00000000 00000000  *...`............*

0xbe4e2050:  00000000 00000000 00000000 00000000  *................*

0xbe4e2060:  00000000 00000000 00000000 00000000  *................*

0xbe4e2070:  00000000 00000000 00000000 00000000  *................*

0xbe4e2080:  00000000 00000000 00000000 00000000  *................*

0xbe4e2090:  00000000 00000000 00000000 00000000  *................*

0xbe4e20a0:  00000000 00000000 00000000 00000000  *................*

0xbe4e20b0:  00000000 00000000 00002000 00000000  *.......... .....*

0xbe4e20c0:  00000000 00000000 00000000 00000000  *................*

0xbe4e20d0:  00000000 00000000 00000000 00000000  *................*

0xbe4e20e0:  00000000 00000000 00000000 00000000  *................*

0xbe4e20f0:  00000000 00000000 00000000 00000000  *................*

0xbe4e2100:  000003c0 00000000 000003c0 00000000  *................*

0xbe4e2110:  00000000 00000000 00000000 00000000  *................*

0xbe4e2120:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2130:  00000000 00000000 00000000 00000000  *................*

0xbe4e2140:  00000000 00000000 00000000 00000000  *................*

0xbe4e2150:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2160:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2170:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2180:  00000000 00000000 00000000 00000000  *................*

0xbe4e2190:  00000000 00000000                    *................*

 

Dedicated MDIO Ethernet

-> d 0xBE4FC031,100,4 NOTE: memory values are displayed in hexadecimal.

0xbe4fc030:  4000321c 00000041 00007949 00007949  *@.2....A..yI..yI*

0xbe4fc040:  00000000 00000000 00000000 00000000  *................*

0xbe4fc050:  00000000 00000000 00000000 00000000  *................*

0xbe4fc060:  00000000 00000000 00000000 00000000  *................*

0xbe4fc070:  00000000 00000000 00000000 00000000  *................*

0xbe4fc080:  00000000 00000000 00000000 00000000  *................*

0xbe4fc090:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0a0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0b0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0c0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0d0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0e0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc0f0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc100:  00000000 00000000 00000000 00000000  *................*

0xbe4fc110:  00000000 00000000 00000000 00000000  *................*

0xbe4fc120:  00000000 00000000 00000000 00000000  *................*

0xbe4fc130:  00000000 00000000 00000000 00000000  *................*

0xbe4fc140:  00000000 00000000 00000000 00000000  *................*

0xbe4fc150:  00000000 00000000 00000000 00000000  *................*

0xbe4fc160:  00000000 00000000 00000000 00000000  *................*

0xbe4fc170:  00000000 00000000 00000000 00000000  *................*

0xbe4fc180:  00000000 00000000 00000000 00000000  *................*

0xbe4fc190:  00000000 00000000 00000000 00000000  *................*

0xbe4fc1a0:  00000000 00000000 00000000 00000000  *................*

0xbe4fc1b0:  00000000 00000000 00000000 00000000  *................*

 

MDIO ethenret managment

-> d 0xBE4E3030 NOTE: memory values are displayed in hexadecimal.

0xbe4e3030:  4000321c 00000000 00001340 00001340  *@.2........@...@*

0xbe4e3040:  00000000 00000000 00000000 00000000  *................*

0xbe4e3050:  00000000 00000000 00000000 00000000  *................*

0xbe4e3060:  00000000 00000000 00000000 00000000  *................*

0xbe4e3070:  00000000 00000000 00000000 00000000  *................*

0xbe4e3080:  00000000 00000000 00000000 00000000  *................*

0xbe4e3090:  00000000 00000000 00000000 00000000  *................*

0xbe4e30a0:  00000000 00000000 00000000 00000000  *................*

0xbe4e30b0:  00000000 00000000 00000000 00000000  *................*

0xbe4e30c0:  00000000 00000000 00000000 00000000  *................*

0xbe4e30d0:  00000000 00000000 00000000 000000000  *................*

0xbe4e30e0:  00000000 00000000 00000000 00000000  *................*

0xbe4e30f0:  00000000 00000000 00000000 00000000  *................*

0xbe4e3100:  00000000 00000000 00000000 00000000  *................*

0xbe4e3110:  00000000 00000000 00000000 00000000  *................*

0xbe4e3120:  00000000 00000000 00000000 00000000  *................*

0xbe4e3130:  00000000 00000000 00000000 00000000  *................*

0xbe4e3140:  00000000 00000000 00000000 00000000  *................*

0xbe4e3150:  00000000 00000000 00000000 00000000  *................*

0xbe4e3160:  00000000 00000000 00000000 00000000  *................*

0xbe4e3170:  00000000 00000000 00000000 00000000  *................*

0xbe4e3180:  00000000 00000000 00000000 00000000  *................*

0xbe4e3190:  00000000 00000000 00000000 00000000  *..............

 

For example, on memac2,

 

when it detects the physical link, the SW driver tries to send the ARP packet,

the SW counters are incremented, but we do not see anything out at ETH  Phy level.

-> ifconfig ...... memac2

Link type:Ethernet  HWaddr 00:a0:1e:a2:aa:a0  Queue:none     

inet 192.168.110.20  mask 255.255.255.0  broadcast 192.168.110.255 

UP RUNNING SIMPLEX BROADCAST MULTICAST         MTU:1500  metric:1  VR:0  ifindex:2

RX packets:0 mcast:0 errors:0 dropped:0     

TX packets:1 mcast:0 errors:0       

collisions:0 unsupported proto:0       

RX bytes:0  TX bytes:42

 

We tried to apply the loopback the serdes.

applying the loopback at the register SerDes1_LN3TCSR3

-> d 0xBE0EA8FC    

0xbe0ea8f0:                                18000000  *              ..*

 

In this configuration,

if I try to generate ARP traffic, here's what happens:

 

the counter show us that,

We receive more bytes of those sent.

-> ifconfig ....

memac2

Link type:Ethernet  HWaddr 00:a0:1e:a2:aa:a0

Queue:none         inet 192.168.110.20  mask 255.255.255.0  broadcast 192.168.110.255     

UP RUNNING SIMPLEX BROADCAST MULTICAST         MTU:1500  metric:1  VR:0  ifindex:2       

RX packets:1 mcast:0 errors:0 dropped:0       

TX packets:1 mcast:0 errors:0       

collisions:0 unsupported proto:0       

RX bytes:60  TX bytes:42

 

 

I get the following FMAN statistics:

 

-> d 0xbe4e2100,200,4 NOTE:

memory values are displayed in hexadecimal.

0xbe4e2100:  000003c0 00000000 000003c0 00000000  *................*

0xbe4e2110:  00000000 00000000 00000000 00000000  *................*

0xbe4e2120:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2130:  00000000 00000000 00000000 00000000  *................*

0xbe4e2140:  00000000 00000000 00000000 00000000  *................*

0xbe4e2150:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2160:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2170:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2180:  00000000 00000000 00000000 00000000  *................*

0xbe4e2190:  00000000 00000000 00000000 00000000  *................*

0xbe4e21a0:  00000000 00000000 00000000 00000000  *................*

0xbe4e21b0:  00000000 00000000 00000000 00000000  *................*

0xbe4e21c0:  00000000 00000000 00000000 00000000  *................*

0xbe4e21d0:  00000000 00000000 00000000 00000000  *................*

0xbe4e21e0:  00000000 00000000 00000000 00000000  *................*

0xbe4e21f0:  00000000 00000000 00000000 00000000  *................*

0xbe4e2200:  000003c0 00000000 000003c0 00000000  *................*

0xbe4e2210:  00000000 00000000 00000000 00000000  *................*

0xbe4e2220:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2230:  00000000 00000000 00000000 00000000  *................*

0xbe4e2240:  00000000 00000000 00000000 00000000  *................*

0xbe4e2250:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2260:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2270:  0000000f 00000000 00000000 00000000  *................*

0xbe4e2280:  00000000 00000000 00000000 00000000  *................*

0xbe4e2290:  00000000 00000000 00000000 00000000  *................*

0xbe4e22a0:  00000000 00000000 00000000 00000000  *................*

0xbe4e22b0:  00000000 00000000 00000000 00000000  *................*

0xbe4e22c0:  00000000 00000000 00000000 00000000  *................*

0xbe4e22d0:  00000000 00000000 00000000 00000000  *................*

0xbe4e22e0:  00000000 00000000 00000000 00000000  *................*

0xbe4e22f0:  00000000 00000000 00000000 00000000  *................*

0xbe4e2300:  00008002 00002000 00000000 00000000  *...... .........*

0xbe4e2310:  00000000 00000000 00000000 00000000  *................*

0xbe4e2320:  00000000 00000000 00000000 00000000  *................*

0xbe4e2330:  00000000 00000000 00000000 00000000  *................*

0xbe4e2340:  00000000 00000000 00000000 00000000  *................*

0xbe4e2350:  00000000 00000000 00000000 00000000  *................*

0xbe4e2360:  00000000 00000000 00000000 00000000  *................*

0xbe4e2370:  00000000 00000000 00000000 00000000  *................*

0xbe4e2380:  00000000 00000000 00000000 00000000  *................*

0xbe4e2390:  00000000 00000000 00000000 00000000  *................*

0xbe4e23a0:  00000000 00000000 00000000 00000000  *................*

0xbe4e23b0:  00000000 00000000 00000000 00000000  *................*

0xbe4e23c0:  00000000 00000000 00000000 00000000  *................*

0xbe4e23d0:  00000000 00000000 00000000 00000000  *................*

0xbe4e23e0:  00000000 00000000 00000000 00000000  *................*

0xbe4e23f0:  00000000 00000000 00000000 00000000  *................*

0xbe4e2400:  0001011e 00000000 00000803 a21ea000  *................*

0xbe4e2410:  0000a0aa 000005f2 00000000 00000500  *................*

 

The counter to highlight is TFC_L counter

TFCSn Incremented for each frame transmitted with a CRC-32 error except for underflows.

 

I would have expected to see increased TFRM and not TFCS.

could this be the problem?

 

regards

Stefano

Outcomes