@@ -506,21 +506,81 @@ The TI switch-config tool can be used for CPSW NUSS register dump parsing.
506506| reg_value (u32) | MMIO region dump length, including header |
507507+--------------------+---------------------------------------------+
508508
509- Exception: ALE table dumped as raw array of ALE records (3 * u32 per record).
509+ .. ifconfig :: CONFIG_part_variant in ('AM62X','AM62PX','AM64X')
510+
511+ Exception: ALE table dumped as raw array of ALE records (3 * u32 per record).
512+
513+ .. code-block :: console
514+
515+ # ethtool -d eth0
516+ Offset Values
517+ ------ ------
518+ 0x0000: 01 00 00 00 48 00 00 00 00 00 00 00 00 71 a0 6b
519+ 0x0010: 04 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00
520+ 0x0020: 0c 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00
521+ 0x0030: 14 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00
522+ 0x0040: 1c 00 00 00 00 00 00 00 02 00 00 00 48 00 00 00
523+ 0x0050: 30 00 00 00 0b 00 00 00 34 00 00 00 00 00 00 00
524+ 0x0060: 38 00 00 00 00 00 00 00 3c 00 00 00 00 00 00 00
525+ ...
510526
511- .. code-block :: console
527+ .. ifconfig :: CONFIG_part_variant not in ('AM62X','AM62PX','AM64X')
528+
529+ .. code-block :: console
530+
531+ # ethtool --register-dump eth0
532+ K3 CPSW dump version: 1, len: 6328
533+ (Missing registers in memory space can be considered as zero valued)
534+ --------------------------------------------------------------------
535+ cpsw-nuss regdump: number of Registers:(16)
536+ 00000000:reg(6BA02102)
537+ 00000010:reg(00000001)
538+ cpsw-nuss-rgmii-status regdump: number of Registers:(16)
539+ 00000030:reg(0000000D)
540+ cpsw-nuss-mdio regdump: number of Registers:(128)
541+ 00000f00:reg(00070907)
542+ 00000f04:reg(8100014C)
543+ 00000f08:reg(00000001)
544+ 00000f0c:reg(00000001)
545+ 00000f10:reg(00000003)
546+ 00000f30:reg(00000001)
547+ 00000f34:reg(80000000)
548+ 00000f38:reg(FFFFFFFF)
549+ cpsw-nu regdump: number of Registers:(144)
550+ 00020000:reg(6BA82102)
551+ 00020004:reg(00006006)
552+ ...
512553
513- # ethtool -d eth0
514- Offset Values
515- ------ ------
516- 0x0000: 01 00 00 00 48 00 00 00 00 00 00 00 00 71 a0 6b
517- 0x0010: 04 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00
518- 0x0020: 0c 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00
519- 0x0030: 14 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00
520- 0x0040: 1c 00 00 00 00 00 00 00 02 00 00 00 48 00 00 00
521- 0x0050: 30 00 00 00 0b 00 00 00 34 00 00 00 00 00 00 00
522- 0x0060: 38 00 00 00 00 00 00 00 3c 00 00 00 00 00 00 00
523- ...
554+ ALE-table will also get dumped after all register dumps.
555+ Example of ALE-dump:
556+
557+ .. code-block :: console
558+
559+ Number of ALE entries: 64
560+ 0: Type: Inner VLAN
561+ Nolearn Mask = 0x0, Ingress Check = 0
562+ VLAN ID = 0, No Frag = 0, Registered Mask = 0x0
563+ Force Untagged Packet Egress = 0x3, Unregistered Mask = 0x1, Limit Next Header Control = 0, Members = 0x3
564+ 1: Type: Unicast
565+ Updated Address = f4:84:4c:fb:3e:9a, Unicast Type = Persistent, Port_num = 0x0, Secure: 1, Blocked: 0, Touch = 0, Agable = 0
566+ 2: Type: Multicast
567+ VID = 0, Address = ff:ff:ff:ff:ff:ff, Multicast_state = Forwarding, No Super, port_mask = 0x3
568+ 3: Type: Multicast
569+ Address = 01:00:5e:00:00:01, Multicast_State = Forwarding, No Super, port_mask = 0x3
570+ 4: Type: Multicast
571+ Address = 33:33:00:00:00:01, Multicast_State = Forwarding, No Super, port_mask = 0x3
572+ 5: Type: Multicast
573+ Address = 33:33:ff:fb:3e:9a, Multicast_State = Forwarding, No Super, port_mask = 0x3
574+ 6: Type: Multicast
575+ Address = 33:33:00:00:00:fb, Multicast_State = Forwarding, No Super, port_mask = 0x3
576+ 7: Type: Multicast
577+ Address = 01:00:5e:00:00:fb, Multicast_State = Forwarding, No Super, port_mask = 0x3
578+ 8: Type: Multicast
579+ Address = 01:80:c2:00:00:00, Multicast_State = Forwarding, No Super, port_mask = 0x3
580+ 9: Type: Multicast
581+ Address = 01:80:c2:00:00:03, Multicast_State = Forwarding, No Super, port_mask = 0x3
582+ 10: Type: Multicast
583+ Address = 01:80:c2:00:00:0e, Multicast_State = Forwarding, No Super, port_mask = 0x3
524584
525585################
526586Interrupt pacing
0 commit comments