This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
SDK vision: 8.2
My board is TDA4 connected with SJA1105(ethernet switch with RGMII) using MCU_CPSW(RGMII) .The SJA1105 is RGMII 1000M fixed link with TX and RX delay, and MCU_CPSW is also 1000M fixed link.
Sja1105 connect nvidia orin with sja1105. TDA4 and nvidia use middleware for communication. After few hours, tda4 cann't receive frames from nvidia orin, and no ping response.
Here is the connection:
But after I execute eth0 down/up command on TDA4, the network return to normal.
Here is Tda4 register when the issue occurred
Read at address 0x46000000 : 0x6BA00101 Read at address 0x46000004 : 0x00000000 Read at address 0x46000008 : 0x00000000 Read at address 0x4600000C : 0x00000000 Read at address 0x46000010 : 0x00000001 Read at address 0x46000018 : 0x00000000 Read at address 0x4600001C : 0x00000000 Read at address 0x46000100 : 0x4EC21102 Read at address 0x46000104 : 0x00000000 Read at address 0x46000110 : 0x00000000 Read at address 0x46000114 : 0x00000030 Read at address 0x46000118 : 0x00000000 Read at address 0x4600011C : 0x00000000 Read at address 0x46000120 : 0x00000000 Read at address 0x46000124 : 0x00000000 Read at address 0x46000130 : 0x00000000 Read at address 0x46000134 : 0x00000000 Read at address 0x46000138 : 0x00000000 Read at address 0x46000140 : 0x00000000 Read at address 0x46000144 : 0x00000000 Read at address 0x46000148 : 0x00000000 Read at address 0x46000F00 : 0x00070907 Read at address 0x46000F04 : 0x8100014C Read at address 0x46000F08 : 0x00000013 Read at address 0x46000F0C : 0x00000000 Read at address 0x46000F10 : 0x00000003 Read at address 0x46000F14 : 0x00000000 Read at address 0x46000F18 : 0x00000000 Read at address 0x46000F1C : 0x00000000 Read at address 0x46000F20 : 0x00000001 Read at address 0x46000F24 : 0x00000000 Read at address 0x46000F28 : 0x00000000 Read at address 0x46000F2C : 0x00000000 Read at address 0x46000F30 : 0x00000001 Read at address 0x46000F34 : 0x00000000 Read at address 0x46000F38 : 0xFFFFFFFF Read at address 0x46000F3C : 0x00000000 Read at address 0x46000F40 : 0x00000000 Read at address 0x46000F44 : 0x00000000 Read at address 0x4603A000 : 0x01AC997F Read at address 0x4603A004 : 0x00019DE7 Read at address 0x4603A008 : 0x00029EF0 Read at address 0x4603A010 : 0x00000000 Read at address 0x4603A018 : 0x00000000 Read at address 0x4603A020 : 0x00000000 Read at address 0x4603A024 : 0x00000000 Read at address 0x4603A028 : 0x00000000 Read at address 0x4603A02C : 0x00000000 Read at address 0x4603A030 : 0x44B3A2E4 Read at address 0x4603A034 : 0x07565CC7 Read at address 0x4603A038 : 0x00000AB0 Read at address 0x4603A03C : 0x0006C2DB Read at address 0x4603A064 : 0x2E7CC768 Read at address 0x4603A068 : 0x0001A89F Read at address 0x4603A06C : 0x01ABE093 Read at address 0x4603A070 : 0x0082AFF8 Read at address 0x4603A074 : 0x0102FBD7 Read at address 0x4603A078 : 0x00211C6A Read at address 0x4603A07C : 0x05AEA558 Read at address 0x4603A080 : 0x7332A6CA Read at address 0x4603A084 : 0x00000000 Read at address 0x4603A088 : 0x00000000 Read at address 0x4603A08C : 0x00000000 Read at address 0x4603A090 : 0x00000000 Read at address 0x4603A094 : 0x00000000 Read at address 0x4603A098 : 0x00000000 Read at address 0x4603A09C : 0x00000000 Read at address 0x4603A0A0 : 0x00000000 Read at address 0x4603A0A4 : 0x00000000 Read at address 0x4603A0A8 : 0x00000000 Read at address 0x4603A0AC : 0x00000000 Read at address 0x4603A0B0 : 0x00000000 Read at address 0x4603A0B4 : 0x00000000 Read at address 0x4603A0B8 : 0x00000000 Read at address 0x4603A0BC : 0x00000000 Read at address 0x4603A0C0 : 0x00000000 Read at address 0x4603A0C4 : 0x00000000 Read at address 0x4603A0C8 : 0x00000000 Read at address 0x4603A0CC : 0x00000000 Read at address 0x4603A0D0 : 0x00000000 Read at address 0x4603A0D4 : 0x00000000 Read at address 0x4603A0D8 : 0x00000000 Read at address 0x4603A0DC : 0x00000000 Read at address 0x4603A140 : 0x00000000 Read at address 0x4603A144 : 0x00000000 Read at address 0x4603A148 : 0x00000000 Read at address 0x4603A14C : 0x00000000 Read at address 0x4603A150 : 0x00000000 Read at address 0x4603A154 : 0x00000000 Read at address 0x4603A17C : 0x00000000 Read at address 0x4603A200 : 0x0756775A Read at address 0x4603A204 : 0x00000AB0 Read at address 0x4603A208 : 0x0006DC04 Read at address 0x4603A210 : 0x00000000 Read at address 0x4603A214 : 0x00000000 Read at address 0x4603A218 : 0x00000000 Read at address 0x4603A21C : 0x00000000 Read at address 0x4603A220 : 0x00000000 Read at address 0x4603A224 : 0x00000000 Read at address 0x4603A228 : 0x00001927 Read at address 0x4603A22C : 0x00000000 Read at address 0x4603A230 : 0x2E8B007F Read at address 0x4603A234 : 0x01AC99E4 Read at address 0x4603A238 : 0x00019DE8 Read at address 0x4603A23C : 0x00029EF3 Read at address 0x4603A240 : 0x00000000 Read at address 0x4603A244 : 0x00000000 Read at address 0x4603A248 : 0x00000000 Read at address 0x4603A24C : 0x00000000 Read at address 0x4603A250 : 0x00000000 Read at address 0x4603A254 : 0x00000000 Read at address 0x4603A258 : 0x00000000 Read at address 0x4603A25C : 0x00000000 Read at address 0x4603A260 : 0x00000000 Read at address 0x4603A264 : 0x44B4A52A Read at address 0x4603A268 : 0x0001A92C Read at address 0x4603A26C : 0x01ABF6D9 Read at address 0x4603A270 : 0x0082B2B3 Read at address 0x4603A274 : 0x0102FC0B Read at address 0x4603A278 : 0x00211C90 Read at address 0x4603A27C : 0x05AEA68B Read at address 0x4603A280 : 0x7341A59D Read at address 0x4603A284 : 0x00000000 Read at address 0x4603A288 : 0x00001927 Read at address 0x4603A28C : 0x00000000 Read at address 0x4603A290 : 0x00000000 Read at address 0x4603A294 : 0x00000000 Read at address 0x4603A298 : 0x00000000 Read at address 0x4603A29C : 0x00000000 Read at address 0x4603A2A0 : 0x00000000 Read at address 0x4603A2A4 : 0x00000000 Read at address 0x4603A2A8 : 0x074F91AA Read at address 0x4603A2AC : 0x2AA4B9DA Read at address 0x4603A2B0 : 0x0006DC05 Read at address 0x4603A2B4 : 0x03E78F7B Read at address 0x4603A2B8 : 0x00000AB0 Read at address 0x4603A0BC : 0x00000000 Read at address 0x4603A2C0 : 0x00000000 Read at address 0x4603A2C4 : 0x00000000 Read at address 0x4603A2C8 : 0x00000000 Read at address 0x4603A2CC : 0x00000001 Read at address 0x4603A2D0 : 0x00000000 Read at address 0x4603A2D4 : 0x00000000 Read at address 0x4603A2D8 : 0x00000000 Read at address 0x4603A2DC : 0x00000000 Read at address 0x4603A340 : 0x00000000 Read at address 0x4603A344 : 0x00000000 Read at address 0x4603A348 : 0x00000000 Read at address 0x4603A34C : 0x00000000
Hi,
May I know which SDK version are you using?
Please share the debug as well if you are using Native Linux Driver on A72.
Best Regards,
Sudheer
Here is the log use ethtool :
NIC statistics: p0_rx_good_frames: 1504055 p0_rx_broadcast_frames: 8526 p0_rx_multicast_frames: 38846 p0_rx_crc_errors: 0 p0_rx_oversized_frames: 0 p0_rx_undersized_frames: 0 p0_ale_drop: 0 p0_ale_overrun_drop: 0 p0_rx_octets: 372298592 p0_tx_good_frames: 10935015 p0_tx_broadcast_frames: 12 p0_tx_multicast_frames: 28159 p0_tx_octets: 2943797403 p0_tx_64B_frames: 11935 p0_tx_65_to_127B_frames: 1153624 p0_tx_128_to_255B_frames: 1712456 p0_tx_256_to_511B_frames: 838660 p0_tx_512_to_1023B_frames: 259035 p0_tx_1024B_frames: 8463360 p0_net_octets: 3316095995 p0_rx_bottom_fifo_drop: 0 p0_rx_port_mask_drop: 0 p0_rx_top_fifo_drop: 0 p0_ale_rate_limit_drop: 0 p0_ale_vid_ingress_drop: 5080 p0_ale_da_eq_sa_drop: 0 p0_ale_block_drop: 0 p0_ale_secure_drop: 0 p0_ale_auth_drop: 0 p0_ale_unknown_ucast: 0 p0_ale_unknown_ucast_bytes: 0 p0_ale_unknown_mcast: 0 p0_ale_unknown_mcast_bytes: 0 p0_ale_unknown_bcast: 0 p0_ale_unknown_bcast_bytes: 0 p0_ale_pol_match: 0 p0_ale_pol_match_red: 0 p0_ale_pol_match_yellow: 0 p0_ale_mcast_sa_drop: 0 p0_ale_dual_vlan_drop: 0 p0_ale_len_err_drop: 0 p0_ale_ip_next_hdr_drop: 0 p0_ale_ipv4_frag_drop: 0 p0_tx_mem_protect_err: 0 p0_tx_pri0: 0 p0_tx_pri1: 0 p0_tx_pri2: 0 p0_tx_pri3: 0 p0_tx_pri4: 0 p0_tx_pri5: 0 p0_tx_pri6: 0 p0_tx_pri7: 0 p0_tx_pri0_bcnt: 0 p0_tx_pri1_bcnt: 0 p0_tx_pri2_bcnt: 0 p0_tx_pri3_bcnt: 0 p0_tx_pri4_bcnt: 0 p0_tx_pri5_bcnt: 0 p0_tx_pri6_bcnt: 0 p0_tx_pri7_bcnt: 0 p0_tx_pri0_drop: 0 p0_tx_pri1_drop: 0 p0_tx_pri2_drop: 0 p0_tx_pri3_drop: 0 p0_tx_pri4_drop: 0 p0_tx_pri5_drop: 0 p0_tx_pri6_drop: 0 p0_tx_pri7_drop: 0 p0_tx_pri0_drop_bcnt: 0 p0_tx_pri1_drop_bcnt: 0 p0_tx_pri2_drop_bcnt: 0 p0_tx_pri3_drop_bcnt: 0 p0_tx_pri4_drop_bcnt: 0 p0_tx_pri5_drop_bcnt: 0 p0_tx_pri6_drop_bcnt: 0 p0_tx_pri7_drop_bcnt: 0 rx_good_frames: 10953562 rx_broadcast_frames: 3709 rx_multicast_frames: 34328 rx_pause_frames: 0 rx_crc_errors: 0 rx_align_code_errors: 0 rx_oversized_frames: 0 rx_jabber_frames: 0 rx_undersized_frames: 0 rx_fragments: 0 ale_drop: 18547 ale_overrun_drop: 0 rx_octets: 2956958632 tx_good_frames: 1504055 tx_broadcast_frames: 8526 tx_multicast_frames: 38846 tx_pause_frames: 0 tx_deferred_frames: 0 tx_collision_frames: 0 tx_single_coll_frames: 0 tx_mult_coll_frames: 0 tx_excessive_collisions: 0 tx_late_collisions: 0 rx_ipg_error: 0 tx_carrier_sense_errors: 0 tx_octets: 372318912 tx_64B_frames: 15951 tx_65_to_127B_frames: 1153996 tx_128_to_255B_frames: 1712475 tx_256_to_511B_frames: 845142 tx_512_to_1023B_frames: 259035 tx_1024B_frames: 8471018 net_octets: 3329277544 rx_bottom_fifo_drop: 0 rx_port_mask_drop: 18547 rx_top_fifo_drop: 0 ale_rate_limit_drop: 0 ale_vid_ingress_drop: 18515 ale_da_eq_sa_drop: 0 ale_block_drop: 0 ale_secure_drop: 0 ale_auth_drop: 0 ale_unknown_ucast: 10915525 ale_unknown_ucast_bytes: 2941254839 ale_unknown_mcast: 34328 ale_unknown_mcast_bytes: 15465262 ale_unknown_bcast: 3709 ale_unknown_bcast_bytes: 238531 ale_pol_match: 0 ale_pol_match_red: 0 ale_pol_match_yellow: 0 ale_mcast_sa_drop: 0 ale_dual_vlan_drop: 0 ale_len_err_drop: 0 ale_ip_next_hdr_drop: 0 ale_ipv4_frag_drop: 0 iet_rx_assembly_err: 0 iet_rx_assembly_ok: 0 iet_rx_smd_err: 0 iet_rx_frag: 0 iet_tx_hold: 0 iet_tx_frag: 0 tx_mem_protect_err: 0 tx_pri0: 1504055 tx_pri1: 0 tx_pri2: 0 tx_pri3: 0 tx_pri4: 0 tx_pri5: 0 tx_pri6: 0 tx_pri7: 0 tx_pri0_bcnt: 372298592 tx_pri1_bcnt: 0 tx_pri2_bcnt: 0 tx_pri3_bcnt: 0 tx_pri4_bcnt: 0 tx_pri5_bcnt: 0 tx_pri6_bcnt: 0 tx_pri7_bcnt: 0 tx_pri0_drop: 0 tx_pri1_drop: 0 tx_pri2_drop: 0 tx_pri3_drop: 0 tx_pri4_drop: 0 tx_pri5_drop: 0 tx_pri6_drop: 0 tx_pri7_drop: 0 tx_pri0_drop_bcnt: 0 tx_pri1_drop_bcnt: 0 tx_pri2_drop_bcnt: 0 tx_pri3_drop_bcnt: 0 tx_pri4_drop_bcnt: 0 tx_pri5_drop_bcnt: 0 tx_pri6_drop_bcnt: 0 tx_pri7_drop_bcnt: 0
Hi,
Please share the debug as well if you are using Native Linux Driver on A72.
As requested above can you please share A72 Linux terminal log.
Also, capture ethtool statistics at multiple instances (3 to 4 times with few seconds delay between each) when issue is observed.
Best Regards,
Sudheer
Hi,
Here is the dmesg log:
The following log is captured by ethtool when issue is observed.
NIC statistics: p0_rx_good_frames: 12447903 p0_rx_broadcast_frames: 102 p0_rx_multicast_frames: 120005 p0_rx_crc_errors: 0 p0_rx_oversized_frames: 0 p0_rx_undersized_frames: 0 p0_ale_drop: 0 p0_ale_overrun_drop: 0 p0_rx_octets: 65208114 p0_tx_good_frames: 242586096 p0_tx_broadcast_frames: 16 p0_tx_multicast_frames: 91820 p0_tx_octets: 2613294098 p0_tx_64B_frames: 10601 p0_tx_65_to_127B_frames: 11885401 p0_tx_128_to_255B_frames: 5088070 p0_tx_256_to_511B_frames: 6969316 p0_tx_512_to_1023B_frames: 1529787 p0_tx_1024B_frames: 229550824 p0_net_octets: 2678502212 p0_rx_bottom_fifo_drop: 0 p0_rx_port_mask_drop: 0 p0_rx_top_fifo_drop: 0 p0_ale_rate_limit_drop: 0 p0_ale_vid_ingress_drop: 9925 p0_ale_da_eq_sa_drop: 0 p0_ale_block_drop: 0 p0_ale_secure_drop: 0 p0_ale_auth_drop: 0 p0_ale_unknown_ucast: 0 p0_ale_unknown_ucast_bytes: 0 p0_ale_unknown_mcast: 0 p0_ale_unknown_mcast_bytes: 0 p0_ale_unknown_bcast: 0 p0_ale_unknown_bcast_bytes: 0 p0_ale_pol_match: 0 p0_ale_pol_match_red: 0 p0_ale_pol_match_yellow: 0 p0_ale_mcast_sa_drop: 0 p0_ale_dual_vlan_drop: 0 p0_ale_len_err_drop: 0 p0_ale_ip_next_hdr_drop: 0 p0_ale_ipv4_frag_drop: 0 p0_tx_mem_protect_err: 0 p0_tx_pri0: 0 p0_tx_pri1: 0 p0_tx_pri2: 0 p0_tx_pri3: 0 p0_tx_pri4: 0 p0_tx_pri5: 0 p0_tx_pri6: 0 p0_tx_pri7: 0 p0_tx_pri0_bcnt: 0 p0_tx_pri1_bcnt: 0 p0_tx_pri2_bcnt: 0 p0_tx_pri3_bcnt: 0 p0_tx_pri4_bcnt: 0 p0_tx_pri5_bcnt: 0 p0_tx_pri6_bcnt: 0 p0_tx_pri7_bcnt: 0 p0_tx_pri0_drop: 0 p0_tx_pri1_drop: 0 p0_tx_pri2_drop: 0 p0_tx_pri3_drop: 0 p0_tx_pri4_drop: 0 p0_tx_pri5_drop: 0 p0_tx_pri6_drop: 0 p0_tx_pri7_drop: 0 p0_tx_pri0_drop_bcnt: 0 p0_tx_pri1_drop_bcnt: 0 p0_tx_pri2_drop_bcnt: 0 p0_tx_pri3_drop_bcnt: 0 p0_tx_pri4_drop_bcnt: 0 p0_tx_pri5_drop_bcnt: 0 p0_tx_pri6_drop_bcnt: 0 p0_tx_pri7_drop_bcnt: 0 rx_good_frames: 242675563 rx_broadcast_frames: 7409 rx_multicast_frames: 104579 rx_pause_frames: 0 rx_crc_errors: 0 rx_align_code_errors: 0 rx_oversized_frames: 0 rx_jabber_frames: 0 rx_undersized_frames: 0 rx_fragments: 0 ale_drop: 89467 ale_overrun_drop: 0 rx_octets: 2708430585 tx_good_frames: 12447903 tx_broadcast_frames: 102 tx_multicast_frames: 120005 tx_pause_frames: 0 tx_deferred_frames: 0 tx_collision_frames: 0 tx_single_coll_frames: 0 tx_mult_coll_frames: 0 tx_excessive_collisions: 0 tx_late_collisions: 0 rx_ipg_error: 0 tx_carrier_sense_errors: 0 tx_octets: 65247814 tx_64B_frames: 18334 tx_65_to_127B_frames: 11885711 tx_128_to_255B_frames: 5088070 tx_256_to_511B_frames: 6982432 tx_512_to_1023B_frames: 1529787 tx_1024B_frames: 229619132 net_octets: 2773678399 rx_bottom_fifo_drop: 0 rx_port_mask_drop: 89467 rx_top_fifo_drop: 0 ale_rate_limit_drop: 0 ale_vid_ingress_drop: 89413 ale_da_eq_sa_drop: 0 ale_block_drop: 0 ale_secure_drop: 0 ale_auth_drop: 0 ale_unknown_ucast: 242563575 ale_unknown_ucast_bytes: 2660544670 ale_unknown_mcast: 104579 ale_unknown_mcast_bytes: 47411352 ale_unknown_bcast: 7409 ale_unknown_bcast_bytes: 474563 ale_pol_match: 0 ale_pol_match_red: 0 ale_pol_match_yellow: 0 ale_mcast_sa_drop: 1 ale_dual_vlan_drop: 0 ale_len_err_drop: 0 ale_ip_next_hdr_drop: 0 ale_ipv4_frag_drop: 0 iet_rx_assembly_err: 0 iet_rx_assembly_ok: 0 iet_rx_smd_err: 0 iet_rx_frag: 0 iet_tx_hold: 0 iet_tx_frag: 0 tx_mem_protect_err: 0 tx_pri0: 12447903 tx_pri1: 0 tx_pri2: 0 tx_pri3: 0 tx_pri4: 0 tx_pri5: 0 tx_pri6: 0 tx_pri7: 0 tx_pri0_bcnt: 65208114 tx_pri1_bcnt: 0 tx_pri2_bcnt: 0 tx_pri3_bcnt: 0 tx_pri4_bcnt: 0 tx_pri5_bcnt: 0 tx_pri6_bcnt: 0 tx_pri7_bcnt: 0 tx_pri0_drop: 0 tx_pri1_drop: 0 tx_pri2_drop: 0 tx_pri3_drop: 0 tx_pri4_drop: 0 tx_pri5_drop: 0 tx_pri6_drop: 0 tx_pri7_drop: 0 tx_pri0_drop_bcnt: 0 tx_pri1_drop_bcnt: 0 tx_pri2_drop_bcnt: 0 tx_pri3_drop_bcnt: 0 tx_pri4_drop_bcnt: 0 tx_pri5_drop_bcnt: 0 tx_pri6_drop_bcnt: 0 tx_pri7_drop_bcnt: 0
NIC statistics: p0_rx_good_frames: 12447916 p0_rx_broadcast_frames: 102 p0_rx_multicast_frames: 120018 p0_rx_crc_errors: 0 p0_rx_oversized_frames: 0 p0_rx_undersized_frames: 0 p0_ale_drop: 0 p0_ale_overrun_drop: 0 p0_rx_octets: 65213912 p0_tx_good_frames: 242586096 p0_tx_broadcast_frames: 16 p0_tx_multicast_frames: 91820 p0_tx_octets: 2613294098 p0_tx_64B_frames: 10601 p0_tx_65_to_127B_frames: 11885404 p0_tx_128_to_255B_frames: 5088070 p0_tx_256_to_511B_frames: 6969316 p0_tx_512_to_1023B_frames: 1529797 p0_tx_1024B_frames: 229550824 p0_net_octets: 2678508010 p0_rx_bottom_fifo_drop: 0 p0_rx_port_mask_drop: 0 p0_rx_top_fifo_drop: 0 p0_ale_rate_limit_drop: 0 p0_ale_vid_ingress_drop: 9938 p0_ale_da_eq_sa_drop: 0 p0_ale_block_drop: 0 p0_ale_secure_drop: 0 p0_ale_auth_drop: 0 p0_ale_unknown_ucast: 0 p0_ale_unknown_ucast_bytes: 0 p0_ale_unknown_mcast: 0 p0_ale_unknown_mcast_bytes: 0 p0_ale_unknown_bcast: 0 p0_ale_unknown_bcast_bytes: 0 p0_ale_pol_match: 0 p0_ale_pol_match_red: 0 p0_ale_pol_match_yellow: 0 p0_ale_mcast_sa_drop: 0 p0_ale_dual_vlan_drop: 0 p0_ale_len_err_drop: 0 p0_ale_ip_next_hdr_drop: 0 p0_ale_ipv4_frag_drop: 0 p0_tx_mem_protect_err: 0 p0_tx_pri0: 0 p0_tx_pri1: 0 p0_tx_pri2: 0 p0_tx_pri3: 0 p0_tx_pri4: 0 p0_tx_pri5: 0 p0_tx_pri6: 0 p0_tx_pri7: 0 p0_tx_pri0_bcnt: 0 p0_tx_pri1_bcnt: 0 p0_tx_pri2_bcnt: 0 p0_tx_pri3_bcnt: 0 p0_tx_pri4_bcnt: 0 p0_tx_pri5_bcnt: 0 p0_tx_pri6_bcnt: 0 p0_tx_pri7_bcnt: 0 p0_tx_pri0_drop: 0 p0_tx_pri1_drop: 0 p0_tx_pri2_drop: 0 p0_tx_pri3_drop: 0 p0_tx_pri4_drop: 0 p0_tx_pri5_drop: 0 p0_tx_pri6_drop: 0 p0_tx_pri7_drop: 0 p0_tx_pri0_drop_bcnt: 0 p0_tx_pri1_drop_bcnt: 0 p0_tx_pri2_drop_bcnt: 0 p0_tx_pri3_drop_bcnt: 0 p0_tx_pri4_drop_bcnt: 0 p0_tx_pri5_drop_bcnt: 0 p0_tx_pri6_drop_bcnt: 0 p0_tx_pri7_drop_bcnt: 0 rx_good_frames: 242675588 rx_broadcast_frames: 7419 rx_multicast_frames: 104594 rx_pause_frames: 0 rx_crc_errors: 0 rx_align_code_errors: 0 rx_oversized_frames: 0 rx_jabber_frames: 0 rx_undersized_frames: 0 rx_fragments: 0 ale_drop: 89492 ale_overrun_drop: 0 rx_octets: 2708437795 tx_good_frames: 12447916 tx_broadcast_frames: 102 tx_multicast_frames: 120018 tx_pause_frames: 0 tx_deferred_frames: 0 tx_collision_frames: 0 tx_single_coll_frames: 0 tx_mult_coll_frames: 0 tx_excessive_collisions: 0 tx_late_collisions: 0 rx_ipg_error: 0 tx_carrier_sense_errors: 0 tx_octets: 65253664 tx_64B_frames: 18344 tx_65_to_127B_frames: 11885714 tx_128_to_255B_frames: 5088070 tx_256_to_511B_frames: 6982447 tx_512_to_1023B_frames: 1529797 tx_1024B_frames: 229619132 net_octets: 2773691459 rx_bottom_fifo_drop: 0 rx_port_mask_drop: 89492 rx_top_fifo_drop: 0 ale_rate_limit_drop: 0 ale_vid_ingress_drop: 89438 ale_da_eq_sa_drop: 0 ale_block_drop: 0 ale_secure_drop: 0 ale_auth_drop: 0 ale_unknown_ucast: 242563575 ale_unknown_ucast_bytes: 2660544670 ale_unknown_mcast: 104594 ale_unknown_mcast_bytes: 47417922 ale_unknown_bcast: 7419 ale_unknown_bcast_bytes: 475203 ale_pol_match: 0 ale_pol_match_red: 0 ale_pol_match_yellow: 0 ale_mcast_sa_drop: 1 ale_dual_vlan_drop: 0 ale_len_err_drop: 0 ale_ip_next_hdr_drop: 0 ale_ipv4_frag_drop: 0 iet_rx_assembly_err: 0 iet_rx_assembly_ok: 0 iet_rx_smd_err: 0 iet_rx_frag: 0 iet_tx_hold: 0 iet_tx_frag: 0 tx_mem_protect_err: 0 tx_pri0: 12447916 tx_pri1: 0 tx_pri2: 0 tx_pri3: 0 tx_pri4: 0 tx_pri5: 0 tx_pri6: 0 tx_pri7: 0 tx_pri0_bcnt: 65213912 tx_pri1_bcnt: 0 tx_pri2_bcnt: 0 tx_pri3_bcnt: 0 tx_pri4_bcnt: 0 tx_pri5_bcnt: 0 tx_pri6_bcnt: 0 tx_pri7_bcnt: 0 tx_pri0_drop: 0 tx_pri1_drop: 0 tx_pri2_drop: 0 tx_pri3_drop: 0 tx_pri4_drop: 0 tx_pri5_drop: 0 tx_pri6_drop: 0 tx_pri7_drop: 0 tx_pri0_drop_bcnt: 0 tx_pri1_drop_bcnt: 0 tx_pri2_drop_bcnt: 0 tx_pri3_drop_bcnt: 0 tx_pri4_drop_bcnt: 0 tx_pri5_drop_bcnt: 0 tx_pri6_drop_bcnt: 0 tx_pri7_drop_bcnt: 0
NIC statistics: p0_rx_good_frames: 12447920 p0_rx_broadcast_frames: 102 p0_rx_multicast_frames: 120022 p0_rx_crc_errors: 0 p0_rx_oversized_frames: 0 p0_rx_undersized_frames: 0 p0_ale_drop: 0 p0_ale_overrun_drop: 0 p0_rx_octets: 65216152 p0_tx_good_frames: 242586096 p0_tx_broadcast_frames: 16 p0_tx_multicast_frames: 91820 p0_tx_octets: 2613294098 p0_tx_64B_frames: 10601 p0_tx_65_to_127B_frames: 11885404 p0_tx_128_to_255B_frames: 5088070 p0_tx_256_to_511B_frames: 6969316 p0_tx_512_to_1023B_frames: 1529801 p0_tx_1024B_frames: 229550824 p0_net_octets: 2678510250 p0_rx_bottom_fifo_drop: 0 p0_rx_port_mask_drop: 0 p0_rx_top_fifo_drop: 0 p0_ale_rate_limit_drop: 0 p0_ale_vid_ingress_drop: 9942 p0_ale_da_eq_sa_drop: 0 p0_ale_block_drop: 0 p0_ale_secure_drop: 0 p0_ale_auth_drop: 0 p0_ale_unknown_ucast: 0 p0_ale_unknown_ucast_bytes: 0 p0_ale_unknown_mcast: 0 p0_ale_unknown_mcast_bytes: 0 p0_ale_unknown_bcast: 0 p0_ale_unknown_bcast_bytes: 0 p0_ale_pol_match: 0 p0_ale_pol_match_red: 0 p0_ale_pol_match_yellow: 0 p0_ale_mcast_sa_drop: 0 p0_ale_dual_vlan_drop: 0 p0_ale_len_err_drop: 0 p0_ale_ip_next_hdr_drop: 0 p0_ale_ipv4_frag_drop: 0 p0_tx_mem_protect_err: 0 p0_tx_pri0: 0 p0_tx_pri1: 0 p0_tx_pri2: 0 p0_tx_pri3: 0 p0_tx_pri4: 0 p0_tx_pri5: 0 p0_tx_pri6: 0 p0_tx_pri7: 0 p0_tx_pri0_bcnt: 0 p0_tx_pri1_bcnt: 0 p0_tx_pri2_bcnt: 0 p0_tx_pri3_bcnt: 0 p0_tx_pri4_bcnt: 0 p0_tx_pri5_bcnt: 0 p0_tx_pri6_bcnt: 0 p0_tx_pri7_bcnt: 0 p0_tx_pri0_drop: 0 p0_tx_pri1_drop: 0 p0_tx_pri2_drop: 0 p0_tx_pri3_drop: 0 p0_tx_pri4_drop: 0 p0_tx_pri5_drop: 0 p0_tx_pri6_drop: 0 p0_tx_pri7_drop: 0 p0_tx_pri0_drop_bcnt: 0 p0_tx_pri1_drop_bcnt: 0 p0_tx_pri2_drop_bcnt: 0 p0_tx_pri3_drop_bcnt: 0 p0_tx_pri4_drop_bcnt: 0 p0_tx_pri5_drop_bcnt: 0 p0_tx_pri6_drop_bcnt: 0 p0_tx_pri7_drop_bcnt: 0 rx_good_frames: 242675597 rx_broadcast_frames: 7422 rx_multicast_frames: 104600 rx_pause_frames: 0 rx_crc_errors: 0 rx_align_code_errors: 0 rx_oversized_frames: 0 rx_jabber_frames: 0 rx_undersized_frames: 0 rx_fragments: 0 ale_drop: 89501 ale_overrun_drop: 0 rx_octets: 2708440615 tx_good_frames: 12447920 tx_broadcast_frames: 102 tx_multicast_frames: 120022 tx_pause_frames: 0 tx_deferred_frames: 0 tx_collision_frames: 0 tx_single_coll_frames: 0 tx_mult_coll_frames: 0 tx_excessive_collisions: 0 tx_late_collisions: 0 rx_ipg_error: 0 tx_carrier_sense_errors: 0 tx_octets: 65255920 tx_64B_frames: 18347 tx_65_to_127B_frames: 11885714 tx_128_to_255B_frames: 5088070 tx_256_to_511B_frames: 6982453 tx_512_to_1023B_frames: 1529801 tx_1024B_frames: 229619132 net_octets: 2773696535 rx_bottom_fifo_drop: 0 rx_port_mask_drop: 89501 rx_top_fifo_drop: 0 ale_rate_limit_drop: 0 ale_vid_ingress_drop: 89447 ale_da_eq_sa_drop: 0 ale_block_drop: 0 ale_secure_drop: 0 ale_auth_drop: 0 ale_unknown_ucast: 242563575 ale_unknown_ucast_bytes: 2660544670 ale_unknown_mcast: 104600 ale_unknown_mcast_bytes: 47420550 ale_unknown_bcast: 7422 ale_unknown_bcast_bytes: 475395 ale_pol_match: 0 ale_pol_match_red: 0 ale_pol_match_yellow: 0 ale_mcast_sa_drop: 1 ale_dual_vlan_drop: 0 ale_len_err_drop: 0 ale_ip_next_hdr_drop: 0 ale_ipv4_frag_drop: 0 iet_rx_assembly_err: 0 iet_rx_assembly_ok: 0 iet_rx_smd_err: 0 iet_rx_frag: 0 iet_tx_hold: 0 iet_tx_frag: 0 tx_mem_protect_err: 0 tx_pri0: 12447920 tx_pri1: 0 tx_pri2: 0 tx_pri3: 0 tx_pri4: 0 tx_pri5: 0 tx_pri6: 0 tx_pri7: 0 tx_pri0_bcnt: 65216152 tx_pri1_bcnt: 0 tx_pri2_bcnt: 0 tx_pri3_bcnt: 0 tx_pri4_bcnt: 0 tx_pri5_bcnt: 0 tx_pri6_bcnt: 0 tx_pri7_bcnt: 0 tx_pri0_drop: 0 tx_pri1_drop: 0 tx_pri2_drop: 0 tx_pri3_drop: 0 tx_pri4_drop: 0 tx_pri5_drop: 0 tx_pri6_drop: 0 tx_pri7_drop: 0 tx_pri0_drop_bcnt: 0 tx_pri1_drop_bcnt: 0 tx_pri2_drop_bcnt: 0 tx_pri3_drop_bcnt: 0 tx_pri4_drop_bcnt: 0 tx_pri5_drop_bcnt: 0 tx_pri6_drop_bcnt: 0 tx_pri7_drop_bcnt: 0
NIC statistics: p0_rx_good_frames: 12447928 p0_rx_broadcast_frames: 102 p0_rx_multicast_frames: 120030 p0_rx_crc_errors: 0 p0_rx_oversized_frames: 0 p0_rx_undersized_frames: 0 p0_ale_drop: 0 p0_ale_overrun_drop: 0 p0_rx_octets: 65218656 p0_tx_good_frames: 242586096 p0_tx_broadcast_frames: 16 p0_tx_multicast_frames: 91820 p0_tx_octets: 2613294098 p0_tx_64B_frames: 10601 p0_tx_65_to_127B_frames: 11885408 p0_tx_128_to_255B_frames: 5088070 p0_tx_256_to_511B_frames: 6969316 p0_tx_512_to_1023B_frames: 1529805 p0_tx_1024B_frames: 229550824 p0_net_octets: 2678512754 p0_rx_bottom_fifo_drop: 0 p0_rx_port_mask_drop: 0 p0_rx_top_fifo_drop: 0 p0_ale_rate_limit_drop: 0 p0_ale_vid_ingress_drop: 9950 p0_ale_da_eq_sa_drop: 0 p0_ale_block_drop: 0 p0_ale_secure_drop: 0 p0_ale_auth_drop: 0 p0_ale_unknown_ucast: 0 p0_ale_unknown_ucast_bytes: 0 p0_ale_unknown_mcast: 0 p0_ale_unknown_mcast_bytes: 0 p0_ale_unknown_bcast: 0 p0_ale_unknown_bcast_bytes: 0 p0_ale_pol_match: 0 p0_ale_pol_match_red: 0 p0_ale_pol_match_yellow: 0 p0_ale_mcast_sa_drop: 0 p0_ale_dual_vlan_drop: 0 p0_ale_len_err_drop: 0 p0_ale_ip_next_hdr_drop: 0 p0_ale_ipv4_frag_drop: 0 p0_tx_mem_protect_err: 0 p0_tx_pri0: 0 p0_tx_pri1: 0 p0_tx_pri2: 0 p0_tx_pri3: 0 p0_tx_pri4: 0 p0_tx_pri5: 0 p0_tx_pri6: 0 p0_tx_pri7: 0 p0_tx_pri0_bcnt: 0 p0_tx_pri1_bcnt: 0 p0_tx_pri2_bcnt: 0 p0_tx_pri3_bcnt: 0 p0_tx_pri4_bcnt: 0 p0_tx_pri5_bcnt: 0 p0_tx_pri6_bcnt: 0 p0_tx_pri7_bcnt: 0 p0_tx_pri0_drop: 0 p0_tx_pri1_drop: 0 p0_tx_pri2_drop: 0 p0_tx_pri3_drop: 0 p0_tx_pri4_drop: 0 p0_tx_pri5_drop: 0 p0_tx_pri6_drop: 0 p0_tx_pri7_drop: 0 p0_tx_pri0_drop_bcnt: 0 p0_tx_pri1_drop_bcnt: 0 p0_tx_pri2_drop_bcnt: 0 p0_tx_pri3_drop_bcnt: 0 p0_tx_pri4_drop_bcnt: 0 p0_tx_pri5_drop_bcnt: 0 p0_tx_pri6_drop_bcnt: 0 p0_tx_pri7_drop_bcnt: 0 rx_good_frames: 242675606 rx_broadcast_frames: 7425 rx_multicast_frames: 104606 rx_pause_frames: 0 rx_crc_errors: 0 rx_align_code_errors: 0 rx_oversized_frames: 0 rx_jabber_frames: 0 rx_undersized_frames: 0 rx_fragments: 0 ale_drop: 89510 ale_overrun_drop: 0 rx_octets: 2708443435 tx_good_frames: 12447928 tx_broadcast_frames: 102 tx_multicast_frames: 120030 tx_pause_frames: 0 tx_deferred_frames: 0 tx_collision_frames: 0 tx_single_coll_frames: 0 tx_mult_coll_frames: 0 tx_excessive_collisions: 0 tx_late_collisions: 0 rx_ipg_error: 0 tx_carrier_sense_errors: 0 tx_octets: 65258456 tx_64B_frames: 18350 tx_65_to_127B_frames: 11885718 tx_128_to_255B_frames: 5088070 tx_256_to_511B_frames: 6982459 tx_512_to_1023B_frames: 1529805 tx_1024B_frames: 229619132 net_octets: 2773701891 rx_bottom_fifo_drop: 0 rx_port_mask_drop: 89510 rx_top_fifo_drop: 0 ale_rate_limit_drop: 0 ale_vid_ingress_drop: 89456 ale_da_eq_sa_drop: 0 ale_block_drop: 0 ale_secure_drop: 0 ale_auth_drop: 0 ale_unknown_ucast: 242563575 ale_unknown_ucast_bytes: 2660544670 ale_unknown_mcast: 104606 ale_unknown_mcast_bytes: 47423178 ale_unknown_bcast: 7425 ale_unknown_bcast_bytes: 475587 ale_pol_match: 0 ale_pol_match_red: 0 ale_pol_match_yellow: 0 ale_mcast_sa_drop: 1 ale_dual_vlan_drop: 0 ale_len_err_drop: 0 ale_ip_next_hdr_drop: 0 ale_ipv4_frag_drop: 0 iet_rx_assembly_err: 0 iet_rx_assembly_ok: 0 iet_rx_smd_err: 0 iet_rx_frag: 0 iet_tx_hold: 0 iet_tx_frag: 0 tx_mem_protect_err: 0 tx_pri0: 12447928 tx_pri1: 0 tx_pri2: 0 tx_pri3: 0 tx_pri4: 0 tx_pri5: 0 tx_pri6: 0 tx_pri7: 0 tx_pri0_bcnt: 65218656 tx_pri1_bcnt: 0 tx_pri2_bcnt: 0 tx_pri3_bcnt: 0 tx_pri4_bcnt: 0 tx_pri5_bcnt: 0 tx_pri6_bcnt: 0 tx_pri7_bcnt: 0 tx_pri0_drop: 0 tx_pri1_drop: 0 tx_pri2_drop: 0 tx_pri3_drop: 0 tx_pri4_drop: 0 tx_pri5_drop: 0 tx_pri6_drop: 0 tx_pri7_drop: 0 tx_pri0_drop_bcnt: 0 tx_pri1_drop_bcnt: 0 tx_pri2_drop_bcnt: 0 tx_pri3_drop_bcnt: 0 tx_pri4_drop_bcnt: 0 tx_pri5_drop_bcnt: 0 tx_pri6_drop_bcnt: 0 tx_pri7_drop_bcnt: 0
Hi,
From Statistcs I could see both rx_good_frames and tx_good_frames are increasing between each capture of statistics.
Also, we could see some ALE Drops it might be the packets which are not registered MAC with ALE.
demsg log shows "drop_cahches: 3" continuously not sure what it was please check at your end.
Aslo, dmesg log doesn't show Arago print and root login screen? is log is complete or not?
Are you observing any error messages from am65-cpsw-nuss driver when ping us stopping in between?
Best Regards,
Sudheer
Hi,
The dmesg log is completely.
Currently dmesg log does not have any error information when this issue happens
Hi,
I could not see message like below from your logs. So, I though log is incomplete.
Currently dmesg log does not have any error information when this issue happens
But from CPSW side we can some packets receiving and transmission.
Can you please check ALE dump during Working scenario and Non working scenario, and check if MAC address of remote client is there are not?
Please refer to FAQ[How to print ALE table] for dumping ALE table.
Best Regards,
Sudheer
Hi,
Here is the ALE table when eth0 is normal using "switch-config --ndev eth0 -d" .
K3 cpsw dump version (1) len(6328) ALE table dump ents(64): 0 : type: vlan , vid = 0, untag_force = 0x3, reg_mcast = 0x0, unreg_mcast = 0x0, member_list = 0x3 1 : type: ucast, addr = 34:08:e1:59:c7:74, ucast_type = persistant, port_num = 0x0, Secure 2 : type: mcast, vid = 0, addr = ff:ff:ff:ff:ff:ff, mcast_state = f, no super, port_mask = 0x3 3 : type: mcast, addr = 01:00:5e:00:00:01, mcast_state = f, no super, port_mask = 0x1 4 : type: mcast, addr = 01:00:5e:7f:00:01, mcast_state = f, no super, port_mask = 0x1 5 : type: mcast, addr = 01:00:5e:00:00:fb, mcast_state = f, no super, port_mask = 0x1 6 : type: mcast, addr = 33:33:00:00:00:01, mcast_state = f, no super, port_mask = 0x1 7 : type: mcast, addr = 33:33:ff:59:c7:74, mcast_state = f, no super, port_mask = 0x1 8 : type: mcast, addr = 01:00:5e:00:00:fc, mcast_state = f, no super, port_mask = 0x1 9 : type: mcast, addr = 33:33:00:00:00:fb, mcast_state = f, no super, port_mask = 0x1 10 : type: mcast, addr = 33:33:00:01:00:03, mcast_state = f, no super, port_mask = 0x1 11 : type: mcast, addr = 01:00:5e:00:01:81, mcast_state = f, no super, port_mask = 0x1 12 : type: mcast, addr = 01:00:5e:00:00:6b, mcast_state = f, no super, port_mask = 0x1
And the ALE table when this issue happens:
K3 cpsw dump version (1) len(6328) ALE table dump ents(64): 0 : type: mcast, addr = 33:33:00:00:00:01, mcast_state = f, no super, port_mask = 0x1 1 : type: ucast, addr = 34:08:e1:59:c7:74, ucast_type = persistant, port_num = 0x0, Secure 2 : type: mcast, vid = 0, addr = ff:ff:ff:ff:ff:ff, mcast_state = f, no super, port_mask = 0x3 3 : type: mcast, addr = 01:00:5e:00:00:01, mcast_state = f, no super, port_mask = 0x1 4 : type: mcast, addr = 01:00:5e:00:00:fc, mcast_state = f, no super, port_mask = 0x1 5 : type: mcast, addr = 33:33:ff:59:c7:74, mcast_state = f, no super, port_mask = 0x1 6 : type: mcast, addr = 01:00:5e:00:00:fb, mcast_state = f, no super, port_mask = 0x1 7 : type: mcast, addr = 33:33:00:00:00:fb, mcast_state = f, no super, port_mask = 0x1 8 : type: mcast, addr = 33:33:00:01:00:03, mcast_state = f, no super, port_mask = 0x1 9 : type: mcast, addr = 01:00:5e:7f:00:01, mcast_state = f, no super, port_mask = 0x1 10 : type: mcast, addr = 01:00:5e:00:01:81, mcast_state = f, no super, port_mask = 0x1 11 : type: mcast, addr = 01:00:5e:00:00:6b, mcast_state = f, no super, port_mask = 0x1
The mac address of remote client is 06:a3:88:62:e5:cc
I read CPSW_ALE_CONTROL register(0x4603e008): 0x80000005
when the issue happens, I set bit ALE_WLAN_AWARE to 0, ping success but ssh still fail.
Best regards!
Hi,
I could see from ALE dump VLAN 0 entry was removed form ALE.
Can you please confirm are there any VLAN kill with VLAN ID 0 happen in your system? There is not other possibility for VLAN removal from ALE.
It could be called by application.
Best Regards,
Sudheer
Hi,
I can't found any VLAN kill in our system. How to trace VLAN removal from ALE?
Best reagrads!
Hi,
You can add some prints in Driver for "cpsw_ale_del_vlan" trigger and check from where it is called.
It can be called from "am65_cpsw_nuss_ndo_slave_kill_vid" or "am65_cpsw_port_vlans_del", here print the VLAN ID and API name as well to track all VLAN requests.
After making changes build Linux and replace Linux image in file system with built one.
Best Regards,
Sudheer
Hi
I add prints in Driver and replace the LINUX image in file system, but "cpsw_al e_del_vlan" isn't called when the issue happens.
How to add VLAN0 when the issue happens?
Best regards!
Hi,
I add prints in Driver and replace the LINUX image in file system, but "cpsw_al e_del_vlan" isn't called when the issue happens.
How to add VLAN0 when the issue happens?
Can you please share the logs along with changes made?
Can you add prints with ALE entry and index in all ale_add APIs in cpsw_ale.c and share the log with us.
Best Regards,
Sudheer
Hi,
Here is the changes in linux kernel code:
diff --git a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c index b9ab087b6..0c5d63aba 100644 --- a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c +++ b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c @@ -231,7 +231,7 @@ static int am65_cpsw_port_vlan_del(struct am65_cpsw_port *port, u16 vid, */ cpsw_ale_del_mcast(cpsw->ale, port->ndev->broadcast, port_mask, ALE_VLAN, vid); - netdev_dbg(port->ndev, "VID del: %s: vid:%u ports:%X\n", + netdev_err(port->ndev, "VID del: %s: vid:%u ports:%X\n", port->ndev->name, vid, port_mask); return ret; diff --git a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c index be75bb009..695840b45 100644 --- a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c +++ b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c @@ -487,6 +487,7 @@ int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, return -ENOMEM; cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s\n", __func__); return 0; } @@ -502,6 +503,7 @@ int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port, cpsw_ale_set_entry_type(ale_entry, ALE_TYPE_FREE); cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s\n", __func__); return 0; } @@ -564,6 +566,7 @@ int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, cpsw_ale_set_entry_type(ale_entry, ALE_TYPE_FREE); cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s\n", __func__); return 0; } @@ -633,6 +636,8 @@ int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, return -ENOMEM; cpsw_ale_write(ale, idx, ale_entry); + + dev_err(ale->params.dev, "%s vid: %d,port_mask 0x%x\n", __func__,vid,port_mask); return 0; } @@ -674,6 +679,7 @@ static void cpsw_ale_vlan_del_modify_int(struct cpsw_ale *ale, u32 *ale_entry, } cpsw_ale_vlan_set_fld(ale, ale_entry, ALE_ENT_VID_MEMBER_LIST, members); + dev_err(ale->params.dev, "%s vid: %d,port_mask 0x%x\n", __func__,vid,port_mask); } int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) @@ -689,7 +695,7 @@ int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); cpsw_ale_write(ale, idx, ale_entry); - + dev_err(ale->params.dev, "%s\n", __func__); return 0; } @@ -724,6 +730,8 @@ int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s\n", __func__); + return 0; } @@ -760,7 +768,7 @@ int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, dev_err(ale->params.dev, "Unable to add vlan\n"); return ret; } - dev_dbg(ale->params.dev, "port mask 0x%x untag 0x%x\n", vlan_members, + dev_err(ale->params.dev, "port mask 0x%x untag 0x%x\n", vlan_members, untag_mask); return ret; @@ -791,6 +799,7 @@ void cpsw_ale_set_unreg_mcast(struct cpsw_ale *ale, int unreg_mcast_mask, unreg_members); cpsw_ale_write(ale, idx, ale_entry); } + dev_err(ale->params.dev, "%s\n", __func__); } static void cpsw_ale_vlan_set_unreg_mcast(struct cpsw_ale *ale, u32 *ale_entry,
And the dmesg log:
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080] [ 0.000000] Linux version 5.10.41-1-5-1 (root@lcz) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #9 SMP PREEMPT Tue May 21 11:00:12 CST 2024 [ 0.000000] Machine model: Texas Instruments K3 J721E SoC [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision_apps-r5f-memory@a0100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a4000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a4100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a7000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a7100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a8000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a8100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a9000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a9100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@aa000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 79 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71-memory@aa100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 96 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@b2000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000d8000000, size 576 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@d8000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009e7fffff] [ 0.000000] node 0: [mem 0x000000009e800000-0x00000000aeffffff] [ 0.000000] node 0: [mem 0x00000000af000000-0x00000000afffffff] [ 0.000000] node 0: [mem 0x00000000b0000000-0x00000000b7ffffff] [ 0.000000] node 0: [mem 0x00000000b8000000-0x00000000d7ffffff] [ 0.000000] node 0: [mem 0x00000000d8000000-0x00000000fbffffff] [ 0.000000] node 0: [mem 0x00000000fc000000-0x00000000ffffffff] [ 0.000000] node 0: [mem 0x0000000880000000-0x000000088fffffff] [ 0.000000] node 0: [mem 0x0000000890000000-0x00000008ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff] [ 0.000000] On node 0 totalpages: 65536 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 32768 pages, LIFO batch:3 [ 0.000000] Normal zone: 32 pages used for memmap [ 0.000000] Normal zone: 32768 pages, LIFO batch:3 [ 0.000000] cma: Failed to reserve 512 MiB [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] psci: SMC Calling Convention v1.2 [ 0.000000] percpu: Embedded 2 pages/cpu s49880 r8192 d73000 u131072 [ 0.000000] pcpu-alloc: s49880 r8192 d73000 u131072 alloc=2*65536 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: EL2 vector hardening [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65472 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57344k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=00000000-02 rw rootfstype=ext4 rootwait [ 0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x000000009a800000-0x000000009e800000] (64MB) [ 0.000000] Memory: 2318912K/4194304K available (11008K kernel code, 1352K rwdata, 4352K rodata, 1856K init, 750K bss, 1875392K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: 960 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: 16 PPIs implemented [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000 [ 0.000000] ITS [mem 0x01820000-0x0182ffff] [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS [ 0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8a0800000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GICv3: using LPI property table @0x00000008a00b0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008a00c0000 [ 0.000000] random: get_random_bytes called from start_kernel+0x32c/0x4d4 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns [ 0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008410] Console: colour dummy device 80x25 [ 0.012974] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023645] pid_max: default: 32768 minimum: 301 [ 0.028391] LSM: Security Framework initializing [ 0.033141] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.040712] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.049727] rcu: Hierarchical SRCU implementation. [ 0.054797] Platform MSI: msi-controller@1820000 domain created [ 0.061122] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created [ 0.070451] EFI services will not be available. [ 0.075222] smp: Bringing up secondary CPUs ... [ 0.080440] Detected PIPT I-cache on CPU1 [ 0.080463] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000 [ 0.080474] GICv3: CPU1: using allocated LPI pending table @0x00000008a00d0000 [ 0.080511] CPU1: Booted secondary processor 0x0000000001 [0x411fd080] [ 0.080568] smp: Brought up 1 node, 2 CPUs [ 0.109914] SMP: Total of 2 processors activated. [ 0.114720] CPU features: detected: 32-bit EL0 Support [ 0.119974] CPU features: detected: CRC32 instructions [ 0.133877] CPU: All CPU(s) started at EL2 [ 0.138073] alternatives: patching kernel code [ 0.143111] devtmpfs: initialized [ 0.152589] KASLR disabled due to lack of seed [ 0.157264] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.167228] futex hash table entries: 512 (order: -1, 32768 bytes, linear) [ 0.174376] pinctrl core: initialized pinctrl subsystem [ 0.179751] xavier start power on [ 1.636471] DMI not present or invalid. [ 1.644086] NET: Registered protocol family 16 [ 1.648862] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 1.656197] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 1.664162] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 1.672447] thermal_sys: Registered thermal governor 'step_wise' [ 1.672450] thermal_sys: Registered thermal governor 'power_allocator' [ 1.678926] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 1.692561] ASID allocator initialised with 65536 entries [ 1.716837] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages [ 1.723692] HugeTLB registered 512 MiB page size, pre-allocated 0 pages [ 1.730450] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 1.738279] cryptd: max_cpu_qlen set to 1000 [ 1.744451] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected [ 1.753300] vsys_3v3: supplied by evm_12v0 [ 1.757631] vsys_5v0: supplied by evm_12v0 [ 1.761918] vdd_mmc1: supplied by vsys_3v3 [ 1.766548] iommu: Default domain type: Translated [ 1.771695] SCSI subsystem initialized [ 1.775837] mc: Linux media interface: v0.10 [ 1.780208] videodev: Linux video capture interface: v2.00 [ 1.785838] pps_core: LinuxPPS API ver. 1 registered [ 1.790908] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 1.800244] PTP clock support registered [ 1.804262] EDAC MC: Ver: 3.0.0 [ 1.808052] FPGA manager framework [ 1.811562] Advanced Linux Sound Architecture Driver Initialized. [ 1.818172] clocksource: Switched to clocksource arch_sys_counter [ 1.824584] VFS: Disk quotas dquot_6.6.0 [ 1.828635] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes) [ 1.838418] Carveout Heap: Exported 512 MiB at 0x00000000b8000000 [ 1.844712] NET: Registered protocol family 2 [ 1.849317] IP idents hash table entries: 65536 (order: 3, 524288 bytes, linear) [ 1.857925] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear) [ 1.866709] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear) [ 1.874906] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear) [ 1.882732] TCP: Hash tables configured (established 32768 bind 32768) [ 1.889483] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 1.896373] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 1.903773] NET: Registered protocol family 1 [ 1.908490] RPC: Registered named UNIX socket transport module. [ 1.914561] RPC: Registered udp transport module. [ 1.919373] RPC: Registered tcp transport module. [ 1.924177] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.930762] PCI: CLS 0 bytes, default 64 [ 1.935162] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 1.945613] Initialise system trusted keyrings [ 1.950240] workingset: timestamp_bits=46 max_order=16 bucket_order=0 [ 1.958534] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.964771] NFS: Registering the id_resolver key type [ 1.969985] Key type id_resolver registered [ 1.974260] Key type id_legacy registered [ 1.978380] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.985228] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.992868] 9p: Installing v9fs 9p2000 file system support [ 2.018203] Key type asymmetric registered [ 2.022391] Asymmetric key parser 'x509' registered [ 2.027390] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 2.034949] io scheduler mq-deadline registered [ 2.039574] io scheduler kyber registered [ 2.044961] pinctrl-single 4301c000.pinctrl: 94 pins, size 376 [ 2.051129] pinctrl-single 11c000.pinctrl: 173 pins, size 692 [ 2.057439] pinctrl-single a40000.timesync_router: 512 pins, size 2048 [ 2.064477] wlan_gpio_init [ 2.067439] ec20_gpio_init [ 2.072754] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 2.079022] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 2.086892] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 2.095253] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf) [ 2.104623] arm-smmu-v3 36600000.iommu: allocated 524288 entries for cmdq [ 2.114387] arm-smmu-v3 36600000.iommu: allocated 524288 entries for evtq [ 2.122323] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs [ 2.132602] tfp410-bridge dvi-bridge: failed to parse powerdown gpio [ 2.142340] brd: module loaded [ 2.148362] loop: module loaded [ 2.151965] sysfs: cannot create duplicate filename '/devices/platform/dma_buf_phys' [ 2.159894] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.41-1-5-1 #9 [ 2.166561] Hardware name: Texas Instruments K3 J721E SoC (DT) [ 2.172516] Call trace: [ 2.175020] dump_backtrace+0x0/0x1a0 [ 2.178756] show_stack+0x18/0x68 [ 2.182138] dump_stack+0xd0/0x12c [ 2.185608] sysfs_warn_dup+0x60/0x80 [ 2.189342] sysfs_create_dir_ns+0xe0/0xf8 [ 2.193524] kobject_add_internal+0x98/0x288 [ 2.197880] kobject_add+0x94/0x100 [ 2.201443] device_add+0xe0/0x748 [ 2.204912] platform_device_add+0x100/0x238 [ 2.209269] platform_device_register_full+0xcc/0x150 [ 2.214427] dma_buf_phys_init+0x6c/0x9c [ 2.218428] do_one_initcall+0x54/0x1b8 [ 2.222342] kernel_init_freeable+0x1d4/0x23c [ 2.226788] kernel_init+0x14/0x114 [ 2.230346] ret_from_fork+0x10/0x34 [ 2.234001] kobject_add_internal failed for dma_buf_phys with -EEXIST, don't try to register things with the same name in the same directory. [ 2.247214] megasas: 07.714.04.00-rc1 [ 2.252324] libphy: Fixed MDIO Bus: probed [ 2.257001] tun: Universal TUN/TAP device driver, 1.6 [ 2.262467] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 2.268874] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 2.274946] sky2: driver version 1.30 [ 2.279301] VFIO - User Level meta-driver version: 0.3 [ 2.284991] i2c /dev entries driver [ 2.289425] sdhci: Secure Digital Host Controller Interface driver [ 2.295749] sdhci: Copyright(c) Pierre Ossman [ 2.300473] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.306863] ledtrig-cpu: registered to indicate activity on CPUs [ 2.313177] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 2.320335] optee: probing for conduit method. [ 2.324894] optee: revision 3.12 (3d47a131) [ 2.325153] optee: initialized driver [ 2.334634] NET: Registered protocol family 17 [ 2.339205] lib80211: common routines for IEEE802.11 drivers [ 2.344992] lib80211_crypt: registered algorithm 'NULL' [ 2.344994] lib80211_crypt: registered algorithm 'WEP' [ 2.344997] lib80211_crypt: registered algorithm 'CCMP' [ 2.345000] lib80211_crypt: registered algorithm 'TKIP' [ 2.345044] 9pnet: Installing 9P2000 support [ 2.349430] Key type dns_resolver registered [ 2.353878] Loading compiled-in X.509 certificates [ 2.363629] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 2.369962] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 2.377252] tfp410-bridge dvi-bridge: failed to parse powerdown gpio [ 2.385395] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam') [ 2.413517] random: fast init done [ 2.437747] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz [ 2.443825] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz [ 2.449851] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz [ 2.455938] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz [ 2.463302] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz [ 2.469435] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz [ 2.475406] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz [ 2.481352] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz [ 2.487284] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz [ 2.493206] omap_i2c 2060000.i2c: bus 9 rev0.12 at 100 kHz [ 2.499589] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created [ 2.509551] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created [ 2.518352] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created [ 2.528171] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created [ 2.543102] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235 [ 2.552993] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled [ 2.559756] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64 [ 2.568682] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211 [ 2.578835] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled [ 2.585594] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64 [ 2.593573] 42300000.serial: ttyS0 at MMIO 0x42300000 (irq = 15, base_baud = 3000000) is a 8250 [ 2.602927] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 30, base_baud = 3000000) is a 8250 [ 2.611672] printk: console [ttyS2] enabled [ 2.620109] printk: bootconsole [ns16550a0] disabled [ 2.630533] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 31, base_baud = 3000000) is a 8250 [ 2.639421] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 32, base_baud = 3000000) is a 8250 [ 2.648314] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 33, base_baud = 3000000) is a 8250 [ 2.657205] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 34, base_baud = 3000000) is a 8250 [ 2.666092] 2850000.serial: ttyS7 at MMIO 0x2850000 (irq = 35, base_baud = 3000000) is a 8250 [ 2.675018] 2880000.serial: ttyS1 at MMIO 0x2880000 (irq = 36, base_baud = 3000000) is a 8250 [ 2.683814] tfp410-bridge dvi-bridge: failed to parse powerdown gpio [ 2.692394] ============ dir FFFD6FFF set 29000 [ 2.734175] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 2.741818] libphy: 46000f00.mdio: probed [ 2.746832] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000 [ 2.760541] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0 [ 2.770702] mmc0: CQHCI version 5.10 [ 2.774531] mmc1: CQHCI version 5.10 [ 2.778373] mmc2: CQHCI version 5.10 [ 2.787299] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100 [ 2.794130] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100 [ 2.800950] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100 [ 2.807759] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100 [ 2.814550] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100 [ 2.818180] mmc1: SDHCI controller on 4f98000.mmc [4f98000.mmc] using ADMA 64-bit [ 2.826180] mmc2: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit [ 2.854808] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8) [ 2.864906] ti-udma 31150000.dma-controller: Channels: 84 (tchan: 42, rchan: 42, gp-rflow: 16) [ 2.877437] spi-nor spi5.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff [ 2.884317] spi-nor: probe of spi5.0 failed with error -2 [ 2.890388] ============ dir FFDD6DFF set 229200 [ 2.934187] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 2.941843] libphy: 46000f00.mdio: probed [ 2.948166] mmc2: Command Queue Engine enabled [ 2.952618] mmc2: new high speed MMC card at address 0001 [ 2.958322] mmcblk2: mmc2:0001 A8A58B 29.1 GiB [ 2.960799] mmc1: queuing unknown CIS tuple 0x01 (3 bytes) [ 2.963033] mmcblk2boot0: mmc2:0001 A8A58B partition 1 31.9 MiB [ 2.974669] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver Marvell 88E1510 [ 2.977920] mmc1: queuing unknown CIS tuple 0x1a (5 bytes) [ 2.983361] davinci_mdio 46000f00.mdio: phy[1]: device 46000f00.mdio:01, driver Marvell 88E1510 [ 2.992986] mmc1: queuing unknown CIS tuple 0x1b (8 bytes) [ 2.997656] mmcblk2boot1: mmc2:0001 A8A58B partition 2 31.9 MiB [ 3.003798] mmc1: queuing unknown CIS tuple 0x14 (0 bytes) [ 3.008890] davinci_mdio 46000f00.mdio: phy[4]: device 46000f00.mdio:04, driver Marvell 88E1510 [ 3.017258] mmc1: queuing unknown CIS tuple 0x80 (1 bytes) [ 3.023116] mmcblk2rpmb: mmc2:0001 A8A58B partition 3 4.00 MiB, chardev (237:0) [ 3.028543] mmc1: queuing unknown CIS tuple 0x81 (1 bytes) [ 3.035869] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000 [ 3.041307] mmc1: queuing unknown CIS tuple 0x82 (1 bytes) [ 3.059542] mmc1: new ultra high speed DDR50 SDIO card at address 0001 [ 3.066101] mmcblk2: p1 p2 [ 3.069382] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48 [ 3.077319] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4 [ 3.084541] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64 [ 3.090837] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0 [ 3.107081] cdns-csi2rx 4504000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY [ 3.122571] cdns-csi2rx 4514000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY [ 3.131955] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present! [ 3.139243] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present! [ 3.147327] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.154634] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.161928] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.169219] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.176510] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.183804] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.191121] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present! [ 3.198426] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present! [ 3.205730] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present! [ 3.213033] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present! [ 3.220606] debugfs: Directory 'pd:146' with parent 'pm_genpd' already present! [ 3.228535] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 3.243492] ALSA device list: [ 3.246461] No soundcards found. [ 4.288390] sdhci-am654 4fb0000.mmc: Power on failed [ 4.323982] mmc0: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit [ 4.341804] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null) [ 4.349928] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 4.358419] devtmpfs: mounted [ 4.361787] Freeing unused kernel memory: 1856K [ 4.366356] Run /sbin/init as init process [ 4.370441] with arguments: [ 4.370443] /sbin/init [ 4.370445] with environment: [ 4.370447] HOME=/ [ 4.370449] TERM=linux [ 4.537012] systemd[1]: System time before build time, advancing clock. [ 4.592886] NET: Registered protocol family 10 [ 4.597817] Segment Routing with IPv6 [ 4.615605] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid) [ 4.637422] systemd[1]: Detected architecture arm64. [ 4.682597] systemd[1]: Set hostname to <j7-evm>. [ 4.838035] systemd[1]: Configuration file /etc/systemd/system/remote_ota_root.service is marked executable. Please remove executable permission bits. Proceeding anyway. [ 4.853677] systemd[1]: Configuration file /etc/systemd/system/remote_ota_monitor_root.service is marked executable. Please remove executable permission bits. Proceeding anyway. [ 4.878993] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock \xe2\x86\x92 /run/docker.sock; please update the unit file accordingly. [ 4.941642] random: systemd: uninitialized urandom read (16 bytes read) [ 4.948371] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling. [ 4.960717] systemd[1]: (This warning is only shown for the first unit using IP firewalling.) [ 4.970620] systemd[1]: Created slice system-getty.slice. [ 4.990252] random: systemd: uninitialized urandom read (16 bytes read) [ 4.997497] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 5.018236] random: systemd: uninitialized urandom read (16 bytes read) [ 5.025364] systemd[1]: Created slice User and Session Slice. [ 5.046353] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 5.070282] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 5.094352] systemd[1]: Reached target Paths. [ 5.110233] systemd[1]: Reached target Remote File Systems. [ 5.130219] systemd[1]: Reached target Slices. [ 5.146225] systemd[1]: Reached target Swap. [ 5.168606] systemd[1]: Listening on RPCbind Server Activation Socket. [ 5.190249] systemd[1]: Reached target RPC Port Mapper. [ 5.212205] systemd[1]: Listening on Process Core Dump Socket. [ 5.234349] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 5.265191] systemd[1]: Condition check resulted in Journal Audit Socket being skipped. [ 5.273531] systemd[1]: Listening on Journal Socket (/dev/log). [ 5.294442] systemd[1]: Listening on Journal Socket. [ 5.310501] systemd[1]: Listening on Network Service Netlink Socket. [ 5.334394] systemd[1]: Listening on udev Control Socket. [ 5.354337] systemd[1]: Listening on udev Kernel Socket. [ 5.377480] systemd[1]: Mounting Huge Pages File System... [ 5.396660] systemd[1]: Mounting POSIX Message Queue File System... [ 5.420852] systemd[1]: Mounting Kernel Debug File System... [ 5.451669] systemd[1]: Mounting Temporary Directory (/tmp)... [ 5.469337] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 5.497658] systemd[1]: Starting Start psplash boot splash screen... [ 5.523104] systemd[1]: Started Hardware RNG Entropy Gatherer Daemon. [ 5.548699] systemd[1]: Starting RPC Bind... [ 5.566389] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 5.582547] systemd[1]: Starting Journal Service... [ 5.601818] systemd[1]: Starting Load Kernel Modules... [ 5.625516] systemd[1]: Starting Remount Root and Kernel File Systems... [ 5.653231] systemd[1]: Starting udev Coldplug all Devices... [ 5.661351] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null) [ 5.684925] systemd[1]: Started RPC Bind. [ 5.706534] systemd[1]: Started Journal Service. [ 5.922910] systemd-journald[167]: Received client request to flush runtime journal. [ 6.579647] CAN device driver interface [ 6.598791] m_can_platform 40568000.can: m_can device registered (irq=23, version=32) [ 6.805193] m_can_platform 2701000.can: m_can device registered (irq=50, version=32) [ 6.832548] CAM_VOUT4: supplied by evm_12v0 [ 6.839206] CAM_VOUT1: supplied by evm_12v0 [ 6.862979] max96705 4-0041: Successfully probed [ 6.898205] Bluetooth: Core ver 2.22 [ 6.901831] NET: Registered protocol family 31 [ 6.914199] Bluetooth: HCI device and connection manager initialized [ 6.918036] max96705 4-0042: Successfully probed [ 6.930229] Bluetooth: HCI socket layer initialized [ 6.938211] Bluetooth: L2CAP socket layer initialized [ 6.949563] Bluetooth: SCO socket layer initialized [ 6.965865] m_can_platform 2711000.can: m_can device registered (irq=52, version=32) [ 7.182727] m_can_platform 2721000.can: m_can device registered (irq=54, version=32) [ 7.369677] CAM_VOUT3: supplied by evm_12v0 [ 7.397252] max96705 4-0043: Successfully probed [ 7.443505] m_can_platform 2731000.can: m_can device registered (irq=56, version=32) [ 7.458757] CAM_VOUT2: supplied by evm_12v0 [ 7.490385] max96705 4-0044: Successfully probed [ 7.564906] CAM_VOUT8: supplied by evm_12v0 [ 7.574287] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc [ 7.621612] CAM_VOUT5: supplied by evm_12v0 [ 7.657097] img_dec 4300000.video-decoder: decoder registered as /dev/video0 [ 7.672927] CAM_VOUT7: supplied by evm_12v0 [ 7.686600] m_can_platform 2751000.can: m_can device registered (irq=58, version=32) [ 7.775914] m_can_platform 2791000.can: m_can device registered (irq=60, version=32) [ 7.793907] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a9000000 [ 7.867860] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode [ 7.917306] CAM_VOUT6: supplied by evm_12v0 [ 8.130352] remoteproc remoteproc0: 4d80800000.dsp is available [ 8.139994] Initializing XFRM netlink socket [ 8.203187] img_enc 4200000.video-encoder: encoder registered as /dev/video1 [ 8.255523] remoteproc remoteproc0: attaching to 4d80800000.dsp [ 8.482211] random: crng init done [ 8.485608] random: 7 urandom warning(s) missed due to ratelimiting [ 8.496032] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode [ 8.540745] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1) [ 8.613299] m_can_platform 40528000.can: m_can device registered (irq=21, version=32) [ 8.663171] remoteproc0#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a9000000 [ 8.754738] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 8.823854] platform 41000000.r5f: configured R5F for IPC-only mode [ 8.894592] virtio_rpmsg_bus virtio0: rpmsg host is online [ 8.897891] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xd [ 8.989044] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000 [ 9.013882] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 9.050445] remoteproc0#vdev0buffer: registered virtio0 (type 7) [ 9.198334] remoteproc remoteproc0: remote processor 4d80800000.dsp is now attached [ 9.218381] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a8000000 [ 9.238429] remoteproc remoteproc1: 41000000.r5f is available [ 9.250207] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode [ 9.302449] remoteproc remoteproc1: attaching to 41000000.r5f [ 9.315754] remoteproc remoteproc2: 4d81800000.dsp is available [ 9.326471] wlan: loading out-of-tree module taints kernel. [ 9.393001] platform 41000000.r5f: R5F core initialized in IPC-only mode [ 9.442763] remoteproc remoteproc2: attaching to 4d81800000.dsp [ 9.569806] remoteproc1#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000 [ 9.589066] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode [ 9.723086] remoteproc2#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a8000000 [ 9.807097] wlan: loading driver v4.5.25.51 [ 9.842999] virtio_rpmsg_bus virtio1: rpmsg host is online [ 9.853477] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd [ 9.862961] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe [ 9.940849] hifDeviceInserted: Dumping clocks (50000000,200000000) [ 9.950972] remoteproc1#vdev0buffer: registered virtio1 (type 7) [ 9.979193] virtio_rpmsg_bus virtio2: rpmsg host is online [ 9.982632] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd [ 10.042726] remoteproc remoteproc1: remote processor 41000000.r5f is now attached [ 10.094288] remoteproc2#vdev0buffer: registered virtio2 (type 7) [ 10.214232] remoteproc remoteproc2: remote processor 4d81800000.dsp is now attached [ 10.253032] platform 5c00000.r5f: configured R5F for IPC-only mode [ 10.300774] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@aa000000 [ 10.323970] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000 [ 10.404118] remoteproc remoteproc3: 5c00000.r5f is available [ 10.416818] ol_download_firmware: chip_id:0x5020001 board_id:0x0 [ 10.429642] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode [ 10.448529] ar6k_wlan mmc1:0001:1: Direct firmware load for bdwlan30.b00 failed with error -2 [ 10.494413] remoteproc remoteproc3: attaching to 5c00000.r5f [ 10.517863] remoteproc remoteproc4: 64800000.dsp is available [ 10.551337] __ol_transfer_bin_file: Failed to get bdwlan30.b00:-2 [ 10.574399] platform 5c00000.r5f: R5F core initialized in IPC-only mode [ 10.596111] remoteproc remoteproc4: attaching to 64800000.dsp [ 10.614229] __ol_transfer_bin_file: Trying to load default bdwlan30.bin [ 10.649873] remoteproc3#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000 [ 10.666675] remoteproc remoteproc4: unsupported resource 65538 [ 10.741767] Board extended Data download address: 0x0 [ 10.791420] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode [ 10.811014] virtio_rpmsg_bus virtio3: rpmsg host is online [ 10.816615] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xd [ 10.835051] remoteproc4#vdev0buffer: assigned reserved memory node vision-apps-c71-dma-memory@aa000000 [ 10.856589] remoteproc3#vdev0buffer: registered virtio3 (type 7) [ 10.872667] remoteproc remoteproc3: remote processor 5c00000.r5f is now attached [ 10.893390] virtio_rpmsg_bus virtio4: rpmsg host is online [ 10.898949] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0xd [ 10.941216] __ol_transfer_bin_file: Loading setup file qsetup30.bin [ 10.972330] remoteproc4#vdev0buffer: registered virtio4 (type 7) [ 10.986688] ar6k_wlan mmc1:0001:1: Direct firmware load for qsetup30.bin failed with error -2 [ 11.015351] remoteproc remoteproc4: remote processor 64800000.dsp is now attached [ 11.027559] platform 5d00000.r5f: configured R5F for IPC-only mode [ 11.044218] __ol_transfer_bin_file: Failed to get qsetup30.bin:-2 [ 11.145193] platform 5d00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000 [ 11.426463] pps pps0: new PPS source pps-gpio.-1 [ 11.483273] remoteproc remoteproc5: 5d00000.r5f is available [ 11.570592] pps pps0: Registered IRQ 248 as PPS source [ 11.594592] remoteproc remoteproc5: attaching to 5d00000.r5f [ 11.619036] platform 5d00000.r5f: R5F core initialized in IPC-only mode [ 11.658466] remoteproc5#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000 [ 11.862699] virtio_rpmsg_bus virtio5: rpmsg host is online [ 11.868397] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0x15 [ 11.876660] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0xd [ 11.888043] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0x15 [ 11.898114] virtio_rpmsg_bus virtio5: creating channel ti.ipc4.ping-pong addr 0xe [ 11.910315] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0x15 [ 11.918471] remoteproc5#vdev0buffer: registered virtio5 (type 7) [ 11.918476] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xe [ 11.918532] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x15 [ 11.940945] max96712 4-0069: Successfully probed (rev/mask 00) [ 11.950266] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xe [ 11.957927] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0x15 [ 11.968843] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xe [ 12.015498] remoteproc remoteproc5: remote processor 5d00000.r5f is now attached [ 12.062853] imx390 14-0022: imx390 probed [ 12.099258] imx390 15-0022: imx390 probed [ 12.116246] platform 5e00000.r5f: configured R5F for remoteproc mode [ 12.212957] imx390 16-0022: imx390 probed [ 12.284426] platform 5e00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000 [ 12.366816] imx390 17-0022: imx390 probed [ 12.397027] virtio_rpmsg_bus virtio3: creating channel ti.ethfw.notifyservice addr 0x1e [ 12.405260] virtio_rpmsg_bus virtio3: creating channel rpmsg-kdrv addr 0x1a [ 12.416742] R0: wlan: [203:E :SAP] dfs_init_radar_filters[217]: Unknown dfs domain 0 [ 12.420281] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: Device info: permissions: 07FFFFFF uart_id: 1 [ 12.446213] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: FW ver 0.1 (rev 1) 30/Apr/2024 SHA:a59cd31b [ 12.473337] remoteproc remoteproc6: 5e00000.r5f is available [ 12.481334] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac loaded [ 12.489274] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: rdev_features:00000003 rdev_mtu:1522 flow_id:172 tx_psil_dst_id:4A00 [ 12.508627] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: local_mac_addr:00:00:00:00:00:00 rdev_mac_addr:70:ff:76:1d:92:c1 [ 12.526328] virtio_rpmsg_bus virtio3: creating channel ti.ipc4.ping-pong addr 0xe [ 12.553880] max9295 4-0045: Successfully probed [ 12.589228] Target Ready! : transmit resources : 3 size:1792, MaxMsgsPerHTCBundle = 32 [ 12.634532] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -2 [ 12.650649] max9295 4-0046: Successfully probed [ 12.656939] remoteproc remoteproc6: powering up 5e00000.r5f [ 12.668069] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -2 [ 12.688749] platform 5f00000.r5f: configured R5F for remoteproc mode [ 12.700099] remoteproc remoteproc6: request_firmware failed: -2 [ 12.740500] max9295 4-0047: Successfully probed [ 12.781967] max9295 4-0049: Successfully probed [ 12.796211] platform 5f00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a7000000 [ 12.839195] ar6k_wlan mmc1:0001:1: Direct firmware load for wlan/wlan_mac.bin failed with error -2 [ 12.879099] remoteproc remoteproc7: 5f00000.r5f is available [ 12.938364] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2 [ 12.949356] remoteproc remoteproc7: powering up 5f00000.r5f [ 12.959405] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2 [ 12.978220] remoteproc remoteproc7: request_firmware failed: -2 [ 12.989036] target uses HTT version 3.60; host uses 3.28 [ 12.994339] *** Warning: host/target HTT versions are different, though compatible! [ 13.012622] process 'docker/tmp/qemu-check415031685/check' started with executable stack [ 13.038433] DEBUGFS PEER MAC = 0xea:0x24:0x4:0xba:0x9b:0xfa [ 13.055856] Host SW:4.5.25.51, FW:0.0.0.130, HW:QCA93x7_REV1_1 [ 13.223934] ENTER sme_set_btc_coex_dutycycle = 30 [ 13.223950] ENTER sme_set_btc_coex_dutycycle =30 [ 13.292416] ath_hif_sdio: HIF (Atheros/multi-bss) [ 13.359821] wlan: driver loaded in 3552000 [ 13.893906] usbcore: registered new interface driver usbfs [ 13.990229] usbcore: registered new interface driver hub [ 14.030256] omap_rng 4e10000.rng: Random Number Generator ver. 241b34c [ 14.110875] usbcore: registered new device driver usb [ 14.139317] remoteproc remoteproc8: b034000.pru is available [ 14.226301] === TDA4 address 0x40F04060 0 [ 14.226307] === TDA4 address 0x40F04060 1 [ 14.230530] *************found ports node************* [ 14.244532] sja1105 port name : port [ 14.258216] port 0 speed config is 1000 [ 14.261790] sja1105 port name : port [ 14.270530] remoteproc remoteproc9: b004000.rtu is available [ 14.282197] port 1 speed config is 1000 [ 14.282245] reset gpio 2 is 344 flag is 1 [ 14.286082] reset gpio 3 is 347 flag is 1 [ 14.294210] reset gpio 4 is 349 flag is 1 [ 14.306436] ======================== static config: addr=0x20000, rc=0, i=0, sizecfg=880 [ 14.338809] ======================== static config: addr=0x20040, rc=0, i=256, sizecfg=880 [ 14.362510] ======================== static config: addr=0x20080, rc=0, i=512, sizecfg=880 [ 14.384834] ======================== static config: addr=0x200c0, rc=0, i=768, sizecfg=880 [ 14.486227] port 0 speed 1 [ 14.490390] ======= reg 0x100900 is now 0x00313112 [ 14.498330] ======= reg 0x100016 is now 0x0B000800 [ 14.503374] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_vlan vid: 0,port_mask 0x3 [ 14.503719] remoteproc remoteproc10: b00a000.txpru is available [ 14.517123] ======= reg 0x10000B is now 0x0A000800 [ 14.522333] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_ucast [ 14.530220] port 1 speed 1 [ 14.530834] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL) [ 14.533039] ======= reg 0x100901 is now 0x00313112 [ 14.554269] ======= reg 0x10001C is now 0x0B000800 [ 14.554412] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 14.559149] ======= reg 0x10000C is now 0x0A000800 [ 14.602213] SOFERR expand limit [ 14.618718] remoteproc remoteproc11: b038000.pru is available [ 14.672001] remoteproc remoteproc12: b006000.rtu is available [ 14.706371] remoteproc remoteproc13: b00c000.txpru is available [ 14.742540] remoteproc remoteproc14: b134000.pru is available [ 14.778434] remoteproc remoteproc15: b104000.rtu is available [ 14.814417] remoteproc remoteproc16: b10a000.txpru is available [ 14.834627] remoteproc remoteproc17: b138000.pru is available [ 14.846466] remoteproc remoteproc18: b106000.rtu is available [ 14.858316] remoteproc remoteproc19: b10c000.txpru is available [ 16.020036] -------DEBUG------------------ acs policy start [ 16.027120] -------DEBUG------------------ acs policy end [ 16.040125] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 16.054516] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1 [ 16.078898] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000010010 [ 16.106204] xhci-hcd xhci-hcd.1.auto: irq 616, io mem 0x06010000 [ 16.134336] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 [ 16.158174] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 16.166194] usb usb1: Product: xHCI Host Controller [ 16.174218] usb usb1: Manufacturer: Linux 5.10.41-1-5-1 xhci-hcd [ 16.190175] usb usb1: SerialNumber: xhci-hcd.1.auto [ 16.202326] hub 1-0:1.0: USB hub found [ 16.206090] hub 1-0:1.0: 1 port detected [ 16.214383] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 16.230188] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2 [ 16.246224] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 16.258288] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 16.274226] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10 [ 16.294205] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 16.306202] usb usb2: Product: xHCI Host Controller [ 16.318252] usb usb2: Manufacturer: Linux 5.10.41-1-5-1 xhci-hcd [ 16.330208] usb usb2: SerialNumber: xhci-hcd.1.auto [ 16.342357] hub 2-0:1.0: USB hub found [ 16.346106] hub 2-0:1.0: 1 port detected [ 16.354532] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller [ 16.366234] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3 [ 16.386895] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000010010 [ 16.406249] xhci-hcd xhci-hcd.2.auto: irq 619, io mem 0x06410000 [ 16.414393] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 [ 16.431462] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 16.450229] usb usb3: Product: xHCI Host Controller [ 16.455106] usb usb3: Manufacturer: Linux 5.10.41-1-5-1 xhci-hcd [ 16.474206] usb usb3: SerialNumber: xhci-hcd.2.auto [ 16.482338] hub 3-0:1.0: USB hub found [ 16.490186] hub 3-0:1.0: 1 port detected [ 16.498421] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller [ 16.510218] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4 [ 16.522235] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed [ 16.538211] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 16.554225] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10 [ 16.574204] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 16.586273] usb usb4: Product: xHCI Host Controller [ 16.591176] usb usb4: Manufacturer: Linux 5.10.41-1-5-1 xhci-hcd [ 16.610244] usb usb4: SerialNumber: xhci-hcd.2.auto [ 16.622526] hub 4-0:1.0: USB hub found [ 16.630243] hub 4-0:1.0: 1 port detected [ 17.099673] R0: wlan: [1276:E :SAP] WLANSAP_set_Dfs_Restrict_JapanW53: 3594: Regdomain not japan, set disable JP W53 not valid [ 17.118372] R0: wlan: [1276:E :SAP] WLANSAP_set_Dfs_Preferred_Channel_location: 3668: sapdfs:NOT JAPAN REG, Invalid Set preferred chans location [ 17.138729] DEBUGFS PEER MAC = 0xe8:0x24:0x4:0x36:0x9b:0xfa [ 17.187882] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 17.555125] max96712 4-006b: Successfully probed (rev/mask 00) [ 20.663850] port 4 linked with speed 1000 [ 20.663856] port 4 speed 1 [ 20.670920] ======= reg 0x100904 is now 0x00313112 [ 20.675889] ======= reg 0x10002E is now 0x0B000800 [ 20.681541] ======= reg 0x10000F is now 0x0A000800 [ 21.616264] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac started [ 26.615316] DEBUGFS PEER MAC = 0x48:0x73:0x97:0xc2:0x3f:0xb0 [ 26.676902] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready [ 33.850204] vdd_mmc1: disabling
Hi,
Log seems like just boot time log.
Can you add "idx" also to prints.
Also, add prints for addition of mcast and deletion of mcast to track all ALE additions and deletions.
Share the log from boot to till issue is observed. also share the ALE dump at ping start and ping stop i.e. failure scenario with ALE debug prints.
Best Regards,
Sudheer
Hi,
There is no prints when ping stop.
ALE dump has been shared on above reply.
Best Regards!
Hi,
There is no prints when ping stop.
I suspect some MAC addition or removal dumps.
If you see above ALE dump Multicast MAC "33:33:00:00:00:01" added in entry "0". In working scenario it was VLAN ID 0 entry.
Above could be the reason, I have requested to add prints at each of ALE addition and deletion and print the information of entry details like index, VLAN, MAC.
Best Regards,
Sudheer
Hi,
I add more prints in cpsw_ale.c:
diff --git a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 2b52c75f7..f006dc8ed 100644 --- a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -334,6 +334,8 @@ static void am65_cpsw_nuss_ndo_slave_set_rx_mode(struct net_device *ndev) port_mask, 0, 0, 0); } } + netdev_err(ndev, "%s\n",__func__); + } static void am65_cpsw_nuss_ndo_host_tx_timeout(struct net_device *ndev, diff --git a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c index b9ab087b6..0c5d63aba 100644 --- a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c +++ b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/am65-cpsw-switchdev.c @@ -231,7 +231,7 @@ static int am65_cpsw_port_vlan_del(struct am65_cpsw_port *port, u16 vid, */ cpsw_ale_del_mcast(cpsw->ale, port->ndev->broadcast, port_mask, ALE_VLAN, vid); - netdev_dbg(port->ndev, "VID del: %s: vid:%u ports:%X\n", + netdev_err(port->ndev, "VID del: %s: vid:%u ports:%X\n", port->ndev->name, vid, port_mask); return ret; diff --git a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c index be75bb009..8511edd1f 100644 --- a/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c +++ b/kernel/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/drivers/net/ethernet/ti/cpsw_ale.c @@ -449,6 +449,7 @@ int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) } cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s idx: %d,port_mask 0x%x\n", __func__,idx,port_mask); } return 0; } @@ -470,6 +471,7 @@ int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, u32 ale_entry[ALE_ENTRY_WORDS] = {0, 0, 0}; int idx; + dev_err(ale->params.dev, "%s \n", __func__); cpsw_ale_set_vlan_entry_type(ale_entry, flags, vid); cpsw_ale_set_addr(ale_entry, addr); @@ -487,6 +489,7 @@ int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, return -ENOMEM; cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s vid: %d,idx : %d,addr: %02x:%02x:%02x:%02x:%02x:%02x\n", __func__,vid,idx,addr[0],addr[1],addr[2],addr[3],addr[4],addr[5]); return 0; } @@ -502,6 +505,7 @@ int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port, cpsw_ale_set_entry_type(ale_entry, ALE_TYPE_FREE); cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s vid: %d,idx : %d,addr: %02x:%02x:%02x:%02x:%02x:%02x\n", __func__,vid,idx,addr[0],addr[1],addr[2],addr[3],addr[4],addr[5]); return 0; } @@ -535,6 +539,7 @@ int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, return -ENOMEM; cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s vid: %d,idx : %d,port_mask 0x%x,addr: %02x:%02x:%02x:%02x:%02x:%02x\n", __func__,vid,idx,port_mask,addr[0],addr[1],addr[2],addr[3],addr[4],addr[5]); return 0; } @@ -545,6 +550,7 @@ int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, int mcast_members = 0; int idx; + dev_err(ale->params.dev, "%s \n", __func__); idx = cpsw_ale_match_addr(ale, addr, (flags & ALE_VLAN) ? vid : 0); if (idx < 0) return -ENOENT; @@ -564,6 +570,7 @@ int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, cpsw_ale_set_entry_type(ale_entry, ALE_TYPE_FREE); cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s vid: %d,idx : %d,port_mask 0x%x,addr: %02x:%02x:%02x:%02x:%02x:%02x\n", __func__,vid,idx,port_mask,addr[0],addr[1],addr[2],addr[3],addr[4],addr[5]); return 0; } @@ -582,6 +589,7 @@ static void cpsw_ale_set_vlan_mcast(struct cpsw_ale *ale, u32 *ale_entry, idx = cpsw_ale_vlan_get_fld(ale, ale_entry, ALE_ENT_VID_UNREG_MCAST_IDX); writel(unreg_mcast, ale->params.ale_regs + ALE_VLAN_MASK_MUX(idx)); + dev_err(ale->params.dev, "%s \n", __func__); } static void cpsw_ale_set_vlan_untag(struct cpsw_ale *ale, u32 *ale_entry, @@ -602,6 +610,7 @@ int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, u32 ale_entry[ALE_ENTRY_WORDS] = {0, 0, 0}; int idx; + dev_err(ale->params.dev, "%s \n", __func__); idx = cpsw_ale_match_vlan(ale, vid); if (idx >= 0) cpsw_ale_read(ale, idx, ale_entry); @@ -633,6 +642,9 @@ int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, return -ENOMEM; cpsw_ale_write(ale, idx, ale_entry); + + dev_err(ale->params.dev, "%s vid: %d,idx:%d,port_mask 0x%x\n", __func__,vid,idx,port_mask); + return 0; } @@ -642,6 +654,8 @@ static void cpsw_ale_vlan_del_modify_int(struct cpsw_ale *ale, u32 *ale_entry, int reg_mcast, unreg_mcast; int members, untag; + dev_err(ale->params.dev, "%s \n", __func__); + members = cpsw_ale_vlan_get_fld(ale, ale_entry, ALE_ENT_VID_MEMBER_LIST); members &= ~port_mask; @@ -674,6 +688,7 @@ static void cpsw_ale_vlan_del_modify_int(struct cpsw_ale *ale, u32 *ale_entry, } cpsw_ale_vlan_set_fld(ale, ale_entry, ALE_ENT_VID_MEMBER_LIST, members); + dev_err(ale->params.dev, "%s vid: %d,port_mask 0x%x\n", __func__,vid,port_mask); } int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) @@ -681,6 +696,7 @@ int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) u32 ale_entry[ALE_ENTRY_WORDS] = {0, 0, 0}; int idx; + dev_err(ale->params.dev, "%s \n", __func__); idx = cpsw_ale_match_vlan(ale, vid); if (idx < 0) return -ENOENT; @@ -689,7 +705,7 @@ int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); cpsw_ale_write(ale, idx, ale_entry); - + dev_err(ale->params.dev, "%s vid: %d,idx:%d,port_mask 0x%x\n", __func__,vid,idx,port_mask); return 0; } @@ -698,6 +714,8 @@ int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) u32 ale_entry[ALE_ENTRY_WORDS] = {0, 0, 0}; int members, idx; + dev_err(ale->params.dev, "%s \n", __func__); + idx = cpsw_ale_match_vlan(ale, vid); if (idx < 0) return -ENOENT; @@ -724,6 +742,8 @@ int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) cpsw_ale_write(ale, idx, ale_entry); + dev_err(ale->params.dev, "%s idx:%d\n", __func__,idx); + return 0; } @@ -760,7 +780,7 @@ int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, dev_err(ale->params.dev, "Unable to add vlan\n"); return ret; } - dev_dbg(ale->params.dev, "port mask 0x%x untag 0x%x\n", vlan_members, + dev_err(ale->params.dev, "port mask 0x%x untag 0x%x\n", vlan_members, untag_mask); return ret; @@ -791,6 +811,7 @@ void cpsw_ale_set_unreg_mcast(struct cpsw_ale *ale, int unreg_mcast_mask, unreg_members); cpsw_ale_write(ale, idx, ale_entry); } + dev_err(ale->params.dev, "%s\n", __func__); } static void cpsw_ale_vlan_set_unreg_mcast(struct cpsw_ale *ale, u32 *ale_entry, @@ -856,6 +877,7 @@ void cpsw_ale_set_allmulti(struct cpsw_ale *ale, int allmulti, int port) cpsw_ale_write(ale, idx, ale_entry); } + dev_err(ale->params.dev, "%s \n", __func__); } struct ale_control_info {
Here is the dmesg log when the issue happens:
Hi, we added more printing in the code, and get more update.
as in the log at [11861.474667] shows the idx : 0 of cpsw_ale_add_mcast was called.Where the idx=0 is the vlan rule that should not be rewritten.
[11848.285540] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11848.296553] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11848.302935] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11848.311367] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11848.319808] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11848.328232] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11848.336657] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11848.345081] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11848.353508] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11848.361931] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11848.370358] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11848.378780] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11848.387293] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 11,port_mask 0x1 [11848.395905] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.401994] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11848.410330] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11848.422108] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.428195] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11848.436539] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11848.448312] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.454400] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11848.462736] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11848.474509] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.480598] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11848.488939] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11848.500712] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.506803] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11848.515139] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11848.526912] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.533001] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11848.541339] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11848.553112] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.559205] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11848.567541] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11848.579319] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.585410] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11848.593839] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11848.605644] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11848.644370] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11848.650726] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11848.659155] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11848.667582] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11848.676013] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11848.684449] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11848.692874] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11848.701302] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11848.709724] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11848.718151] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11848.726574] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11848.735188] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.741278] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11848.749617] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11848.761391] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.767479] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11848.775816] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11848.787588] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.793677] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11848.802013] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11848.813788] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.819875] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11848.828212] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11848.839985] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.846075] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11848.854410] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11848.866185] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.872278] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11848.880614] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11848.892387] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.898479] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11848.906814] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11848.918587] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.924678] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11848.933103] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11848.944961] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11848.951055] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 11,flags:0 [11848.959479] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 11,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [11848.971281] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11848.982748] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11848.989127] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11848.997577] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11849.006003] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11849.014431] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11849.022853] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11849.031278] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11849.039700] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11849.048127] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11849.056549] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11849.064975] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11849.073485] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 11,port_mask 0x1 [11849.082097] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.088186] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11849.096524] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11849.108297] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.114386] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11849.122722] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11849.134494] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.140592] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11849.148930] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11849.160702] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.166792] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11849.175128] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11849.186912] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.193004] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11849.201345] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11849.213119] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.219211] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11849.227547] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11849.239319] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.245411] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11849.253748] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11849.265521] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.271617] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11849.280041] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11849.291902] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.297994] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 11,flags:0 [11849.306419] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 11,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [11849.318278] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11849.324372] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 12,flags:0 [11849.332796] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 12,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:6b [11849.344600] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11861.360627] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11861.366989] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11861.375441] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11861.383888] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11861.392333] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11861.400765] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11861.409191] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11861.417622] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11861.426045] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11861.434472] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11861.442897] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11861.451412] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 11,port_mask 0x1 [11861.459921] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 12,port_mask 0x1 [11861.468554] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.474667] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 0,flags:0 [11861.483027] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 0,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11861.494827] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.500935] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11861.509281] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11861.521062] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.527161] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11861.535499] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11861.547276] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.553366] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11861.561705] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11861.573478] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.579569] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11861.587906] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11861.599684] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.605775] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11861.614117] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11861.625893] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.631985] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11861.640321] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11861.652097] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.658196] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11861.666547] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11861.678322] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.684419] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11861.692840] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:6b [11861.704654] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11861.713718] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11861.720080] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 0,port_mask 0x1 [11861.728513] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11861.736940] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11861.745370] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11861.753793] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11861.762218] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11861.770642] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11861.779071] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11861.787496] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11861.795921] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11861.804344] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11861.812964] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.819048] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 0,flags:0 [11861.827389] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 0,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11861.839169] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.845257] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11861.853594] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11861.865369] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.871457] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11861.879795] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11861.891569] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.897658] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11861.905998] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11861.917775] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.923865] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11861.932203] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11861.943976] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.950066] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11861.958403] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11861.970174] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11861.976263] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11861.984604] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11861.996376] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.002467] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11862.010803] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11862.022519] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11862.130793] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11862.137145] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 0,port_mask 0x1 [11862.145571] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11862.154000] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11862.162423] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11862.170850] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11862.179272] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11862.187698] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11862.196120] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11862.204546] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11862.212968] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11862.221508] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.227595] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 0,flags:0 [11862.235937] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 0,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11862.247710] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.253800] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11862.262137] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11862.273913] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.280003] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11862.288342] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11862.300115] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.306204] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11862.314540] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11862.326316] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.332405] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11862.340744] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11862.352516] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.358609] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11862.366944] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11862.378720] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.384810] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11862.393148] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11862.404921] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.411019] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11862.419353] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11862.431125] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.437219] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11862.445641] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [11862.457447] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [11862.465577] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [11862.471930] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 0,port_mask 0x1 [11862.480353] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [11862.488780] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [11862.497204] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [11862.505627] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [11862.514055] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [11862.522478] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [11862.530903] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [11862.539326] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [11862.547755] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [11862.556178] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [11862.564792] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.570874] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 0,flags:0 [11862.579214] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 0,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [11862.590987] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.597077] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [11862.605415] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [11862.617190] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.623278] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [11862.631616] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [11862.643388] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.649476] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [11862.657812] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [11862.669587] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.675675] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [11862.684012] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [11862.695786] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.701876] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [11862.710214] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [11862.721995] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.728092] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [11862.736428] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [11862.748204] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.754294] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [11862.762633] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [11862.774406] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.780499] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [11862.788922] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [11862.800784] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_addr [11862.806875] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 11,flags:0 [11862.815301] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 11,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:6b [11862.827104] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode
the "#1#" printing is in the following function:
It means the type of idx 0 was free to be written. But it is hard to tell who changed it, because we have added printing in all the functions that has cpsw_ale_write,
but did not see them called in the log when the issue happens.
while checking the code we found a modification in SDK 9.2 is suspicious, we don't know whether it can cause the issue:
please help to check code and find the reason.
best regards.
Hi,
I have seen VLAN entry over written by MAC entry in yesterday log.
Will be checking internally with dev team, and get back to you soon.
while checking the code we found a modification in SDK 9.2 is suspicious, we don't know whether it can cause the issue:
Let me check and update you on this.
Best Regards,
Sudheer
Hi,
while checking the code we found a modification in SDK 9.2 is suspicious, we don't know whether it can cause the issue:Let me check and update you on this.
No above will not cause this issue.
Can you please dump ALE entries on every time adding Multicast entry.
i.e. Print ale_entry[i] from cpsw_ale_read inside for loop also print the "i" as well.
+ dev_err(ale->params.dev, "%s i: %d, value: 0x%x\n",__func__,i, ale_entry[i]);
Best Regards,
Sudheer
Hi,
I add prints in function cpsw_ale_add_mcast:
int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, int flags, u16 vid, int mcast_state) { u32 ale_entry[ALE_ENTRY_WORDS] = {0, 0, 0}; u32 ale_entry1[ALE_ENTRY_WORDS] = {0, 0, 0}; int idx,idx1, mask; idx = cpsw_ale_match_addr(ale, addr, (flags & ALE_VLAN) ? vid : 0); if (idx >= 0) cpsw_ale_read(ale, idx, ale_entry); cpsw_ale_set_vlan_entry_type(ale_entry, flags, vid); cpsw_ale_set_addr(ale_entry, addr); cpsw_ale_set_super(ale_entry, (flags & ALE_SUPER) ? 1 : 0); cpsw_ale_set_mcast_state(ale_entry, mcast_state); mask = cpsw_ale_get_port_mask(ale_entry, ale->port_mask_bits); port_mask |= mask; cpsw_ale_set_port_mask(ale_entry, port_mask, ale->port_mask_bits); if (idx < 0) { idx = cpsw_ale_match_free(ale); dev_err(ale->params.dev, "%s #1# vid: %d,idx : %d,flags:%d\n", __func__,vid,idx,flags); } if (idx == 0) { cpsw_ale_read(ale, idx, ale_entry1); dev_err(ale->params.dev, "%s ############ vid: %d,idx : %d, ale_entry: 0x%08x 0x%08x 0x%08x\n", __func__,vid,idx,ale_entry1[2],ale_entry1[1],ale_entry1[0]); idx1 = cpsw_ale_match_free(ale); dev_err(ale->params.dev, "%s #1111111# vid: %d,idx1 : %d,flags:%d\n", __func__,vid,idx1,flags); } if (idx < 0) { idx = cpsw_ale_find_ageable(ale); dev_err(ale->params.dev, "%s #2# vid: %d,idx : %d,flags:%d\n", __func__,vid,idx,flags); } if (idx < 0) { return -ENOMEM; } cpsw_ale_write(ale, idx, ale_entry); dev_err(ale->params.dev, "%s #4# vid: %d,idx : %d,flags:%d,port_mask 0x%x,addr: %02x:%02x:%02x:%02x:%02x:%02x\n", __func__,vid,idx,flags,port_mask,addr[0],addr[1],addr[2],addr[3],addr[4],addr[5]); return 0; }
And the dmesg log when the issue happens:
[ 9486.169103] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 11,port_mask 0x1 [ 9486.177721] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [ 9486.186058] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [ 9486.197756] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [ 9486.206094] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [ 9486.217791] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [ 9486.226127] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [ 9486.237823] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [ 9486.246160] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [ 9486.257857] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [ 9486.266193] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [ 9486.277890] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [ 9486.286238] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [ 9486.297937] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [ 9486.306272] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [ 9486.317970] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [ 9486.326396] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [ 9486.338119] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [ 9486.459448] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [ 9486.465800] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [ 9486.474232] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [ 9486.482668] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [ 9486.491096] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [ 9486.499524] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [ 9486.507948] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [ 9486.516380] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [ 9486.524815] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [ 9486.533250] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [ 9486.541696] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [ 9486.550334] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [ 9486.558677] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [ 9486.570371] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [ 9486.578709] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [ 9486.590408] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [ 9486.598746] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [ 9486.610440] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [ 9486.618805] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [ 9486.630522] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [ 9486.638888] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [ 9486.650610] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [ 9486.658969] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [ 9486.670673] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [ 9486.679010] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [ 9486.690710] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [ 9486.699133] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [ 9486.710925] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 11,flags:0 [ 9486.719362] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 11,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [ 9486.731097] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode [ 9486.739943] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_set_allmulti [ 9486.746327] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 1,port_mask 0x1 [ 9486.754781] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 2,port_mask 0x1 [ 9486.763221] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 3,port_mask 0x1 [ 9486.771655] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 4,port_mask 0x1 [ 9486.780079] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 5,port_mask 0x1 [ 9486.788507] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 6,port_mask 0x1 [ 9486.796931] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 7,port_mask 0x1 [ 9486.805357] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 8,port_mask 0x1 [ 9486.813779] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 9,port_mask 0x1 [ 9486.822237] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 10,port_mask 0x1 [ 9486.830773] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_flush_multicast idx: 11,port_mask 0x1 [ 9486.839413] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 3,flags:0 [ 9486.847777] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 3,flags:0,port_mask 0x1,addr: 33:33:00:00:00:01 [ 9486.859481] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 4,flags:0 [ 9486.867820] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 4,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:01 [ 9486.879516] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 5,flags:0 [ 9486.887853] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 5,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fc [ 9486.899549] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 6,flags:0 [ 9486.907887] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 6,flags:0,port_mask 0x1,addr: 33:33:ff:59:c7:74 [ 9486.919590] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 0,flags:0 [ 9486.927950] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast ############ vid: 0,idx : 0, ale_entry: 0x03100003 0x20000000 0x00000000 [ 9486.940296] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1111111# vid: 0,idx1 : 7,flags:0 [ 9486.949246] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 0,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:fb [ 9486.960947] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 7,flags:0 [ 9486.969299] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 7,flags:0,port_mask 0x1,addr: 33:33:00:01:00:03 [ 9486.980996] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 8,flags:0 [ 9486.989338] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 8,flags:0,port_mask 0x1,addr: 33:33:00:00:00:fb [ 9487.001035] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 9,flags:0 [ 9487.009375] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 9,flags:0,port_mask 0x1,addr: 01:00:5e:7f:00:01 [ 9487.021071] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 10,flags:0 [ 9487.029495] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 10,flags:0,port_mask 0x1,addr: 01:00:5e:00:01:81 [ 9487.041282] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #1# vid: 0,idx : 11,flags:0 [ 9487.049706] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast #4# vid: 0,idx : 11,flags:0,port_mask 0x1,addr: 01:00:5e:00:00:6b [ 9487.061426] am65-cpsw-nuss 46000000.ethernet eth0: am65_cpsw_nuss_ndo_slave_set_rx_mode
The log show tha cpsw_ale_match_free resturn 0 in the first time, it is incorrect. cpsw_ale_match_free return 7 in the second time, it is right.
And I have a question, Is the funtion cpsw_ale_match_free reentrant?
Hi,
The log show tha cpsw_ale_match_free resturn 0 in the first time, it is incorrect. cpsw_ale_match_free return 7 in the second time, it is right.
Code added by you was wrong.
You are using idx1 for getting free entry, but using idx in ale writing (cpsw_ale_write).
i.e. Print ale_entry[i] from cpsw_ale_read inside for loop also print the "i" as well.
+ dev_err(ale->params.dev, "%s i: %d, value: 0x%x\n",__func__,i, ale_entry[i]);
I mean add print inside cpsw_ale_read function inside for loop, it will print full ALE table every time.
And I have a question, Is the funtion cpsw_ale_match_free reentrant?
No, It will enter if MAC address is not found from cpsw_ale_match_addr it will return ERROR (-ENOENT).
Best Regards,
Sudheer
Hi,
I use idx1 for testing.
So why the different value read twice by cpsw_ale_match_free when the issue happens?
Best regards!
Hi,
So why the different value read twice by cpsw_ale_match_free when the issue happens?
My doubt is ALE read might failed in 1st iteration of cpsw_ale_match_free.
So, only I have requested to add prints in cpsw_ale_read API to get ALE table as mentioned below.
i.e. Print ale_entry[i] from cpsw_ale_read inside for loop also print the "i" as well.
+ dev_err(ale->params.dev, "%s i: %d, value: 0x%x\n",__func__,i, ale_entry[i]);I mean add print inside cpsw_ale_read function inside for loop, it will print full ALE table every time.
Best Regards,
Sudheer
Hi,
The ALE table is 0x00000000 0x00000000 0x00000000 when read failed in first time.
The right value is 0x00000000 0x20000000 0x03100003 in second time.
[ 5050.168014] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_match_free , idx : 0, ale_entry: 0x00000000 0x00000000 0x00000000 [ 5050.178880] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast ############ vid: 0,idx : 0, ale_entry: 0x00000000 0x20000000 0x03100003 [ 5050.191226] am65-cpsw-nuss 46000000.ethernet: cpsw_ale_add_mcast ############ vid: 0,idx1 : 5,flags:0
Best regards!
Hi,
Can you please add delay (udelay(10);) in cpsw_ale_read after writing ALE TABLE CONTROL register i.e. adding delay for reading.
With above change can you please check is issue is reproduced or not?
Best Regards,
Sudheer
Hi,
Add delay (udelay(10);) in cpsw_ale_read, the issue still can be reproduced.
Best Regards
Hi,
I have reported the Issue internally with IP team to confirm the procedure to access ALE table.
Can you check by increasing the delay, whether it was helping or not?
If still not working after increasing the delay, can you check by writing the ALE TABLE CONTROL register twice i.e.
writel_relaxed(idx,ale->params.ale_regs + ALE_TABLE_CONTROL);
+ writel_relaxed(idx,ale->params.ale_regs + ALE_TABLE_CONTROL);
Best Regards,
Sudheer
Hi,
Writing the ALE TABLE CONTROL register twice, this issue is not reproduced.
Best Regards
Writing the ALE TABLE CONTROL register twice, this issue is not reproduced.
Hi Yongliang
is this issue resolved by Writing the ALE TABLE CONTROL register twice?
this case can be closed?
Regards
Semon
Hi,
Writing the ALE TABLE CONTROL register twice, this issue is not reproduced.
Thanks for the confirmation, please have this patch.
Will address this issue in future release of TI SDK.
Best Regards,
Sudheer