netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Gentoo Linux 5.x - Tigon3
@ 2019-10-01 14:30 Rudolf Spring
  2019-10-01 18:17 ` Michael Chan
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-10-01 14:30 UTC (permalink / raw)
  To: siva.kallam; +Cc: netdev

Hello - Since Kernel Version 5.0 (5.0.x/5.1.x/5.2.x and now 5.3.x) my BCM57765 refuses to work correctly. The same system configuration works without problems on the latest stable Gentoo 4.19.72 Kernel. So the changes from 4.19 to 5.0 include some code that is responsible for the hick-up. The problem occurs mostly while streaming video or using the internet. It can be provoked by using a handful of websites within minutes. Large file copy is not affected. The Adapter stops responding for a few seconds (Link down -> Link up) and this generates TX errors. From dmesg i’ve got the following dump when the problem occurs - Regards Rudolf


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 331145  bytes 116979033 (111.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 320415  bytes 617176664 (588.5 MiB)
        TX errors 2225  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

[ 1293.950223] tg3 0000:01:00.0 eth0: transmit timed out, resetting
[ 1294.432618] hrtimer: interrupt took 3256013 ns
[ 1297.115391] tg3 0000:01:00.0 eth0: 0x00000000: 0x168614e4, 0x00100406, 0x02000001, 0x00800040
[ 1297.115394] tg3 0000:01:00.0 eth0: 0x00000010: 0xa040000c, 0x00000000, 0xa041000c, 0x00000000
[ 1297.115396] tg3 0000:01:00.0 eth0: 0x00000020: 0x00000000, 0x00000000, 0x00000000, 0x168614e4
[ 1297.115398] tg3 0000:01:00.0 eth0: 0x00000030: 0x00000000, 0x00000048, 0x00000000, 0x00000100
[ 1297.115400] tg3 0000:01:00.0 eth0: 0x00000040: 0x00000000, 0x26000000, 0xc8035001, 0x16002008
[ 1297.115402] tg3 0000:01:00.0 eth0: 0x00000050: 0x00005803, 0x00000000, 0x0086a005, 0x00000000
[ 1297.115403] tg3 0000:01:00.0 eth0: 0x00000060: 0x00000000, 0x00000000, 0xf0010298, 0x01f802d1
[ 1297.115404] tg3 0000:01:00.0 eth0: 0x00000070: 0x00001090, 0x9f353308, 0x00000000, 0x00000000
[ 1297.115405] tg3 0000:01:00.0 eth0: 0x00000080: 0x168614e4, 0x00000015, 0x00000000, 0x000003dc
[ 1297.115406] tg3 0000:01:00.0 eth0: 0x00000090: 0x00000000, 0x00000073, 0x00000000, 0x0000019e
[ 1297.115408] tg3 0000:01:00.0 eth0: 0x000000a0: 0x8005ac11, 0x00000002, 0x00000122, 0x00020010
[ 1297.115409] tg3 0000:01:00.0 eth0: 0x000000b0: 0x05908d80, 0x00105400, 0x00475c11, 0x10110143
[ 1297.115410] tg3 0000:01:00.0 eth0: 0x000000d0: 0x0000081f, 0x00000000, 0x00000000, 0x00010001
[ 1297.115411] tg3 0000:01:00.0 eth0: 0x000000f0: 0x00000000, 0x00000000, 0x00000000, 0x57766001
[ 1297.115412] tg3 0000:01:00.0 eth0: 0x00000100: 0x13c10001, 0x00000000, 0x00000000, 0x00062030
[ 1297.115414] tg3 0000:01:00.0 eth0: 0x00000110: 0x00002000, 0x00002000, 0x000000a0, 0x00000000
[ 1297.115415] tg3 0000:01:00.0 eth0: 0x00000130: 0x00000000, 0x00000000, 0x00000000, 0x15010003
[ 1297.115416] tg3 0000:01:00.0 eth0: 0x00000140: 0x6628e695, 0x0000a820, 0x00000000, 0x00000000
[ 1297.115428] tg3 0000:01:00.0 eth0: 0x00000150: 0x16010004, 0x00000000, 0x00078116, 0x00000001
[ 1297.115431] tg3 0000:01:00.0 eth0: 0x00000160: 0x1b010002, 0x00000000, 0x00000000, 0x00000000
[ 1297.115433] tg3 0000:01:00.0 eth0: 0x00000170: 0x00000000, 0x800000ff, 0x00000000, 0x00000000
[ 1297.115436] tg3 0000:01:00.0 eth0: 0x000001b0: 0x00010018, 0x00000000, 0x00000000, 0x00000000
[ 1297.115439] tg3 0000:01:00.0 eth0: 0x00000200: 0x00000000, 0x26000000, 0x00000000, 0xb6000000
[ 1297.115442] tg3 0000:01:00.0 eth0: 0x00000210: 0x00000000, 0x31000000, 0x00000000, 0x98000000
[ 1297.115445] tg3 0000:01:00.0 eth0: 0x00000220: 0x00000000, 0x59000000, 0x00000000, 0x00000000
[ 1297.115448] tg3 0000:01:00.0 eth0: 0x00000260: 0x00000000, 0x00000000, 0x00000000, 0x0000019e
[ 1297.115450] tg3 0000:01:00.0 eth0: 0x00000270: 0x00000000, 0x0000000d, 0x00000000, 0x00000000
[ 1297.115453] tg3 0000:01:00.0 eth0: 0x00000280: 0x00000000, 0x000003dc, 0x00000000, 0x0000028f
[ 1297.115456] tg3 0000:01:00.0 eth0: 0x00000290: 0x00000000, 0x000001b9, 0x00000000, 0x0000015b
[ 1297.115459] tg3 0000:01:00.0 eth0: 0x00000300: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115461] tg3 0000:01:00.0 eth0: 0x00000310: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115464] tg3 0000:01:00.0 eth0: 0x00000320: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115467] tg3 0000:01:00.0 eth0: 0x00000330: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115470] tg3 0000:01:00.0 eth0: 0x00000340: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115472] tg3 0000:01:00.0 eth0: 0x00000350: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115475] tg3 0000:01:00.0 eth0: 0x00000360: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115478] tg3 0000:01:00.0 eth0: 0x00000370: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115480] tg3 0000:01:00.0 eth0: 0x00000380: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115483] tg3 0000:01:00.0 eth0: 0x00000390: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115486] tg3 0000:01:00.0 eth0: 0x000003a0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115488] tg3 0000:01:00.0 eth0: 0x000003b0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115491] tg3 0000:01:00.0 eth0: 0x000003c0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115494] tg3 0000:01:00.0 eth0: 0x000003d0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115496] tg3 0000:01:00.0 eth0: 0x000003e0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115499] tg3 0000:01:00.0 eth0: 0x000003f0: 0x00000000, 0x00000073, 0x00000000, 0x00000073
[ 1297.115502] tg3 0000:01:00.0 eth0: 0x00000400: 0x00e04808, 0x00400000, 0x00001000, 0x00000c80
[ 1297.115505] tg3 0000:01:00.0 eth0: 0x00000410: 0x0000a820, 0x6628e695, 0x0000a820, 0x6628e695
[ 1297.115508] tg3 0000:01:00.0 eth0: 0x00000420: 0x0000a820, 0x6628e695, 0x0000a820, 0x6628e695
[ 1297.115510] tg3 0000:01:00.0 eth0: 0x00000430: 0x00000000, 0x00000000, 0x0000010b, 0x0000233e
[ 1297.115513] tg3 0000:01:00.0 eth0: 0x00000440: 0x00000000, 0x00000000, 0x00000000, 0x04384400
[ 1297.115516] tg3 0000:01:00.0 eth0: 0x00000450: 0x00000001, 0x00008000, 0x00000000, 0x00000112
[ 1297.115519] tg3 0000:01:00.0 eth0: 0x00000460: 0x00000008, 0x00002620, 0x01ff0506, 0x00000000
[ 1297.115522] tg3 0000:01:00.0 eth0: 0x00000470: 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff
[ 1297.115525] tg3 0000:01:00.0 eth0: 0x00000480: 0x42000000, 0x7fffffff, 0x06000004, 0x7fffffff
[ 1297.115527] tg3 0000:01:00.0 eth0: 0x00000500: 0x00000008, 0x00000001, 0x00000000, 0x00000000
[ 1297.115530] tg3 0000:01:00.0 eth0: 0x00000590: 0x00900110, 0x00000000, 0x00000000, 0x00000000
[ 1297.115533] tg3 0000:01:00.0 eth0: 0x00000600: 0xffffffff, 0x00f80011, 0x00000000, 0x00001f04
[ 1297.115536] tg3 0000:01:00.0 eth0: 0x00000610: 0xffffffff, 0x00000000, 0x07c00044, 0x9619c800
[ 1297.115539] tg3 0000:01:00.0 eth0: 0x00000620: 0x00000448, 0x00000000, 0x00000000, 0x00000000
[ 1297.115542] tg3 0000:01:00.0 eth0: 0x00000630: 0x01230123, 0x01230123, 0x01230123, 0x01230123
[ 1297.115545] tg3 0000:01:00.0 eth0: 0x00000640: 0x01230123, 0x01230123, 0x01230123, 0x01230123
[ 1297.115548] tg3 0000:01:00.0 eth0: 0x00000650: 0x01230123, 0x01230123, 0x01230123, 0x01230123
[ 1297.115550] tg3 0000:01:00.0 eth0: 0x00000660: 0x01230123, 0x01230123, 0x01230123, 0x01230123
[ 1297.115553] tg3 0000:01:00.0 eth0: 0x00000670: 0xf7b1128a, 0x86f8b89e, 0x21486cf9, 0xd6bef5cb
[ 1297.115556] tg3 0000:01:00.0 eth0: 0x00000680: 0x79da90a5, 0xc3ce5ed2, 0x85fb20e0, 0x5df6a144
[ 1297.115559] tg3 0000:01:00.0 eth0: 0x00000690: 0x551cee93, 0x47873531, 0x00000000, 0x00000000
[ 1297.115562] tg3 0000:01:00.0 eth0: 0x00000800: 0x00000000, 0xffffffff, 0x00000000, 0x00000000
[ 1297.115565] tg3 0000:01:00.0 eth0: 0x00000810: 0x00000000, 0xffffffff, 0x00000000, 0x00000000
[ 1297.115567] tg3 0000:01:00.0 eth0: 0x00000820: 0x00000000, 0x00000000, 0xffffffff, 0x00000000
[ 1297.115570] tg3 0000:01:00.0 eth0: 0x00000830: 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff
[ 1297.115573] tg3 0000:01:00.0 eth0: 0x00000840: 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff
[ 1297.115576] tg3 0000:01:00.0 eth0: 0x00000850: 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff
[ 1297.115579] tg3 0000:01:00.0 eth0: 0x00000860: 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000
[ 1297.115581] tg3 0000:01:00.0 eth0: 0x00000880: 0x0000008f, 0x00000000, 0x00000000, 0x00000001
[ 1297.115584] tg3 0000:01:00.0 eth0: 0x00000890: 0x00000000, 0x00000001, 0x00000000, 0x00000000
[ 1297.115587] tg3 0000:01:00.0 eth0: 0x000008f0: 0x007c0001, 0x00000000, 0x00000000, 0x00000000
[ 1297.115590] tg3 0000:01:00.0 eth0: 0x00000c00: 0x0000000a, 0x00000000, 0x00000003, 0x00000001
[ 1297.115593] tg3 0000:01:00.0 eth0: 0x00000c10: 0x00000000, 0x00000007, 0x40000000, 0x00610000
[ 1297.115595] tg3 0000:01:00.0 eth0: 0x00000c80: 0x00005a08, 0x00000000, 0x00000000, 0x00000000
[ 1297.115598] tg3 0000:01:00.0 eth0: 0x00000ce0: 0xfb5f2282, 0x00000001, 0x00000061, 0x0004002c
[ 1297.115601] tg3 0000:01:00.0 eth0: 0x00000cf0: 0x00000000, 0x0000005a, 0x45820000, 0x00000000
[ 1297.115604] tg3 0000:01:00.0 eth0: 0x00001000: 0x00000002, 0x00000000, 0xa0003839, 0x00000000
[ 1297.115607] tg3 0000:01:00.0 eth0: 0x00001010: 0x00590590, 0x00013839, 0x00000000, 0x00000000
[ 1297.115610] tg3 0000:01:00.0 eth0: 0x00001400: 0x00000006, 0x00000000, 0x00000000, 0x00000004
[ 1297.115613] tg3 0000:01:00.0 eth0: 0x00001440: 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b
[ 1297.115616] tg3 0000:01:00.0 eth0: 0x00001450: 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b
[ 1297.115618] tg3 0000:01:00.0 eth0: 0x00001460: 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b
[ 1297.115621] tg3 0000:01:00.0 eth0: 0x00001470: 0x0000005b, 0x0000005b, 0x0000005b, 0x0000005b
[ 1297.115624] tg3 0000:01:00.0 eth0: 0x00001800: 0x00000016, 0x00000000, 0x00000073, 0x00000000
[ 1297.115627] tg3 0000:01:00.0 eth0: 0x00001840: 0x00000000, 0x00000000, 0x00000200, 0x00000010
[ 1297.115630] tg3 0000:01:00.0 eth0: 0x00001850: 0x0000001f, 0x00000002, 0x00004300, 0x00730073
[ 1297.115632] tg3 0000:01:00.0 eth0: 0x00001860: 0x03000000, 0x00000000, 0x00000000, 0x00000000
[ 1297.115635] tg3 0000:01:00.0 eth0: 0x00001c00: 0x00000002, 0x00000000, 0x00000000, 0x00000000
[ 1297.115638] tg3 0000:01:00.0 eth0: 0x00002000: 0x00000002, 0x00000000, 0x00000000, 0x00000000
[ 1297.115641] tg3 0000:01:00.0 eth0: 0x00002010: 0x00000181, 0x00000001, 0x007bffff, 0x00000000
[ 1297.115644] tg3 0000:01:00.0 eth0: 0x00002100: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115647] tg3 0000:01:00.0 eth0: 0x00002110: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115650] tg3 0000:01:00.0 eth0: 0x00002120: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115652] tg3 0000:01:00.0 eth0: 0x00002130: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115655] tg3 0000:01:00.0 eth0: 0x00002140: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115658] tg3 0000:01:00.0 eth0: 0x00002150: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115660] tg3 0000:01:00.0 eth0: 0x00002160: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115663] tg3 0000:01:00.0 eth0: 0x00002170: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115666] tg3 0000:01:00.0 eth0: 0x00002180: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115669] tg3 0000:01:00.0 eth0: 0x00002190: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115671] tg3 0000:01:00.0 eth0: 0x000021a0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115674] tg3 0000:01:00.0 eth0: 0x000021b0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115677] tg3 0000:01:00.0 eth0: 0x000021c0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115679] tg3 0000:01:00.0 eth0: 0x000021d0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115682] tg3 0000:01:00.0 eth0: 0x000021e0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115685] tg3 0000:01:00.0 eth0: 0x000021f0: 0x000e4522, 0x000e4522, 0x00000000, 0x00000000
[ 1297.115688] tg3 0000:01:00.0 eth0: 0x00002200: 0x00007584, 0x00000000, 0x00000000, 0x00000000
[ 1297.115690] tg3 0000:01:00.0 eth0: 0x00002400: 0x00000012, 0x00000000, 0x00000000, 0x00000000
[ 1297.115693] tg3 0000:01:00.0 eth0: 0x00002440: 0x00000002, 0x61374000, 0x01000000, 0x00007000
[ 1297.115696] tg3 0000:01:00.0 eth0: 0x00002450: 0x00000002, 0x60d84000, 0x02001800, 0x00006000
[ 1297.115699] tg3 0000:01:00.0 eth0: 0x00002470: 0x000000a9, 0x000000db, 0x00000000, 0x00000000
[ 1297.115702] tg3 0000:01:00.0 eth0: 0x000024c0: 0x00800101, 0x00000000, 0x00000000, 0x00000000
[ 1297.115705] tg3 0000:01:00.0 eth0: 0x00002800: 0x00000006, 0x00000000, 0x00000000, 0x00000000
[ 1297.115708] tg3 0000:01:00.0 eth0: 0x00002c00: 0x00000006, 0x00000000, 0x000000e4, 0x00000164
[ 1297.115710] tg3 0000:01:00.0 eth0: 0x00002c10: 0x00000000, 0x00000000, 0x00000019, 0x0000000c
[ 1297.115713] tg3 0000:01:00.0 eth0: 0x00002c20: 0x00000004, 0x00000000, 0x00000000, 0x00000000
[ 1297.115716] tg3 0000:01:00.0 eth0: 0x00003000: 0x00000006, 0x00000000, 0x000000e4, 0x00000164
[ 1297.115720] tg3 0000:01:00.0 eth0: 0x00003600: 0x00137400, 0x00130000, 0x00110000, 0x00000000
[ 1297.115722] tg3 0000:01:00.0 eth0: 0x00003610: 0x00170000, 0x00130000, 0x00150000, 0x00000000
[ 1297.115725] tg3 0000:01:00.0 eth0: 0x00003620: 0x00000000, 0x00000000, 0x00000000, 0x00022080
[ 1297.115728] tg3 0000:01:00.0 eth0: 0x00003630: 0x00000000, 0x80008000, 0x00001080, 0x00000000
[ 1297.115731] tg3 0000:01:00.0 eth0: 0x00003640: 0x0000000a, 0x30400000, 0x00000020, 0x00000019
[ 1297.115733] tg3 0000:01:00.0 eth0: 0x00003650: 0x00000171, 0x00000bff, 0x57766001, 0x00000000
[ 1297.115736] tg3 0000:01:00.0 eth0: 0x00003660: 0x00000000, 0x00000000, 0x010400a7, 0x00000000
[ 1297.115739] tg3 0000:01:00.0 eth0: 0x00003670: 0x0000002a, 0xfeffff77, 0x0000000a, 0x00000000
[ 1297.115742] tg3 0000:01:00.0 eth0: 0x00003690: 0x80157766, 0x00000000, 0x00000000, 0x00000000
[ 1297.115745] tg3 0000:01:00.0 eth0: 0x000036a0: 0x00000000, 0x00000000, 0x00000000, 0x00000044
[ 1297.115747] tg3 0000:01:00.0 eth0: 0x000036b0: 0x001003c8, 0x07ff07ff, 0x07ff07ff, 0x0100000d
[ 1297.115750] tg3 0000:01:00.0 eth0: 0x000036c0: 0xfffffffe, 0x0000d477, 0x00044be5, 0x00000045
[ 1297.115753] tg3 0000:01:00.0 eth0: 0x000036d0: 0x0000019d, 0x00000000, 0x00000000, 0x000012b3
[ 1297.115756] tg3 0000:01:00.0 eth0: 0x000036e0: 0x00000b19, 0x20800799, 0x00500799, 0x00000000
[ 1297.115759] tg3 0000:01:00.0 eth0: 0x00003c00: 0x00000302, 0x00000000, 0x00000000, 0x00000048
[ 1297.115762] tg3 0000:01:00.0 eth0: 0x00003c10: 0x00000000, 0x00000035, 0x00000000, 0x00000000
[ 1297.115764] tg3 0000:01:00.0 eth0: 0x00003c20: 0x00000000, 0x00000005, 0x00000000, 0x00000000
[ 1297.115767] tg3 0000:01:00.0 eth0: 0x00003c30: 0x00000000, 0x00000000, 0x00000002, 0x60e25000
[ 1297.115770] tg3 0000:01:00.0 eth0: 0x00003c40: 0x00000000, 0x00000b00, 0x00000000, 0x00000000
[ 1297.115773] tg3 0000:01:00.0 eth0: 0x00003c50: 0x000000a9, 0x000000fd, 0x00000000, 0x00000000
[ 1297.115775] tg3 0000:01:00.0 eth0: 0x00003c80: 0x000003ea, 0x00000294, 0x000001bf, 0x00000169
[ 1297.115778] tg3 0000:01:00.0 eth0: 0x00003cc0: 0x00000059, 0x00000000, 0x00000000, 0x00000000
[ 1297.115781] tg3 0000:01:00.0 eth0: 0x00003cd0: 0x00000000, 0x0000000f, 0x00000000, 0x00000000
[ 1297.115784] tg3 0000:01:00.0 eth0: 0x00003d00: 0x00000002, 0x60d99000, 0x00000002, 0x60da2000
[ 1297.115787] tg3 0000:01:00.0 eth0: 0x00003d10: 0x00000002, 0x60da4000, 0x00000002, 0x612ad000
[ 1297.115789] tg3 0000:01:00.0 eth0: 0x00003d80: 0x00000014, 0x00000000, 0x00000005, 0x00000000
[ 1297.115792] tg3 0000:01:00.0 eth0: 0x00003d90: 0x00000005, 0x00000000, 0x00000014, 0x00000000
[ 1297.115795] tg3 0000:01:00.0 eth0: 0x00003da0: 0x00000005, 0x00000000, 0x00000005, 0x00000000
[ 1297.115797] tg3 0000:01:00.0 eth0: 0x00003db0: 0x00000014, 0x00000000, 0x00000005, 0x00000000
[ 1297.115800] tg3 0000:01:00.0 eth0: 0x00003dc0: 0x00000005, 0x00000000, 0x00000014, 0x00000000
[ 1297.115803] tg3 0000:01:00.0 eth0: 0x00003dd0: 0x00000005, 0x00000000, 0x00000005, 0x00000000
[ 1297.115806] tg3 0000:01:00.0 eth0: 0x00004000: 0x00000002, 0x00000000, 0x001bf108, 0x0013240a
[ 1297.115809] tg3 0000:01:00.0 eth0: 0x00004010: 0x00439040, 0x0023a012, 0x00800440, 0x008590a2
[ 1297.115811] tg3 0000:01:00.0 eth0: 0x00004020: 0x00000000, 0x00000010, 0x00000010, 0x00000050
[ 1297.115814] tg3 0000:01:00.0 eth0: 0x00004030: 0x00000000, 0x01083220, 0x0023a010, 0x00439002
[ 1297.115817] tg3 0000:01:00.0 eth0: 0x00004040: 0x0043a000, 0x02180000, 0x00000010, 0x00438062
[ 1297.115820] tg3 0000:01:00.0 eth0: 0x00004400: 0x00000006, 0x00000000, 0x00010000, 0x0000a000
[ 1297.115823] tg3 0000:01:00.0 eth0: 0x00004410: 0x00000000, 0x0000007e, 0x000000ea, 0x00000000
[ 1297.115826] tg3 0000:01:00.0 eth0: 0x00004420: 0x0000003d, 0x00000000, 0x00000000, 0x00000000
[ 1297.115828] tg3 0000:01:00.0 eth0: 0x00004440: 0x00000000, 0x00000000, 0x00000000, 0x0380e43b
[ 1297.115831] tg3 0000:01:00.0 eth0: 0x00004450: 0x0002053f, 0x003b003c, 0x00000000, 0x00000000
[ 1297.115834] tg3 0000:01:00.0 eth0: 0x00004700: 0x00030002, 0x03200000, 0x03200320, 0x05d50000
[ 1297.115837] tg3 0000:01:00.0 eth0: 0x00004710: 0x60d86320, 0x000c0904, 0x03200010, 0x00000000
[ 1297.115840] tg3 0000:01:00.0 eth0: 0x00004720: 0x00000000, 0x00000000, 0xf02c0000, 0x60d86c80
[ 1297.115843] tg3 0000:01:00.0 eth0: 0x00004770: 0x000c0404, 0x00000042, 0x00000018, 0x00000000
[ 1297.115846] tg3 0000:01:00.0 eth0: 0x00004800: 0x180303fe, 0x00000000, 0x00000000, 0x00000020
[ 1297.115849] tg3 0000:01:00.0 eth0: 0x00004810: 0x00000000, 0x0000000a, 0x00429574, 0x00001514
[ 1297.115851] tg3 0000:01:00.0 eth0: 0x00004820: 0x0000003a, 0x00000000, 0xf0330000, 0xfb5ea280
[ 1297.115854] tg3 0000:01:00.0 eth0: 0x00004840: 0x000035f9, 0x000035f9, 0x000e2200, 0x3a4218ba
[ 1297.115857] tg3 0000:01:00.0 eth0: 0x00004850: 0x6bcc318c, 0xe6ee0061, 0x39383938, 0x00000000
[ 1297.115860] tg3 0000:01:00.0 eth0: 0x00004860: 0x0000003a, 0x00000000, 0x00000000, 0x00000000
[ 1297.115863] tg3 0000:01:00.0 eth0: 0x00004870: 0x00000000, 0x003e1820, 0x003e1820, 0x00000000
[ 1297.115866] tg3 0000:01:00.0 eth0: 0x00004890: 0x28090404, 0x00305400, 0x00000000, 0x00000000
[ 1297.115868] tg3 0000:01:00.0 eth0: 0x000048a0: 0x000f0010, 0x00000000, 0x00000000, 0x00000000
[ 1297.115871] tg3 0000:01:00.0 eth0: 0x00004900: 0x18030006, 0x00000003, 0x30000000, 0x00000020
[ 1297.115874] tg3 0000:01:00.0 eth0: 0x00004910: 0x00000040, 0x00000003, 0x0000d578, 0x00000010
[ 1297.115877] tg3 0000:01:00.0 eth0: 0x00004920: 0x00000038, 0x02158000, 0x64e8d099, 0x0f000048
[ 1297.115880] tg3 0000:01:00.0 eth0: 0x00004930: 0xfb53c001, 0x0f000450, 0x645e0899, 0x0f000048
[ 1297.115882] tg3 0000:01:00.0 eth0: 0x00004940: 0x60e51d71, 0x0f000068, 0x3737a5a5, 0x6969b1b1
[ 1297.115885] tg3 0000:01:00.0 eth0: 0x00004950: 0xf0320000, 0x64e8d0e0, 0xef000000, 0x382b0037
[ 1297.115888] tg3 0000:01:00.0 eth0: 0x00004960: 0x00000000, 0xfb53c450, 0xdf000000, 0x40000058
[ 1297.115891] tg3 0000:01:00.0 eth0: 0x00004970: 0x00028203, 0x00205400, 0x0000001c, 0x000000ff
[ 1297.115894] tg3 0000:01:00.0 eth0: 0x00004980: 0x00000038, 0x00000000, 0x00000000, 0x00000000
[ 1297.115896] tg3 0000:01:00.0 eth0: 0x00004990: 0x00000000, 0x00000000, 0x645e08e0, 0xef000000
[ 1297.115899] tg3 0000:01:00.0 eth0: 0x000049a0: 0x00f00092, 0x00000038, 0x00000000, 0x00000000
[ 1297.115902] tg3 0000:01:00.0 eth0: 0x000049b0: 0x64e8d099, 0xfb53bec1, 0x64e8d099, 0xfb53b3b1
[ 1297.115905] tg3 0000:01:00.0 eth0: 0x000049c0: 0x64e8d09e, 0xfb53bec5, 0x645e089e, 0x60e51d72
[ 1297.115908] tg3 0000:01:00.0 eth0: 0x000049d0: 0x64e8d09e, 0xfb53b93b, 0x64e8d09e, 0xfb53b3b1
[ 1297.115910] tg3 0000:01:00.0 eth0: 0x000049f0: 0xf0330000, 0x60e51dd8, 0xaf000000, 0x0000d5ea
[ 1297.115913] tg3 0000:01:00.0 eth0: 0x00004c00: 0x200003fe, 0x00000000, 0x00000000, 0x00000000
[ 1297.115916] tg3 0000:01:00.0 eth0: 0x00004c10: 0x00000015, 0x00000000, 0x00000006, 0x00000000
[ 1297.115919] tg3 0000:01:00.0 eth0: 0x00004c20: 0x00000000, 0x00000000, 0x00000000, 0x00000006
[ 1297.115921] tg3 0000:01:00.0 eth0: 0x00004c30: 0x00000000, 0xa9fa8000, 0x000000da, 0x000000da
[ 1297.115924] tg3 0000:01:00.0 eth0: 0x00004c40: 0x00000000, 0x613b2d20, 0x00010020, 0x00140020
[ 1297.115927] tg3 0000:01:00.0 eth0: 0x00004c50: 0x1bea4fe9, 0x0feffd69, 0xd6a6fe94, 0xfb7e2626
[ 1297.115930] tg3 0000:01:00.0 eth0: 0x00004c60: 0x00000020, 0x00000000, 0x00000000, 0x00000000
[ 1297.115933] tg3 0000:01:00.0 eth0: 0x00005000: 0x00009800, 0x80000000, 0x00000000, 0x00000000
[ 1297.115935] tg3 0000:01:00.0 eth0: 0x00005010: 0x00000000, 0x00000000, 0x00000000, 0x08000dd4
[ 1297.115938] tg3 0000:01:00.0 eth0: 0x00005020: 0x00831821, 0x00000000, 0x00000000, 0x40000020
[ 1297.115941] tg3 0000:01:00.0 eth0: 0x00005030: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.115944] tg3 0000:01:00.0 eth0: 0x00005040: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.115947] tg3 0000:01:00.0 eth0: 0x00005080: 0x00009800, 0x80000000, 0x00000000, 0x00000000
[ 1297.115949] tg3 0000:01:00.0 eth0: 0x00005090: 0x00000000, 0x00000000, 0x00000000, 0x08000dcc
[ 1297.115952] tg3 0000:01:00.0 eth0: 0x000050a0: 0x8fa30000, 0x00000000, 0x00000000, 0x40000020
[ 1297.115955] tg3 0000:01:00.0 eth0: 0x000050b0: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.115958] tg3 0000:01:00.0 eth0: 0x000050c0: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.115960] tg3 0000:01:00.0 eth0: 0x00005100: 0x00009800, 0x80004000, 0x00000000, 0x00000000
[ 1297.115963] tg3 0000:01:00.0 eth0: 0x00005110: 0x00000000, 0x00000000, 0x00000000, 0x08000dd0
[ 1297.115966] tg3 0000:01:00.0 eth0: 0x00005120: 0x00831821, 0x00000000, 0x00000000, 0x40000020
[ 1297.115969] tg3 0000:01:00.0 eth0: 0x00005130: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.115971] tg3 0000:01:00.0 eth0: 0x00005140: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.115974] tg3 0000:01:00.0 eth0: 0x00005180: 0x00009800, 0x80004000, 0x00000000, 0x00000000
[ 1297.115977] tg3 0000:01:00.0 eth0: 0x00005190: 0x00000000, 0x00000000, 0x00000000, 0x08000dcc
[ 1297.115980] tg3 0000:01:00.0 eth0: 0x000051a0: 0x00831821, 0x00000000, 0x00000000, 0x40000020
[ 1297.115982] tg3 0000:01:00.0 eth0: 0x000051b0: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.115985] tg3 0000:01:00.0 eth0: 0x000051c0: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.115988] tg3 0000:01:00.0 eth0: 0x00005200: 0x4cdf853f, 0x00000000, 0x00000000, 0x08000900
[ 1297.115991] tg3 0000:01:00.0 eth0: 0x00005210: 0x08000900, 0xc0000000, 0xc0000000, 0xc0000000
[ 1297.115994] tg3 0000:01:00.0 eth0: 0x00005220: 0x000003e8, 0x4cdf855e, 0x000003e8, 0x4cdf8565
[ 1297.115996] tg3 0000:01:00.0 eth0: 0x00005230: 0x4cdf83b4, 0x00000000, 0x00000000, 0x08000900
[ 1297.115999] tg3 0000:01:00.0 eth0: 0x00005240: 0x08000900, 0x08000900, 0x08000900, 0xc0000000
[ 1297.116002] tg3 0000:01:00.0 eth0: 0x00005250: 0x000003e8, 0x000003e8, 0x000003e8, 0x4cdf83b4
[ 1297.116005] tg3 0000:01:00.0 eth0: 0x00005260: 0x4cdf83b4, 0x4cdf83b4, 0x00000000, 0x00000000
[ 1297.116008] tg3 0000:01:00.0 eth0: 0x00005270: 0x08000900, 0xc0000000, 0x000003e8, 0x0800ff68
[ 1297.116011] tg3 0000:01:00.0 eth0: 0x00005280: 0x00009800, 0x80000000, 0x00000000, 0x00000000
[ 1297.116013] tg3 0000:01:00.0 eth0: 0x00005290: 0x00000000, 0x00000000, 0x00000000, 0x08000dd0
[ 1297.116016] tg3 0000:01:00.0 eth0: 0x000052a0: 0x00831821, 0x00000000, 0x00000000, 0x40000020
[ 1297.116019] tg3 0000:01:00.0 eth0: 0x000052b0: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.116022] tg3 0000:01:00.0 eth0: 0x000052c0: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.116024] tg3 0000:01:00.0 eth0: 0x00005300: 0x00009800, 0x80000000, 0x00000000, 0x00000000
[ 1297.116027] tg3 0000:01:00.0 eth0: 0x00005310: 0x00000000, 0x00000000, 0x00000000, 0x08000dcc
[ 1297.116030] tg3 0000:01:00.0 eth0: 0x00005320: 0x8c45680c, 0x00000000, 0x00000000, 0x40000020
[ 1297.116033] tg3 0000:01:00.0 eth0: 0x00005330: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.116035] tg3 0000:01:00.0 eth0: 0x00005340: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.116038] tg3 0000:01:00.0 eth0: 0x00005380: 0x00009800, 0x80004000, 0x00000000, 0x00000000
[ 1297.116041] tg3 0000:01:00.0 eth0: 0x00005390: 0x00000000, 0x00000000, 0x00000000, 0x08000dcc
[ 1297.116044] tg3 0000:01:00.0 eth0: 0x000053a0: 0x00831821, 0x00000000, 0x00000000, 0x40000020
[ 1297.116046] tg3 0000:01:00.0 eth0: 0x000053b0: 0x00000000, 0x0000001d, 0x00000000, 0x00000000
[ 1297.116049] tg3 0000:01:00.0 eth0: 0x000053c0: 0x00000000, 0x00000000, 0x08000dde, 0x00000000
[ 1297.116052] tg3 0000:01:00.0 eth0: 0x00005800: 0x00000000, 0x26000000, 0x00000000, 0xc2000000
[ 1297.116055] tg3 0000:01:00.0 eth0: 0x00005810: 0x00000000, 0x36000000, 0x00000000, 0x9d000000
[ 1297.116058] tg3 0000:01:00.0 eth0: 0x00005820: 0x00000000, 0x00000001, 0x00000000, 0x00000000
[ 1297.116060] tg3 0000:01:00.0 eth0: 0x00005860: 0x00000000, 0x00000000, 0x00000000, 0x000001b9
[ 1297.116063] tg3 0000:01:00.0 eth0: 0x00005870: 0x00000000, 0x0000000d, 0x00000000, 0x00000000
[ 1297.116066] tg3 0000:01:00.0 eth0: 0x00005880: 0x00000000, 0x000003eb, 0x00000000, 0x00000294
[ 1297.116068] tg3 0000:01:00.0 eth0: 0x00005890: 0x00000000, 0x000001c0, 0x00000000, 0x0000015b
[ 1297.116071] tg3 0000:01:00.0 eth0: 0x00005900: 0x00000000, 0x00000073, 0x00000000, 0x00000000
[ 1297.116074] tg3 0000:01:00.0 eth0: 0x00005980: 0x00000073, 0x00000000, 0x00000000, 0x00000000
[ 1297.116077] tg3 0000:01:00.0 eth0: 0x00005a00: 0x000f601f, 0x00000000, 0x00010000, 0x00000000
[ 1297.116080] tg3 0000:01:00.0 eth0: 0x00006000: 0x20000082, 0x00000000, 0x00000000, 0x00000000
[ 1297.116083] tg3 0000:01:00.0 eth0: 0x00006400: 0x00000000, 0x00000000, 0x00010091, 0xc0000000
[ 1297.116086] tg3 0000:01:00.0 eth0: 0x00006410: 0x05000016, 0x05000016, 0x00000000, 0x00000000
[ 1297.116089] tg3 0000:01:00.0 eth0: 0x00006430: 0x00000000, 0x14e41686, 0x168614e4, 0x01020000
[ 1297.116092] tg3 0000:01:00.0 eth0: 0x00006440: 0x0000304f, 0x000002e4, 0x00000000, 0x00000000
[ 1297.116094] tg3 0000:01:00.0 eth0: 0x000064c0: 0x00000005, 0x00000002, 0x00000122, 0x00000000
[ 1297.116097] tg3 0000:01:00.0 eth0: 0x000064d0: 0x00000040, 0x00008d80, 0x00000000, 0x00d75e11
[ 1297.116100] tg3 0000:01:00.0 eth0: 0x000064e0: 0x00000031, 0x0000001f, 0x00000000, 0x00000000
[ 1297.116103] tg3 0000:01:00.0 eth0: 0x000064f0: 0x00000002, 0x00000030, 0x00000000, 0x00000000
[ 1297.116106] tg3 0000:01:00.0 eth0: 0x00006500: 0x03e10003, 0x6628e695, 0x0000a820, 0x00000003
[ 1297.116108] tg3 0000:01:00.0 eth0: 0x00006510: 0x00078116, 0x0005810b, 0x00046105, 0x00000000
[ 1297.116111] tg3 0000:01:00.0 eth0: 0x00006550: 0x00000001, 0x02800000, 0x0000000f, 0x00000000
[ 1297.116114] tg3 0000:01:00.0 eth0: 0x00006560: 0x0000000f, 0x00000000, 0x00000000, 0x00000000
[ 1297.116117] tg3 0000:01:00.0 eth0: 0x00006800: 0x04130034, 0x20081082, 0x01009618, 0x4ce7f41c
[ 1297.116120] tg3 0000:01:00.0 eth0: 0x00006810: 0x01022000, 0xffffffff, 0x00000000, 0x00000040
[ 1297.116123] tg3 0000:01:00.0 eth0: 0x00006880: 0x77fff020, 0x00000040, 0x80011686, 0x00000000
[ 1297.116125] tg3 0000:01:00.0 eth0: 0x00006890: 0x00800000, 0x88008000, 0x00000000, 0x00000000
[ 1297.116128] tg3 0000:01:00.0 eth0: 0x000068a0: 0x00000000, 0x00010001, 0x00000000, 0x00000000
[ 1297.116131] tg3 0000:01:00.0 eth0: 0x000068b0: 0x00040000, 0x00000000, 0x00000000, 0x00000000
[ 1297.116134] tg3 0000:01:00.0 eth0: 0x00006900: 0x38a20360, 0x00000000, 0x00000000, 0x00000000
[ 1297.116136] tg3 0000:01:00.0 eth0: 0x00006920: 0x00000000, 0x00000000, 0x00000001, 0x00000000
[ 1297.116139] tg3 0000:01:00.0 eth0: 0x00006c20: 0x00000000, 0x00200000, 0x00000000, 0x00000000
[ 1297.116142] tg3 0000:01:00.0 eth0: 0x00007000: 0x08000188, 0x00000000, 0x00000000, 0x000000c4
[ 1297.116145] tg3 0000:01:00.0 eth0: 0x00007010: 0xd1c00001, 0x02408200, 0x000500db, 0x03000a00
[ 1297.116148] tg3 0000:01:00.0 eth0: 0x00007020: 0x00000000, 0x00000000, 0x00000406, 0x10004000
[ 1297.116151] tg3 0000:01:00.0 eth0: 0x00007030: 0x00010000, 0x000000c8, 0x000c0030, 0x00000000
[ 1297.116154] tg3 0000:01:00.0 eth0: 0x00007500: 0x00000000, 0x00000000, 0x00000080, 0x00000000
[ 1297.116160] tg3 0000:01:00.0 eth0: 0: Host status block [00000001:00000026:(0000:013c:0000):(0000:0059)]
[ 1297.116164] tg3 0000:01:00.0 eth0: 0: NAPI info [00000026:00000026:(0073:0059:01ff):0000:(01d1:0000:000d:0000)]
[ 1297.116168] tg3 0000:01:00.0 eth0: 1: Host status block [00000001:000000cb:(0000:0000:0000):(03f8:0000)]
[ 1297.116172] tg3 0000:01:00.0 eth0: 1: NAPI info [000000cb:000000cb:(0000:0000:01ff):03f8:(0133:0133:00c5:00c5)]
[ 1297.116176] tg3 0000:01:00.0 eth0: 2: Host status block [00000001:0000003b:(0299:0000:0000):(0000:0000)]
[ 1297.116179] tg3 0000:01:00.0 eth0: 2: NAPI info [0000003b:0000003b:(0000:0000:01ff):0299:(0094:0094:0005:0005)]
[ 1297.116182] tg3 0000:01:00.0 eth0: 3: Host status block [00000001:000000a2:(0000:0000:0000):(0000:0000)]
[ 1297.116186] tg3 0000:01:00.0 eth0: 3: NAPI info [000000a2:000000a2:(0000:0000:01ff):01c6:(01c5:01c5:0001:0001)]
[ 1297.116189] tg3 0000:01:00.0 eth0: 4: Host status block [00000001:00000068:(0000:0000:0178):(0000:0000)]
[ 1297.116193] tg3 0000:01:00.0 eth0: 4: NAPI info [00000059:00000059:(0000:0000:01ff):015b:(017d:017d:00de:00de)]
[ 1297.252142] tg3 0000:01:00.0: tg3_stop_block timed out, ofs=1400 enable_bit=2
[ 1297.387101] tg3 0000:01:00.0: tg3_stop_block timed out, ofs=c00 enable_bit=2
[ 1297.414384] tg3 0000:01:00.0 eth0: Link is down
[ 1297.700051] br0: port 1(eth0) entered disabled state
[ 1301.104652] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[ 1301.104656] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[ 1301.104659] tg3 0000:01:00.0 eth0: EEE is enabled
[ 1301.104690] br0: port 1(eth0) entered blocking state
[ 1301.104692] br0: port 1(eth0) entered forwarding state



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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-01 14:30 Gentoo Linux 5.x - Tigon3 Rudolf Spring
@ 2019-10-01 18:17 ` Michael Chan
  2019-10-02 16:35   ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Chan @ 2019-10-01 18:17 UTC (permalink / raw)
  To: Rudolf Spring; +Cc: Siva Reddy Kallam, Netdev

On Tue, Oct 1, 2019 at 7:31 AM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>
> Hello - Since Kernel Version 5.0 (5.0.x/5.1.x/5.2.x and now 5.3.x) my BCM57765 refuses to work correctly. The same system configuration works without problems on the latest stable Gentoo 4.19.72 Kernel. So the changes from 4.19 to 5.0 include some code that is responsible for the hick-up.

These are all the tg3 changes between 4.19 and 5.0:

750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
mac address
3c1bcc8614db net: ethernet: Convert phydev advertize and supported
from u32 to link mode
6fe42e228dc2 tg3: extend PTP gettime function to read system clock
310fc0513ea9 tg3: Fix fall-through annotations
22b7d29926b5 net: ethernet: Add helper to determine if pause
configuration is supported
70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
04b7d41d8046 net: ethernet: Fix up drivers masking pause support
58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed

Most of the changes are related to PHY settings.  I suggest that you
check the link settings, including speed, pause, asym pause, etc
between the working kernel and the non-working kernel to see if there
are differences in the settings.

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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-01 18:17 ` Michael Chan
@ 2019-10-02 16:35   ` Rudolf Spring
       [not found]     ` <CAMet4B7vi6yYu2HZd1Pj7rhtxme8FmT4wbXTjQOnQEqJp0Z_3w@mail.gmail.com>
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-10-02 16:35 UTC (permalink / raw)
  To: Michael Chan; +Cc: Siva Reddy Kallam, Netdev

The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?

0000:01:00.0: enabling device (0000 -> 0002)
[    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
[    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled

ethtool eth0
Settings for eth0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Full 
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: off
	Supports Wake-on: g
	Wake-on: g
	Current message level: 0x000000ff (255)
			       drv probe link timer ifdown ifup rx_err tx_err
	Link detected: yes

ethtool -a eth0
Pause parameters for eth0:
Autonegotiate:	on
RX:		on
TX:		on
RX negotiated:	on
TX negotiated:	on

ethtool -g eth0
Ring parameters for eth0:
Pre-set maximums:
RX:		511
RX Mini:	0
RX Jumbo:	255
TX:		511
Current hardware settings:
RX:		200
RX Mini:	0
RX Jumbo:	100
TX:		511

ethtool -c eth0
Coalesce parameters for eth0:
Adaptive RX: off  TX: off
stats-block-usecs: 0
sample-interval: 0
pkt-rate-low: 0
pkt-rate-high: 0

rx-usecs: 20
rx-frames: 5
rx-usecs-irq: 0
rx-frames-irq: 5

tx-usecs: 72
tx-frames: 53
tx-usecs-irq: 0
tx-frames-irq: 5

rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0

rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0

ethtool -k eth0
Features for eth0:
rx-checksumming: on
tx-checksumming: on
	tx-checksum-ipv4: on
	tx-checksum-ip-generic: off [fixed]
	tx-checksum-ipv6: on
	tx-checksum-fcoe-crc: off [fixed]
	tx-checksum-sctp: off [fixed]
scatter-gather: on
	tx-scatter-gather: on
	tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: on
	tx-tcp-segmentation: on
	tx-tcp-ecn-segmentation: on
	tx-tcp-mangleid-segmentation: off
	tx-tcp6-segmentation: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: on [fixed]
tx-vlan-offload: on [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: on
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-gre-csum-segmentation: off [fixed]
tx-ipxip4-segmentation: off [fixed]
tx-ipxip6-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-udp_tnl-csum-segmentation: off [fixed]
tx-gso-partial: off [fixed]
tx-sctp-segmentation: off [fixed]
tx-esp-segmentation: off [fixed]
tx-udp-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
hw-tc-offload: off [fixed]
esp-hw-offload: off [fixed]
esp-tx-csum-hw-offload: off [fixed]
rx-udp_tunnel-port-offload: off [fixed]
tls-hw-tx-offload: off [fixed]
tls-hw-rx-offload: off [fixed]
rx-gro-hw: off [fixed]
tls-hw-record: off [fixed]

ethtool -n eth0
4 RX rings available
rxclass: Cannot get RX class rule count: Operation not supported
RX classification rule retrieval failed

ethtool -t eth0
The test result is PASS
The test extra info:
nvram test        (online) 	 0
link test         (online) 	 0
register test     (offline)	 0
memory test       (offline)	 0
mac loopback test (offline)	 0
phy loopback test (offline)	 0
ext loopback test (offline)	 0
interrupt test    (offline)	 0

ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
	software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
	software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
	software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes:
	off                   (HWTSTAMP_TX_OFF)
	on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
	none                  (HWTSTAMP_FILTER_NONE)
	ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
	ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
	ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)

ethtool -l eth0
Channel parameters for eth0:
Pre-set maximums:
RX:		4
TX:		1
Other:		0
Combined:	0
Current hardware settings:
RX:		4
TX:		1
Other:		0
Combined:	0

ethtool --show-eee eth0
EEE Settings for eth0:
	EEE status: enabled - active
	Tx LPI: 2047 (us)
	Supported EEE link modes:  100baseT/Full 
	                           1000baseT/Full 
	Advertised EEE link modes:  100baseT/Full 
	                            1000baseT/Full 
	Link partner advertised EEE link modes:  100baseT/Full 
	                                         1000baseT/Full 

> These are all the tg3 changes between 4.19 and 5.0:
> 
> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
> mac address
> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
> from u32 to link mode
> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
> 310fc0513ea9 tg3: Fix fall-through annotations
> 22b7d29926b5 net: ethernet: Add helper to determine if pause
> configuration is supported
> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
> 
> Most of the changes are related to PHY settings.  I suggest that you
> check the link settings, including speed, pause, asym pause, etc
> between the working kernel and the non-working kernel to see if there
> are differences in the settings.


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

* Re: Gentoo Linux 5.x - Tigon3
       [not found]     ` <CAMet4B7vi6yYu2HZd1Pj7rhtxme8FmT4wbXTjQOnQEqJp0Z_3w@mail.gmail.com>
@ 2019-10-04 13:53       ` Rudolf Spring
  2019-10-17 17:33         ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-10-04 13:53 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

With Kernel 5.3.2. Interesting all are tx_mac_errors.

ifconfig  eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
        RX packets 1649204  bytes 775261068 (739.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1144621  bytes 1241414276 (1.1 GiB)
        TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

ethtool -S eth0
NIC statistics:
     rx_octets: 752756285
     rx_fragments: 0
     rx_ucast_packets: 1132211
     rx_mcast_packets: 128115
     rx_bcast_packets: 372162
     rx_fcs_errors: 0
     rx_align_errors: 0
     rx_xon_pause_rcvd: 0
     rx_xoff_pause_rcvd: 0
     rx_mac_ctrl_rcvd: 0
     rx_xoff_entered: 0
     rx_frame_too_long_errors: 0
     rx_jabbers: 0
     rx_undersize_packets: 0
     rx_in_length_errors: 0
     rx_out_length_errors: 0
     rx_64_or_less_octet_packets: 0
     rx_65_to_127_octet_packets: 0
     rx_128_to_255_octet_packets: 0
     rx_256_to_511_octet_packets: 0
     rx_512_to_1023_octet_packets: 0
     rx_1024_to_1522_octet_packets: 0
     rx_1523_to_2047_octet_packets: 0
     rx_2048_to_4095_octet_packets: 0
     rx_4096_to_8191_octet_packets: 0
     rx_8192_to_9022_octet_packets: 0
     tx_octets: 1236703101
     tx_collisions: 0
     tx_xon_sent: 0
     tx_xoff_sent: 0
     tx_flow_control: 0
     tx_mac_errors: 369
     tx_single_collisions: 0
     tx_mult_collisions: 0
     tx_deferred: 0
     tx_excessive_collisions: 0
     tx_late_collisions: 0
     tx_collide_2times: 0
     tx_collide_3times: 0
     tx_collide_4times: 0
     tx_collide_5times: 0
     tx_collide_6times: 0
     tx_collide_7times: 0
     tx_collide_8times: 0
     tx_collide_9times: 0
     tx_collide_10times: 0
     tx_collide_11times: 0
     tx_collide_12times: 0
     tx_collide_13times: 0
     tx_collide_14times: 0
     tx_collide_15times: 0
     tx_ucast_packets: 986854
     tx_mcast_packets: 146951
     tx_bcast_packets: 1117
     tx_carrier_sense_errors: 0
     tx_discards: 0
     tx_errors: 0
     dma_writeq_full: 0
     dma_write_prioq_full: 0
     rxbds_empty: 0
     rx_discards: 0
     rx_errors: 0
     rx_threshold_hit: 0
     dma_readq_full: 0
     dma_read_prioq_full: 0
     tx_comp_queue_full: 0
     ring_set_send_prod_index: 0
     ring_status_update: 0
     nic_irqs: 0
     nic_avoided_irqs: 0
     nic_tx_threshold_hit: 0
     mbuf_lwm_thresh_hit: 0

> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
> 
> 
> 
> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
> Can you please provide the output of "ethtool -S eth0" command?
> In the mean time, I will review the register dump and also try to reproduce in our lab.
> 0000:01:00.0: enabling device (0000 -> 0002)
> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
> 
> ethtool eth0
> Settings for eth0:
>         Supported ports: [ TP ]
>         Supported link modes:   10baseT/Half 10baseT/Full 
>                                 100baseT/Half 100baseT/Full 
>                                 1000baseT/Half 1000baseT/Full 
>         Supported pause frame use: No
>         Supports auto-negotiation: Yes
>         Supported FEC modes: Not reported
>         Advertised link modes:  10baseT/Half 10baseT/Full 
>                                 100baseT/Half 100baseT/Full 
>                                 1000baseT/Half 1000baseT/Full 
>         Advertised pause frame use: Symmetric
>         Advertised auto-negotiation: Yes
>         Advertised FEC modes: Not reported
>         Link partner advertised link modes:  10baseT/Half 10baseT/Full 
>                                              100baseT/Half 100baseT/Full 
>                                              1000baseT/Full 
>         Link partner advertised pause frame use: Symmetric
>         Link partner advertised auto-negotiation: Yes
>         Link partner advertised FEC modes: Not reported
>         Speed: 1000Mb/s
>         Duplex: Full
>         Port: Twisted Pair
>         PHYAD: 1
>         Transceiver: internal
>         Auto-negotiation: on
>         MDI-X: off
>         Supports Wake-on: g
>         Wake-on: g
>         Current message level: 0x000000ff (255)
>                                drv probe link timer ifdown ifup rx_err tx_err
>         Link detected: yes
> 
> ethtool -a eth0
> Pause parameters for eth0:
> Autonegotiate:  on
> RX:             on
> TX:             on
> RX negotiated:  on
> TX negotiated:  on
> 
> ethtool -g eth0
> Ring parameters for eth0:
> Pre-set maximums:
> RX:             511
> RX Mini:        0
> RX Jumbo:       255
> TX:             511
> Current hardware settings:
> RX:             200
> RX Mini:        0
> RX Jumbo:       100
> TX:             511
> 
> ethtool -c eth0
> Coalesce parameters for eth0:
> Adaptive RX: off  TX: off
> stats-block-usecs: 0
> sample-interval: 0
> pkt-rate-low: 0
> pkt-rate-high: 0
> 
> rx-usecs: 20
> rx-frames: 5
> rx-usecs-irq: 0
> rx-frames-irq: 5
> 
> tx-usecs: 72
> tx-frames: 53
> tx-usecs-irq: 0
> tx-frames-irq: 5
> 
> rx-usecs-low: 0
> rx-frame-low: 0
> tx-usecs-low: 0
> tx-frame-low: 0
> 
> rx-usecs-high: 0
> rx-frame-high: 0
> tx-usecs-high: 0
> tx-frame-high: 0
> 
> ethtool -k eth0
> Features for eth0:
> rx-checksumming: on
> tx-checksumming: on
>         tx-checksum-ipv4: on
>         tx-checksum-ip-generic: off [fixed]
>         tx-checksum-ipv6: on
>         tx-checksum-fcoe-crc: off [fixed]
>         tx-checksum-sctp: off [fixed]
> scatter-gather: on
>         tx-scatter-gather: on
>         tx-scatter-gather-fraglist: off [fixed]
> tcp-segmentation-offload: on
>         tx-tcp-segmentation: on
>         tx-tcp-ecn-segmentation: on
>         tx-tcp-mangleid-segmentation: off
>         tx-tcp6-segmentation: on
> udp-fragmentation-offload: off
> generic-segmentation-offload: on
> generic-receive-offload: on
> large-receive-offload: off [fixed]
> rx-vlan-offload: on [fixed]
> tx-vlan-offload: on [fixed]
> ntuple-filters: off [fixed]
> receive-hashing: off [fixed]
> highdma: on
> rx-vlan-filter: off [fixed]
> vlan-challenged: off [fixed]
> tx-lockless: off [fixed]
> netns-local: off [fixed]
> tx-gso-robust: off [fixed]
> tx-fcoe-segmentation: off [fixed]
> tx-gre-segmentation: off [fixed]
> tx-gre-csum-segmentation: off [fixed]
> tx-ipxip4-segmentation: off [fixed]
> tx-ipxip6-segmentation: off [fixed]
> tx-udp_tnl-segmentation: off [fixed]
> tx-udp_tnl-csum-segmentation: off [fixed]
> tx-gso-partial: off [fixed]
> tx-sctp-segmentation: off [fixed]
> tx-esp-segmentation: off [fixed]
> tx-udp-segmentation: off [fixed]
> fcoe-mtu: off [fixed]
> tx-nocache-copy: off
> loopback: off [fixed]
> rx-fcs: off [fixed]
> rx-all: off [fixed]
> tx-vlan-stag-hw-insert: off [fixed]
> rx-vlan-stag-hw-parse: off [fixed]
> rx-vlan-stag-filter: off [fixed]
> l2-fwd-offload: off [fixed]
> hw-tc-offload: off [fixed]
> esp-hw-offload: off [fixed]
> esp-tx-csum-hw-offload: off [fixed]
> rx-udp_tunnel-port-offload: off [fixed]
> tls-hw-tx-offload: off [fixed]
> tls-hw-rx-offload: off [fixed]
> rx-gro-hw: off [fixed]
> tls-hw-record: off [fixed]
> 
> ethtool -n eth0
> 4 RX rings available
> rxclass: Cannot get RX class rule count: Operation not supported
> RX classification rule retrieval failed
> 
> ethtool -t eth0
> The test result is PASS
> The test extra info:
> nvram test        (online)       0
> link test         (online)       0
> register test     (offline)      0
> memory test       (offline)      0
> mac loopback test (offline)      0
> phy loopback test (offline)      0
> ext loopback test (offline)      0
> interrupt test    (offline)      0
> 
> ethtool -T eth0
> Time stamping parameters for eth0:
> Capabilities:
>         software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>         software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>         software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
> PTP Hardware Clock: none
> Hardware Transmit Timestamp Modes:
>         off                   (HWTSTAMP_TX_OFF)
>         on                    (HWTSTAMP_TX_ON)
> Hardware Receive Filter Modes:
>         none                  (HWTSTAMP_FILTER_NONE)
>         ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>         ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>         ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
> 
> ethtool -l eth0
> Channel parameters for eth0:
> Pre-set maximums:
> RX:             4
> TX:             1
> Other:          0
> Combined:       0
> Current hardware settings:
> RX:             4
> TX:             1
> Other:          0
> Combined:       0
> 
> ethtool --show-eee eth0
> EEE Settings for eth0:
>         EEE status: enabled - active
>         Tx LPI: 2047 (us)
>         Supported EEE link modes:  100baseT/Full 
>                                    1000baseT/Full 
>         Advertised EEE link modes:  100baseT/Full 
>                                     1000baseT/Full 
>         Link partner advertised EEE link modes:  100baseT/Full 
>                                                  1000baseT/Full 
> 
> > These are all the tg3 changes between 4.19 and 5.0:
> > 
> > 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
> > cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
> > mac address
> > 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
> > from u32 to link mode
> > 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
> > 310fc0513ea9 tg3: Fix fall-through annotations
> > 22b7d29926b5 net: ethernet: Add helper to determine if pause
> > configuration is supported
> > 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
> > af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
> > 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
> > 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
> > 
> > Most of the changes are related to PHY settings.  I suggest that you
> > check the link settings, including speed, pause, asym pause, etc
> > between the working kernel and the non-working kernel to see if there
> > are differences in the settings.
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-04 13:53       ` Rudolf Spring
@ 2019-10-17 17:33         ` Rudolf Spring
  2019-10-18  6:51           ` Siva Reddy Kallam
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-10-17 17:33 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
        RX packets 13844854  bytes 2298858755 (2.1 GiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 14831625  bytes 75684684566 (70.4 GiB)
        TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

     tx_octets: 75686159197
     tx_collisions: 0
     tx_xon_sent: 0
     tx_xoff_sent: 0
     tx_flow_control: 0
     tx_mac_errors: 158
     tx_single_collisions: 0
     tx_mult_collisions: 0
     tx_deferred: 0
     tx_excessive_collisions: 0
     tx_late_collisions: 0
     tx_collide_2times: 0
     tx_collide_3times: 0
     tx_collide_4times: 0
     tx_collide_5times: 0
     tx_collide_6times: 0
     tx_collide_7times: 0
     tx_collide_8times: 0
     tx_collide_9times: 0
     tx_collide_10times: 0
     tx_collide_11times: 0
     tx_collide_12times: 0
     tx_collide_13times: 0
     tx_collide_14times: 0
     tx_collide_15times: 0
     tx_ucast_packets: 14400082
     tx_mcast_packets: 435104
     tx_bcast_packets: 1542
     tx_carrier_sense_errors: 0
     tx_discards: 0
     tx_errors: 0


> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> 
> With Kernel 5.3.2. Interesting all are tx_mac_errors.
> 
> ifconfig  eth0
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>        RX packets 1649204  bytes 775261068 (739.3 MiB)
>        RX errors 0  dropped 0  overruns 0  frame 0
>        TX packets 1144621  bytes 1241414276 (1.1 GiB)
>        TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>        device interrupt 16  
> 
> ethtool -S eth0
> NIC statistics:
>     rx_octets: 752756285
>     rx_fragments: 0
>     rx_ucast_packets: 1132211
>     rx_mcast_packets: 128115
>     rx_bcast_packets: 372162
>     rx_fcs_errors: 0
>     rx_align_errors: 0
>     rx_xon_pause_rcvd: 0
>     rx_xoff_pause_rcvd: 0
>     rx_mac_ctrl_rcvd: 0
>     rx_xoff_entered: 0
>     rx_frame_too_long_errors: 0
>     rx_jabbers: 0
>     rx_undersize_packets: 0
>     rx_in_length_errors: 0
>     rx_out_length_errors: 0
>     rx_64_or_less_octet_packets: 0
>     rx_65_to_127_octet_packets: 0
>     rx_128_to_255_octet_packets: 0
>     rx_256_to_511_octet_packets: 0
>     rx_512_to_1023_octet_packets: 0
>     rx_1024_to_1522_octet_packets: 0
>     rx_1523_to_2047_octet_packets: 0
>     rx_2048_to_4095_octet_packets: 0
>     rx_4096_to_8191_octet_packets: 0
>     rx_8192_to_9022_octet_packets: 0
>     tx_octets: 1236703101
>     tx_collisions: 0
>     tx_xon_sent: 0
>     tx_xoff_sent: 0
>     tx_flow_control: 0
>     tx_mac_errors: 369
>     tx_single_collisions: 0
>     tx_mult_collisions: 0
>     tx_deferred: 0
>     tx_excessive_collisions: 0
>     tx_late_collisions: 0
>     tx_collide_2times: 0
>     tx_collide_3times: 0
>     tx_collide_4times: 0
>     tx_collide_5times: 0
>     tx_collide_6times: 0
>     tx_collide_7times: 0
>     tx_collide_8times: 0
>     tx_collide_9times: 0
>     tx_collide_10times: 0
>     tx_collide_11times: 0
>     tx_collide_12times: 0
>     tx_collide_13times: 0
>     tx_collide_14times: 0
>     tx_collide_15times: 0
>     tx_ucast_packets: 986854
>     tx_mcast_packets: 146951
>     tx_bcast_packets: 1117
>     tx_carrier_sense_errors: 0
>     tx_discards: 0
>     tx_errors: 0
>     dma_writeq_full: 0
>     dma_write_prioq_full: 0
>     rxbds_empty: 0
>     rx_discards: 0
>     rx_errors: 0
>     rx_threshold_hit: 0
>     dma_readq_full: 0
>     dma_read_prioq_full: 0
>     tx_comp_queue_full: 0
>     ring_set_send_prod_index: 0
>     ring_status_update: 0
>     nic_irqs: 0
>     nic_avoided_irqs: 0
>     nic_tx_threshold_hit: 0
>     mbuf_lwm_thresh_hit: 0
> 
>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>> 
>> 
>> 
>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>> Can you please provide the output of "ethtool -S eth0" command?
>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>> 0000:01:00.0: enabling device (0000 -> 0002)
>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>> 
>> ethtool eth0
>> Settings for eth0:
>>        Supported ports: [ TP ]
>>        Supported link modes:   10baseT/Half 10baseT/Full 
>>                                100baseT/Half 100baseT/Full 
>>                                1000baseT/Half 1000baseT/Full 
>>        Supported pause frame use: No
>>        Supports auto-negotiation: Yes
>>        Supported FEC modes: Not reported
>>        Advertised link modes:  10baseT/Half 10baseT/Full 
>>                                100baseT/Half 100baseT/Full 
>>                                1000baseT/Half 1000baseT/Full 
>>        Advertised pause frame use: Symmetric
>>        Advertised auto-negotiation: Yes
>>        Advertised FEC modes: Not reported
>>        Link partner advertised link modes:  10baseT/Half 10baseT/Full 
>>                                             100baseT/Half 100baseT/Full 
>>                                             1000baseT/Full 
>>        Link partner advertised pause frame use: Symmetric
>>        Link partner advertised auto-negotiation: Yes
>>        Link partner advertised FEC modes: Not reported
>>        Speed: 1000Mb/s
>>        Duplex: Full
>>        Port: Twisted Pair
>>        PHYAD: 1
>>        Transceiver: internal
>>        Auto-negotiation: on
>>        MDI-X: off
>>        Supports Wake-on: g
>>        Wake-on: g
>>        Current message level: 0x000000ff (255)
>>                               drv probe link timer ifdown ifup rx_err tx_err
>>        Link detected: yes
>> 
>> ethtool -a eth0
>> Pause parameters for eth0:
>> Autonegotiate:  on
>> RX:             on
>> TX:             on
>> RX negotiated:  on
>> TX negotiated:  on
>> 
>> ethtool -g eth0
>> Ring parameters for eth0:
>> Pre-set maximums:
>> RX:             511
>> RX Mini:        0
>> RX Jumbo:       255
>> TX:             511
>> Current hardware settings:
>> RX:             200
>> RX Mini:        0
>> RX Jumbo:       100
>> TX:             511
>> 
>> ethtool -c eth0
>> Coalesce parameters for eth0:
>> Adaptive RX: off  TX: off
>> stats-block-usecs: 0
>> sample-interval: 0
>> pkt-rate-low: 0
>> pkt-rate-high: 0
>> 
>> rx-usecs: 20
>> rx-frames: 5
>> rx-usecs-irq: 0
>> rx-frames-irq: 5
>> 
>> tx-usecs: 72
>> tx-frames: 53
>> tx-usecs-irq: 0
>> tx-frames-irq: 5
>> 
>> rx-usecs-low: 0
>> rx-frame-low: 0
>> tx-usecs-low: 0
>> tx-frame-low: 0
>> 
>> rx-usecs-high: 0
>> rx-frame-high: 0
>> tx-usecs-high: 0
>> tx-frame-high: 0
>> 
>> ethtool -k eth0
>> Features for eth0:
>> rx-checksumming: on
>> tx-checksumming: on
>>        tx-checksum-ipv4: on
>>        tx-checksum-ip-generic: off [fixed]
>>        tx-checksum-ipv6: on
>>        tx-checksum-fcoe-crc: off [fixed]
>>        tx-checksum-sctp: off [fixed]
>> scatter-gather: on
>>        tx-scatter-gather: on
>>        tx-scatter-gather-fraglist: off [fixed]
>> tcp-segmentation-offload: on
>>        tx-tcp-segmentation: on
>>        tx-tcp-ecn-segmentation: on
>>        tx-tcp-mangleid-segmentation: off
>>        tx-tcp6-segmentation: on
>> udp-fragmentation-offload: off
>> generic-segmentation-offload: on
>> generic-receive-offload: on
>> large-receive-offload: off [fixed]
>> rx-vlan-offload: on [fixed]
>> tx-vlan-offload: on [fixed]
>> ntuple-filters: off [fixed]
>> receive-hashing: off [fixed]
>> highdma: on
>> rx-vlan-filter: off [fixed]
>> vlan-challenged: off [fixed]
>> tx-lockless: off [fixed]
>> netns-local: off [fixed]
>> tx-gso-robust: off [fixed]
>> tx-fcoe-segmentation: off [fixed]
>> tx-gre-segmentation: off [fixed]
>> tx-gre-csum-segmentation: off [fixed]
>> tx-ipxip4-segmentation: off [fixed]
>> tx-ipxip6-segmentation: off [fixed]
>> tx-udp_tnl-segmentation: off [fixed]
>> tx-udp_tnl-csum-segmentation: off [fixed]
>> tx-gso-partial: off [fixed]
>> tx-sctp-segmentation: off [fixed]
>> tx-esp-segmentation: off [fixed]
>> tx-udp-segmentation: off [fixed]
>> fcoe-mtu: off [fixed]
>> tx-nocache-copy: off
>> loopback: off [fixed]
>> rx-fcs: off [fixed]
>> rx-all: off [fixed]
>> tx-vlan-stag-hw-insert: off [fixed]
>> rx-vlan-stag-hw-parse: off [fixed]
>> rx-vlan-stag-filter: off [fixed]
>> l2-fwd-offload: off [fixed]
>> hw-tc-offload: off [fixed]
>> esp-hw-offload: off [fixed]
>> esp-tx-csum-hw-offload: off [fixed]
>> rx-udp_tunnel-port-offload: off [fixed]
>> tls-hw-tx-offload: off [fixed]
>> tls-hw-rx-offload: off [fixed]
>> rx-gro-hw: off [fixed]
>> tls-hw-record: off [fixed]
>> 
>> ethtool -n eth0
>> 4 RX rings available
>> rxclass: Cannot get RX class rule count: Operation not supported
>> RX classification rule retrieval failed
>> 
>> ethtool -t eth0
>> The test result is PASS
>> The test extra info:
>> nvram test        (online)       0
>> link test         (online)       0
>> register test     (offline)      0
>> memory test       (offline)      0
>> mac loopback test (offline)      0
>> phy loopback test (offline)      0
>> ext loopback test (offline)      0
>> interrupt test    (offline)      0
>> 
>> ethtool -T eth0
>> Time stamping parameters for eth0:
>> Capabilities:
>>        software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>        software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>        software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>> PTP Hardware Clock: none
>> Hardware Transmit Timestamp Modes:
>>        off                   (HWTSTAMP_TX_OFF)
>>        on                    (HWTSTAMP_TX_ON)
>> Hardware Receive Filter Modes:
>>        none                  (HWTSTAMP_FILTER_NONE)
>>        ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>        ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>        ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>> 
>> ethtool -l eth0
>> Channel parameters for eth0:
>> Pre-set maximums:
>> RX:             4
>> TX:             1
>> Other:          0
>> Combined:       0
>> Current hardware settings:
>> RX:             4
>> TX:             1
>> Other:          0
>> Combined:       0
>> 
>> ethtool --show-eee eth0
>> EEE Settings for eth0:
>>        EEE status: enabled - active
>>        Tx LPI: 2047 (us)
>>        Supported EEE link modes:  100baseT/Full 
>>                                   1000baseT/Full 
>>        Advertised EEE link modes:  100baseT/Full 
>>                                    1000baseT/Full 
>>        Link partner advertised EEE link modes:  100baseT/Full 
>>                                                 1000baseT/Full 
>> 
>>> These are all the tg3 changes between 4.19 and 5.0:
>>> 
>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>> mac address
>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>> from u32 to link mode
>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>> configuration is supported
>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>> 
>>> Most of the changes are related to PHY settings.  I suggest that you
>>> check the link settings, including speed, pause, asym pause, etc
>>> between the working kernel and the non-working kernel to see if there
>>> are differences in the settings.
>> 
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-17 17:33         ` Rudolf Spring
@ 2019-10-18  6:51           ` Siva Reddy Kallam
  2019-10-31 11:49             ` Siva Reddy Kallam
  0 siblings, 1 reply; 13+ messages in thread
From: Siva Reddy Kallam @ 2019-10-18  6:51 UTC (permalink / raw)
  To: Rudolf Spring; +Cc: Michael Chan, Netdev

On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>
> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>
Yes. We are trying to reproduce in our local lab.  We will update once
we have reproduction.
>
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>         ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>         RX packets 13844854  bytes 2298858755 (2.1 GiB)
>         RX errors 0  dropped 2  overruns 0  frame 0
>         TX packets 14831625  bytes 75684684566 (70.4 GiB)
>         TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>         device interrupt 16
>
>      tx_octets: 75686159197
>      tx_collisions: 0
>      tx_xon_sent: 0
>      tx_xoff_sent: 0
>      tx_flow_control: 0
>      tx_mac_errors: 158
>      tx_single_collisions: 0
>      tx_mult_collisions: 0
>      tx_deferred: 0
>      tx_excessive_collisions: 0
>      tx_late_collisions: 0
>      tx_collide_2times: 0
>      tx_collide_3times: 0
>      tx_collide_4times: 0
>      tx_collide_5times: 0
>      tx_collide_6times: 0
>      tx_collide_7times: 0
>      tx_collide_8times: 0
>      tx_collide_9times: 0
>      tx_collide_10times: 0
>      tx_collide_11times: 0
>      tx_collide_12times: 0
>      tx_collide_13times: 0
>      tx_collide_14times: 0
>      tx_collide_15times: 0
>      tx_ucast_packets: 14400082
>      tx_mcast_packets: 435104
>      tx_bcast_packets: 1542
>      tx_carrier_sense_errors: 0
>      tx_discards: 0
>      tx_errors: 0
>
>
> > On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> >
> > With Kernel 5.3.2. Interesting all are tx_mac_errors.
> >
> > ifconfig  eth0
> > eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
> >        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
> >        RX packets 1649204  bytes 775261068 (739.3 MiB)
> >        RX errors 0  dropped 0  overruns 0  frame 0
> >        TX packets 1144621  bytes 1241414276 (1.1 GiB)
> >        TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
> >        device interrupt 16
> >
> > ethtool -S eth0
> > NIC statistics:
> >     rx_octets: 752756285
> >     rx_fragments: 0
> >     rx_ucast_packets: 1132211
> >     rx_mcast_packets: 128115
> >     rx_bcast_packets: 372162
> >     rx_fcs_errors: 0
> >     rx_align_errors: 0
> >     rx_xon_pause_rcvd: 0
> >     rx_xoff_pause_rcvd: 0
> >     rx_mac_ctrl_rcvd: 0
> >     rx_xoff_entered: 0
> >     rx_frame_too_long_errors: 0
> >     rx_jabbers: 0
> >     rx_undersize_packets: 0
> >     rx_in_length_errors: 0
> >     rx_out_length_errors: 0
> >     rx_64_or_less_octet_packets: 0
> >     rx_65_to_127_octet_packets: 0
> >     rx_128_to_255_octet_packets: 0
> >     rx_256_to_511_octet_packets: 0
> >     rx_512_to_1023_octet_packets: 0
> >     rx_1024_to_1522_octet_packets: 0
> >     rx_1523_to_2047_octet_packets: 0
> >     rx_2048_to_4095_octet_packets: 0
> >     rx_4096_to_8191_octet_packets: 0
> >     rx_8192_to_9022_octet_packets: 0
> >     tx_octets: 1236703101
> >     tx_collisions: 0
> >     tx_xon_sent: 0
> >     tx_xoff_sent: 0
> >     tx_flow_control: 0
> >     tx_mac_errors: 369
> >     tx_single_collisions: 0
> >     tx_mult_collisions: 0
> >     tx_deferred: 0
> >     tx_excessive_collisions: 0
> >     tx_late_collisions: 0
> >     tx_collide_2times: 0
> >     tx_collide_3times: 0
> >     tx_collide_4times: 0
> >     tx_collide_5times: 0
> >     tx_collide_6times: 0
> >     tx_collide_7times: 0
> >     tx_collide_8times: 0
> >     tx_collide_9times: 0
> >     tx_collide_10times: 0
> >     tx_collide_11times: 0
> >     tx_collide_12times: 0
> >     tx_collide_13times: 0
> >     tx_collide_14times: 0
> >     tx_collide_15times: 0
> >     tx_ucast_packets: 986854
> >     tx_mcast_packets: 146951
> >     tx_bcast_packets: 1117
> >     tx_carrier_sense_errors: 0
> >     tx_discards: 0
> >     tx_errors: 0
> >     dma_writeq_full: 0
> >     dma_write_prioq_full: 0
> >     rxbds_empty: 0
> >     rx_discards: 0
> >     rx_errors: 0
> >     rx_threshold_hit: 0
> >     dma_readq_full: 0
> >     dma_read_prioq_full: 0
> >     tx_comp_queue_full: 0
> >     ring_set_send_prod_index: 0
> >     ring_status_update: 0
> >     nic_irqs: 0
> >     nic_avoided_irqs: 0
> >     nic_tx_threshold_hit: 0
> >     mbuf_lwm_thresh_hit: 0
> >
> >> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
> >>
> >>
> >>
> >> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
> >> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
> >> Can you please provide the output of "ethtool -S eth0" command?
> >> In the mean time, I will review the register dump and also try to reproduce in our lab.
> >> 0000:01:00.0: enabling device (0000 -> 0002)
> >> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
> >> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
> >> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
> >> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
> >> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> >> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> >> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
> >>
> >> ethtool eth0
> >> Settings for eth0:
> >>        Supported ports: [ TP ]
> >>        Supported link modes:   10baseT/Half 10baseT/Full
> >>                                100baseT/Half 100baseT/Full
> >>                                1000baseT/Half 1000baseT/Full
> >>        Supported pause frame use: No
> >>        Supports auto-negotiation: Yes
> >>        Supported FEC modes: Not reported
> >>        Advertised link modes:  10baseT/Half 10baseT/Full
> >>                                100baseT/Half 100baseT/Full
> >>                                1000baseT/Half 1000baseT/Full
> >>        Advertised pause frame use: Symmetric
> >>        Advertised auto-negotiation: Yes
> >>        Advertised FEC modes: Not reported
> >>        Link partner advertised link modes:  10baseT/Half 10baseT/Full
> >>                                             100baseT/Half 100baseT/Full
> >>                                             1000baseT/Full
> >>        Link partner advertised pause frame use: Symmetric
> >>        Link partner advertised auto-negotiation: Yes
> >>        Link partner advertised FEC modes: Not reported
> >>        Speed: 1000Mb/s
> >>        Duplex: Full
> >>        Port: Twisted Pair
> >>        PHYAD: 1
> >>        Transceiver: internal
> >>        Auto-negotiation: on
> >>        MDI-X: off
> >>        Supports Wake-on: g
> >>        Wake-on: g
> >>        Current message level: 0x000000ff (255)
> >>                               drv probe link timer ifdown ifup rx_err tx_err
> >>        Link detected: yes
> >>
> >> ethtool -a eth0
> >> Pause parameters for eth0:
> >> Autonegotiate:  on
> >> RX:             on
> >> TX:             on
> >> RX negotiated:  on
> >> TX negotiated:  on
> >>
> >> ethtool -g eth0
> >> Ring parameters for eth0:
> >> Pre-set maximums:
> >> RX:             511
> >> RX Mini:        0
> >> RX Jumbo:       255
> >> TX:             511
> >> Current hardware settings:
> >> RX:             200
> >> RX Mini:        0
> >> RX Jumbo:       100
> >> TX:             511
> >>
> >> ethtool -c eth0
> >> Coalesce parameters for eth0:
> >> Adaptive RX: off  TX: off
> >> stats-block-usecs: 0
> >> sample-interval: 0
> >> pkt-rate-low: 0
> >> pkt-rate-high: 0
> >>
> >> rx-usecs: 20
> >> rx-frames: 5
> >> rx-usecs-irq: 0
> >> rx-frames-irq: 5
> >>
> >> tx-usecs: 72
> >> tx-frames: 53
> >> tx-usecs-irq: 0
> >> tx-frames-irq: 5
> >>
> >> rx-usecs-low: 0
> >> rx-frame-low: 0
> >> tx-usecs-low: 0
> >> tx-frame-low: 0
> >>
> >> rx-usecs-high: 0
> >> rx-frame-high: 0
> >> tx-usecs-high: 0
> >> tx-frame-high: 0
> >>
> >> ethtool -k eth0
> >> Features for eth0:
> >> rx-checksumming: on
> >> tx-checksumming: on
> >>        tx-checksum-ipv4: on
> >>        tx-checksum-ip-generic: off [fixed]
> >>        tx-checksum-ipv6: on
> >>        tx-checksum-fcoe-crc: off [fixed]
> >>        tx-checksum-sctp: off [fixed]
> >> scatter-gather: on
> >>        tx-scatter-gather: on
> >>        tx-scatter-gather-fraglist: off [fixed]
> >> tcp-segmentation-offload: on
> >>        tx-tcp-segmentation: on
> >>        tx-tcp-ecn-segmentation: on
> >>        tx-tcp-mangleid-segmentation: off
> >>        tx-tcp6-segmentation: on
> >> udp-fragmentation-offload: off
> >> generic-segmentation-offload: on
> >> generic-receive-offload: on
> >> large-receive-offload: off [fixed]
> >> rx-vlan-offload: on [fixed]
> >> tx-vlan-offload: on [fixed]
> >> ntuple-filters: off [fixed]
> >> receive-hashing: off [fixed]
> >> highdma: on
> >> rx-vlan-filter: off [fixed]
> >> vlan-challenged: off [fixed]
> >> tx-lockless: off [fixed]
> >> netns-local: off [fixed]
> >> tx-gso-robust: off [fixed]
> >> tx-fcoe-segmentation: off [fixed]
> >> tx-gre-segmentation: off [fixed]
> >> tx-gre-csum-segmentation: off [fixed]
> >> tx-ipxip4-segmentation: off [fixed]
> >> tx-ipxip6-segmentation: off [fixed]
> >> tx-udp_tnl-segmentation: off [fixed]
> >> tx-udp_tnl-csum-segmentation: off [fixed]
> >> tx-gso-partial: off [fixed]
> >> tx-sctp-segmentation: off [fixed]
> >> tx-esp-segmentation: off [fixed]
> >> tx-udp-segmentation: off [fixed]
> >> fcoe-mtu: off [fixed]
> >> tx-nocache-copy: off
> >> loopback: off [fixed]
> >> rx-fcs: off [fixed]
> >> rx-all: off [fixed]
> >> tx-vlan-stag-hw-insert: off [fixed]
> >> rx-vlan-stag-hw-parse: off [fixed]
> >> rx-vlan-stag-filter: off [fixed]
> >> l2-fwd-offload: off [fixed]
> >> hw-tc-offload: off [fixed]
> >> esp-hw-offload: off [fixed]
> >> esp-tx-csum-hw-offload: off [fixed]
> >> rx-udp_tunnel-port-offload: off [fixed]
> >> tls-hw-tx-offload: off [fixed]
> >> tls-hw-rx-offload: off [fixed]
> >> rx-gro-hw: off [fixed]
> >> tls-hw-record: off [fixed]
> >>
> >> ethtool -n eth0
> >> 4 RX rings available
> >> rxclass: Cannot get RX class rule count: Operation not supported
> >> RX classification rule retrieval failed
> >>
> >> ethtool -t eth0
> >> The test result is PASS
> >> The test extra info:
> >> nvram test        (online)       0
> >> link test         (online)       0
> >> register test     (offline)      0
> >> memory test       (offline)      0
> >> mac loopback test (offline)      0
> >> phy loopback test (offline)      0
> >> ext loopback test (offline)      0
> >> interrupt test    (offline)      0
> >>
> >> ethtool -T eth0
> >> Time stamping parameters for eth0:
> >> Capabilities:
> >>        software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
> >>        software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
> >>        software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
> >> PTP Hardware Clock: none
> >> Hardware Transmit Timestamp Modes:
> >>        off                   (HWTSTAMP_TX_OFF)
> >>        on                    (HWTSTAMP_TX_ON)
> >> Hardware Receive Filter Modes:
> >>        none                  (HWTSTAMP_FILTER_NONE)
> >>        ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
> >>        ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
> >>        ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
> >>
> >> ethtool -l eth0
> >> Channel parameters for eth0:
> >> Pre-set maximums:
> >> RX:             4
> >> TX:             1
> >> Other:          0
> >> Combined:       0
> >> Current hardware settings:
> >> RX:             4
> >> TX:             1
> >> Other:          0
> >> Combined:       0
> >>
> >> ethtool --show-eee eth0
> >> EEE Settings for eth0:
> >>        EEE status: enabled - active
> >>        Tx LPI: 2047 (us)
> >>        Supported EEE link modes:  100baseT/Full
> >>                                   1000baseT/Full
> >>        Advertised EEE link modes:  100baseT/Full
> >>                                    1000baseT/Full
> >>        Link partner advertised EEE link modes:  100baseT/Full
> >>                                                 1000baseT/Full
> >>
> >>> These are all the tg3 changes between 4.19 and 5.0:
> >>>
> >>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
> >>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
> >>> mac address
> >>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
> >>> from u32 to link mode
> >>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
> >>> 310fc0513ea9 tg3: Fix fall-through annotations
> >>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
> >>> configuration is supported
> >>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
> >>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
> >>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
> >>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
> >>>
> >>> Most of the changes are related to PHY settings.  I suggest that you
> >>> check the link settings, including speed, pause, asym pause, etc
> >>> between the working kernel and the non-working kernel to see if there
> >>> are differences in the settings.
> >>
> >
>

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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-18  6:51           ` Siva Reddy Kallam
@ 2019-10-31 11:49             ` Siva Reddy Kallam
  2019-10-31 19:42               ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Siva Reddy Kallam @ 2019-10-31 11:49 UTC (permalink / raw)
  To: Rudolf Spring; +Cc: Michael Chan, Netdev

Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
I used the internet for almost 15-20 mins and no MAC errors observed.
Can you please provide ethtool -i output? I will use the same f/w
version and try.

On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
<siva.kallam@broadcom.com> wrote:
>
> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
> >
> > Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
> >
> Yes. We are trying to reproduce in our local lab.  We will update once
> we have reproduction.
> >
> > eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
> >         ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
> >         RX packets 13844854  bytes 2298858755 (2.1 GiB)
> >         RX errors 0  dropped 2  overruns 0  frame 0
> >         TX packets 14831625  bytes 75684684566 (70.4 GiB)
> >         TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
> >         device interrupt 16
> >
> >      tx_octets: 75686159197
> >      tx_collisions: 0
> >      tx_xon_sent: 0
> >      tx_xoff_sent: 0
> >      tx_flow_control: 0
> >      tx_mac_errors: 158
> >      tx_single_collisions: 0
> >      tx_mult_collisions: 0
> >      tx_deferred: 0
> >      tx_excessive_collisions: 0
> >      tx_late_collisions: 0
> >      tx_collide_2times: 0
> >      tx_collide_3times: 0
> >      tx_collide_4times: 0
> >      tx_collide_5times: 0
> >      tx_collide_6times: 0
> >      tx_collide_7times: 0
> >      tx_collide_8times: 0
> >      tx_collide_9times: 0
> >      tx_collide_10times: 0
> >      tx_collide_11times: 0
> >      tx_collide_12times: 0
> >      tx_collide_13times: 0
> >      tx_collide_14times: 0
> >      tx_collide_15times: 0
> >      tx_ucast_packets: 14400082
> >      tx_mcast_packets: 435104
> >      tx_bcast_packets: 1542
> >      tx_carrier_sense_errors: 0
> >      tx_discards: 0
> >      tx_errors: 0
> >
> >
> > > On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> > >
> > > With Kernel 5.3.2. Interesting all are tx_mac_errors.
> > >
> > > ifconfig  eth0
> > > eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
> > >        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
> > >        RX packets 1649204  bytes 775261068 (739.3 MiB)
> > >        RX errors 0  dropped 0  overruns 0  frame 0
> > >        TX packets 1144621  bytes 1241414276 (1.1 GiB)
> > >        TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
> > >        device interrupt 16
> > >
> > > ethtool -S eth0
> > > NIC statistics:
> > >     rx_octets: 752756285
> > >     rx_fragments: 0
> > >     rx_ucast_packets: 1132211
> > >     rx_mcast_packets: 128115
> > >     rx_bcast_packets: 372162
> > >     rx_fcs_errors: 0
> > >     rx_align_errors: 0
> > >     rx_xon_pause_rcvd: 0
> > >     rx_xoff_pause_rcvd: 0
> > >     rx_mac_ctrl_rcvd: 0
> > >     rx_xoff_entered: 0
> > >     rx_frame_too_long_errors: 0
> > >     rx_jabbers: 0
> > >     rx_undersize_packets: 0
> > >     rx_in_length_errors: 0
> > >     rx_out_length_errors: 0
> > >     rx_64_or_less_octet_packets: 0
> > >     rx_65_to_127_octet_packets: 0
> > >     rx_128_to_255_octet_packets: 0
> > >     rx_256_to_511_octet_packets: 0
> > >     rx_512_to_1023_octet_packets: 0
> > >     rx_1024_to_1522_octet_packets: 0
> > >     rx_1523_to_2047_octet_packets: 0
> > >     rx_2048_to_4095_octet_packets: 0
> > >     rx_4096_to_8191_octet_packets: 0
> > >     rx_8192_to_9022_octet_packets: 0
> > >     tx_octets: 1236703101
> > >     tx_collisions: 0
> > >     tx_xon_sent: 0
> > >     tx_xoff_sent: 0
> > >     tx_flow_control: 0
> > >     tx_mac_errors: 369
> > >     tx_single_collisions: 0
> > >     tx_mult_collisions: 0
> > >     tx_deferred: 0
> > >     tx_excessive_collisions: 0
> > >     tx_late_collisions: 0
> > >     tx_collide_2times: 0
> > >     tx_collide_3times: 0
> > >     tx_collide_4times: 0
> > >     tx_collide_5times: 0
> > >     tx_collide_6times: 0
> > >     tx_collide_7times: 0
> > >     tx_collide_8times: 0
> > >     tx_collide_9times: 0
> > >     tx_collide_10times: 0
> > >     tx_collide_11times: 0
> > >     tx_collide_12times: 0
> > >     tx_collide_13times: 0
> > >     tx_collide_14times: 0
> > >     tx_collide_15times: 0
> > >     tx_ucast_packets: 986854
> > >     tx_mcast_packets: 146951
> > >     tx_bcast_packets: 1117
> > >     tx_carrier_sense_errors: 0
> > >     tx_discards: 0
> > >     tx_errors: 0
> > >     dma_writeq_full: 0
> > >     dma_write_prioq_full: 0
> > >     rxbds_empty: 0
> > >     rx_discards: 0
> > >     rx_errors: 0
> > >     rx_threshold_hit: 0
> > >     dma_readq_full: 0
> > >     dma_read_prioq_full: 0
> > >     tx_comp_queue_full: 0
> > >     ring_set_send_prod_index: 0
> > >     ring_status_update: 0
> > >     nic_irqs: 0
> > >     nic_avoided_irqs: 0
> > >     nic_tx_threshold_hit: 0
> > >     mbuf_lwm_thresh_hit: 0
> > >
> > >> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
> > >>
> > >>
> > >>
> > >> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
> > >> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
> > >> Can you please provide the output of "ethtool -S eth0" command?
> > >> In the mean time, I will review the register dump and also try to reproduce in our lab.
> > >> 0000:01:00.0: enabling device (0000 -> 0002)
> > >> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
> > >> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
> > >> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
> > >> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
> > >> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> > >> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> > >> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
> > >>
> > >> ethtool eth0
> > >> Settings for eth0:
> > >>        Supported ports: [ TP ]
> > >>        Supported link modes:   10baseT/Half 10baseT/Full
> > >>                                100baseT/Half 100baseT/Full
> > >>                                1000baseT/Half 1000baseT/Full
> > >>        Supported pause frame use: No
> > >>        Supports auto-negotiation: Yes
> > >>        Supported FEC modes: Not reported
> > >>        Advertised link modes:  10baseT/Half 10baseT/Full
> > >>                                100baseT/Half 100baseT/Full
> > >>                                1000baseT/Half 1000baseT/Full
> > >>        Advertised pause frame use: Symmetric
> > >>        Advertised auto-negotiation: Yes
> > >>        Advertised FEC modes: Not reported
> > >>        Link partner advertised link modes:  10baseT/Half 10baseT/Full
> > >>                                             100baseT/Half 100baseT/Full
> > >>                                             1000baseT/Full
> > >>        Link partner advertised pause frame use: Symmetric
> > >>        Link partner advertised auto-negotiation: Yes
> > >>        Link partner advertised FEC modes: Not reported
> > >>        Speed: 1000Mb/s
> > >>        Duplex: Full
> > >>        Port: Twisted Pair
> > >>        PHYAD: 1
> > >>        Transceiver: internal
> > >>        Auto-negotiation: on
> > >>        MDI-X: off
> > >>        Supports Wake-on: g
> > >>        Wake-on: g
> > >>        Current message level: 0x000000ff (255)
> > >>                               drv probe link timer ifdown ifup rx_err tx_err
> > >>        Link detected: yes
> > >>
> > >> ethtool -a eth0
> > >> Pause parameters for eth0:
> > >> Autonegotiate:  on
> > >> RX:             on
> > >> TX:             on
> > >> RX negotiated:  on
> > >> TX negotiated:  on
> > >>
> > >> ethtool -g eth0
> > >> Ring parameters for eth0:
> > >> Pre-set maximums:
> > >> RX:             511
> > >> RX Mini:        0
> > >> RX Jumbo:       255
> > >> TX:             511
> > >> Current hardware settings:
> > >> RX:             200
> > >> RX Mini:        0
> > >> RX Jumbo:       100
> > >> TX:             511
> > >>
> > >> ethtool -c eth0
> > >> Coalesce parameters for eth0:
> > >> Adaptive RX: off  TX: off
> > >> stats-block-usecs: 0
> > >> sample-interval: 0
> > >> pkt-rate-low: 0
> > >> pkt-rate-high: 0
> > >>
> > >> rx-usecs: 20
> > >> rx-frames: 5
> > >> rx-usecs-irq: 0
> > >> rx-frames-irq: 5
> > >>
> > >> tx-usecs: 72
> > >> tx-frames: 53
> > >> tx-usecs-irq: 0
> > >> tx-frames-irq: 5
> > >>
> > >> rx-usecs-low: 0
> > >> rx-frame-low: 0
> > >> tx-usecs-low: 0
> > >> tx-frame-low: 0
> > >>
> > >> rx-usecs-high: 0
> > >> rx-frame-high: 0
> > >> tx-usecs-high: 0
> > >> tx-frame-high: 0
> > >>
> > >> ethtool -k eth0
> > >> Features for eth0:
> > >> rx-checksumming: on
> > >> tx-checksumming: on
> > >>        tx-checksum-ipv4: on
> > >>        tx-checksum-ip-generic: off [fixed]
> > >>        tx-checksum-ipv6: on
> > >>        tx-checksum-fcoe-crc: off [fixed]
> > >>        tx-checksum-sctp: off [fixed]
> > >> scatter-gather: on
> > >>        tx-scatter-gather: on
> > >>        tx-scatter-gather-fraglist: off [fixed]
> > >> tcp-segmentation-offload: on
> > >>        tx-tcp-segmentation: on
> > >>        tx-tcp-ecn-segmentation: on
> > >>        tx-tcp-mangleid-segmentation: off
> > >>        tx-tcp6-segmentation: on
> > >> udp-fragmentation-offload: off
> > >> generic-segmentation-offload: on
> > >> generic-receive-offload: on
> > >> large-receive-offload: off [fixed]
> > >> rx-vlan-offload: on [fixed]
> > >> tx-vlan-offload: on [fixed]
> > >> ntuple-filters: off [fixed]
> > >> receive-hashing: off [fixed]
> > >> highdma: on
> > >> rx-vlan-filter: off [fixed]
> > >> vlan-challenged: off [fixed]
> > >> tx-lockless: off [fixed]
> > >> netns-local: off [fixed]
> > >> tx-gso-robust: off [fixed]
> > >> tx-fcoe-segmentation: off [fixed]
> > >> tx-gre-segmentation: off [fixed]
> > >> tx-gre-csum-segmentation: off [fixed]
> > >> tx-ipxip4-segmentation: off [fixed]
> > >> tx-ipxip6-segmentation: off [fixed]
> > >> tx-udp_tnl-segmentation: off [fixed]
> > >> tx-udp_tnl-csum-segmentation: off [fixed]
> > >> tx-gso-partial: off [fixed]
> > >> tx-sctp-segmentation: off [fixed]
> > >> tx-esp-segmentation: off [fixed]
> > >> tx-udp-segmentation: off [fixed]
> > >> fcoe-mtu: off [fixed]
> > >> tx-nocache-copy: off
> > >> loopback: off [fixed]
> > >> rx-fcs: off [fixed]
> > >> rx-all: off [fixed]
> > >> tx-vlan-stag-hw-insert: off [fixed]
> > >> rx-vlan-stag-hw-parse: off [fixed]
> > >> rx-vlan-stag-filter: off [fixed]
> > >> l2-fwd-offload: off [fixed]
> > >> hw-tc-offload: off [fixed]
> > >> esp-hw-offload: off [fixed]
> > >> esp-tx-csum-hw-offload: off [fixed]
> > >> rx-udp_tunnel-port-offload: off [fixed]
> > >> tls-hw-tx-offload: off [fixed]
> > >> tls-hw-rx-offload: off [fixed]
> > >> rx-gro-hw: off [fixed]
> > >> tls-hw-record: off [fixed]
> > >>
> > >> ethtool -n eth0
> > >> 4 RX rings available
> > >> rxclass: Cannot get RX class rule count: Operation not supported
> > >> RX classification rule retrieval failed
> > >>
> > >> ethtool -t eth0
> > >> The test result is PASS
> > >> The test extra info:
> > >> nvram test        (online)       0
> > >> link test         (online)       0
> > >> register test     (offline)      0
> > >> memory test       (offline)      0
> > >> mac loopback test (offline)      0
> > >> phy loopback test (offline)      0
> > >> ext loopback test (offline)      0
> > >> interrupt test    (offline)      0
> > >>
> > >> ethtool -T eth0
> > >> Time stamping parameters for eth0:
> > >> Capabilities:
> > >>        software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
> > >>        software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
> > >>        software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
> > >> PTP Hardware Clock: none
> > >> Hardware Transmit Timestamp Modes:
> > >>        off                   (HWTSTAMP_TX_OFF)
> > >>        on                    (HWTSTAMP_TX_ON)
> > >> Hardware Receive Filter Modes:
> > >>        none                  (HWTSTAMP_FILTER_NONE)
> > >>        ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
> > >>        ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
> > >>        ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
> > >>
> > >> ethtool -l eth0
> > >> Channel parameters for eth0:
> > >> Pre-set maximums:
> > >> RX:             4
> > >> TX:             1
> > >> Other:          0
> > >> Combined:       0
> > >> Current hardware settings:
> > >> RX:             4
> > >> TX:             1
> > >> Other:          0
> > >> Combined:       0
> > >>
> > >> ethtool --show-eee eth0
> > >> EEE Settings for eth0:
> > >>        EEE status: enabled - active
> > >>        Tx LPI: 2047 (us)
> > >>        Supported EEE link modes:  100baseT/Full
> > >>                                   1000baseT/Full
> > >>        Advertised EEE link modes:  100baseT/Full
> > >>                                    1000baseT/Full
> > >>        Link partner advertised EEE link modes:  100baseT/Full
> > >>                                                 1000baseT/Full
> > >>
> > >>> These are all the tg3 changes between 4.19 and 5.0:
> > >>>
> > >>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
> > >>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
> > >>> mac address
> > >>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
> > >>> from u32 to link mode
> > >>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
> > >>> 310fc0513ea9 tg3: Fix fall-through annotations
> > >>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
> > >>> configuration is supported
> > >>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
> > >>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
> > >>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
> > >>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
> > >>>
> > >>> Most of the changes are related to PHY settings.  I suggest that you
> > >>> check the link settings, including speed, pause, asym pause, etc
> > >>> between the working kernel and the non-working kernel to see if there
> > >>> are differences in the settings.
> > >>
> > >
> >

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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-31 11:49             ` Siva Reddy Kallam
@ 2019-10-31 19:42               ` Rudolf Spring
  2019-11-11  8:15                 ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-10-31 19:42 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

I’m using it in bridged mode with wlan adapters and hostapd. The problem only happens if I access over eth0 not over wlan0 or wlan1. STP is not the problem. Same config with 4.19 has no problems only after 5.0.

driver: tg3
version: 3.137
firmware-version: 57766a-v1.13
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

> On 31 Oct 2019, at 11:49, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
> 
> Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
> I used the internet for almost 15-20 mins and no MAC errors observed.
> Can you please provide ethtool -i output? I will use the same f/w
> version and try.
> 
> On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
> <siva.kallam@broadcom.com> wrote:
>> 
>> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>> 
>>> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>>> 
>> Yes. We are trying to reproduce in our local lab.  We will update once
>> we have reproduction.
>>> 
>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>        RX packets 13844854  bytes 2298858755 (2.1 GiB)
>>>        RX errors 0  dropped 2  overruns 0  frame 0
>>>        TX packets 14831625  bytes 75684684566 (70.4 GiB)
>>>        TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>>>        device interrupt 16
>>> 
>>>     tx_octets: 75686159197
>>>     tx_collisions: 0
>>>     tx_xon_sent: 0
>>>     tx_xoff_sent: 0
>>>     tx_flow_control: 0
>>>     tx_mac_errors: 158
>>>     tx_single_collisions: 0
>>>     tx_mult_collisions: 0
>>>     tx_deferred: 0
>>>     tx_excessive_collisions: 0
>>>     tx_late_collisions: 0
>>>     tx_collide_2times: 0
>>>     tx_collide_3times: 0
>>>     tx_collide_4times: 0
>>>     tx_collide_5times: 0
>>>     tx_collide_6times: 0
>>>     tx_collide_7times: 0
>>>     tx_collide_8times: 0
>>>     tx_collide_9times: 0
>>>     tx_collide_10times: 0
>>>     tx_collide_11times: 0
>>>     tx_collide_12times: 0
>>>     tx_collide_13times: 0
>>>     tx_collide_14times: 0
>>>     tx_collide_15times: 0
>>>     tx_ucast_packets: 14400082
>>>     tx_mcast_packets: 435104
>>>     tx_bcast_packets: 1542
>>>     tx_carrier_sense_errors: 0
>>>     tx_discards: 0
>>>     tx_errors: 0
>>> 
>>> 
>>>> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>> 
>>>> With Kernel 5.3.2. Interesting all are tx_mac_errors.
>>>> 
>>>> ifconfig  eth0
>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>       ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>       RX packets 1649204  bytes 775261068 (739.3 MiB)
>>>>       RX errors 0  dropped 0  overruns 0  frame 0
>>>>       TX packets 1144621  bytes 1241414276 (1.1 GiB)
>>>>       TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>>>>       device interrupt 16
>>>> 
>>>> ethtool -S eth0
>>>> NIC statistics:
>>>>    rx_octets: 752756285
>>>>    rx_fragments: 0
>>>>    rx_ucast_packets: 1132211
>>>>    rx_mcast_packets: 128115
>>>>    rx_bcast_packets: 372162
>>>>    rx_fcs_errors: 0
>>>>    rx_align_errors: 0
>>>>    rx_xon_pause_rcvd: 0
>>>>    rx_xoff_pause_rcvd: 0
>>>>    rx_mac_ctrl_rcvd: 0
>>>>    rx_xoff_entered: 0
>>>>    rx_frame_too_long_errors: 0
>>>>    rx_jabbers: 0
>>>>    rx_undersize_packets: 0
>>>>    rx_in_length_errors: 0
>>>>    rx_out_length_errors: 0
>>>>    rx_64_or_less_octet_packets: 0
>>>>    rx_65_to_127_octet_packets: 0
>>>>    rx_128_to_255_octet_packets: 0
>>>>    rx_256_to_511_octet_packets: 0
>>>>    rx_512_to_1023_octet_packets: 0
>>>>    rx_1024_to_1522_octet_packets: 0
>>>>    rx_1523_to_2047_octet_packets: 0
>>>>    rx_2048_to_4095_octet_packets: 0
>>>>    rx_4096_to_8191_octet_packets: 0
>>>>    rx_8192_to_9022_octet_packets: 0
>>>>    tx_octets: 1236703101
>>>>    tx_collisions: 0
>>>>    tx_xon_sent: 0
>>>>    tx_xoff_sent: 0
>>>>    tx_flow_control: 0
>>>>    tx_mac_errors: 369
>>>>    tx_single_collisions: 0
>>>>    tx_mult_collisions: 0
>>>>    tx_deferred: 0
>>>>    tx_excessive_collisions: 0
>>>>    tx_late_collisions: 0
>>>>    tx_collide_2times: 0
>>>>    tx_collide_3times: 0
>>>>    tx_collide_4times: 0
>>>>    tx_collide_5times: 0
>>>>    tx_collide_6times: 0
>>>>    tx_collide_7times: 0
>>>>    tx_collide_8times: 0
>>>>    tx_collide_9times: 0
>>>>    tx_collide_10times: 0
>>>>    tx_collide_11times: 0
>>>>    tx_collide_12times: 0
>>>>    tx_collide_13times: 0
>>>>    tx_collide_14times: 0
>>>>    tx_collide_15times: 0
>>>>    tx_ucast_packets: 986854
>>>>    tx_mcast_packets: 146951
>>>>    tx_bcast_packets: 1117
>>>>    tx_carrier_sense_errors: 0
>>>>    tx_discards: 0
>>>>    tx_errors: 0
>>>>    dma_writeq_full: 0
>>>>    dma_write_prioq_full: 0
>>>>    rxbds_empty: 0
>>>>    rx_discards: 0
>>>>    rx_errors: 0
>>>>    rx_threshold_hit: 0
>>>>    dma_readq_full: 0
>>>>    dma_read_prioq_full: 0
>>>>    tx_comp_queue_full: 0
>>>>    ring_set_send_prod_index: 0
>>>>    ring_status_update: 0
>>>>    nic_irqs: 0
>>>>    nic_avoided_irqs: 0
>>>>    nic_tx_threshold_hit: 0
>>>>    mbuf_lwm_thresh_hit: 0
>>>> 
>>>>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>>>>> Can you please provide the output of "ethtool -S eth0" command?
>>>>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>>>>> 0000:01:00.0: enabling device (0000 -> 0002)
>>>>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>>>>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>>>>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>>>>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>>>>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>>>>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>>>>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>>>>> 
>>>>> ethtool eth0
>>>>> Settings for eth0:
>>>>>       Supported ports: [ TP ]
>>>>>       Supported link modes:   10baseT/Half 10baseT/Full
>>>>>                               100baseT/Half 100baseT/Full
>>>>>                               1000baseT/Half 1000baseT/Full
>>>>>       Supported pause frame use: No
>>>>>       Supports auto-negotiation: Yes
>>>>>       Supported FEC modes: Not reported
>>>>>       Advertised link modes:  10baseT/Half 10baseT/Full
>>>>>                               100baseT/Half 100baseT/Full
>>>>>                               1000baseT/Half 1000baseT/Full
>>>>>       Advertised pause frame use: Symmetric
>>>>>       Advertised auto-negotiation: Yes
>>>>>       Advertised FEC modes: Not reported
>>>>>       Link partner advertised link modes:  10baseT/Half 10baseT/Full
>>>>>                                            100baseT/Half 100baseT/Full
>>>>>                                            1000baseT/Full
>>>>>       Link partner advertised pause frame use: Symmetric
>>>>>       Link partner advertised auto-negotiation: Yes
>>>>>       Link partner advertised FEC modes: Not reported
>>>>>       Speed: 1000Mb/s
>>>>>       Duplex: Full
>>>>>       Port: Twisted Pair
>>>>>       PHYAD: 1
>>>>>       Transceiver: internal
>>>>>       Auto-negotiation: on
>>>>>       MDI-X: off
>>>>>       Supports Wake-on: g
>>>>>       Wake-on: g
>>>>>       Current message level: 0x000000ff (255)
>>>>>                              drv probe link timer ifdown ifup rx_err tx_err
>>>>>       Link detected: yes
>>>>> 
>>>>> ethtool -a eth0
>>>>> Pause parameters for eth0:
>>>>> Autonegotiate:  on
>>>>> RX:             on
>>>>> TX:             on
>>>>> RX negotiated:  on
>>>>> TX negotiated:  on
>>>>> 
>>>>> ethtool -g eth0
>>>>> Ring parameters for eth0:
>>>>> Pre-set maximums:
>>>>> RX:             511
>>>>> RX Mini:        0
>>>>> RX Jumbo:       255
>>>>> TX:             511
>>>>> Current hardware settings:
>>>>> RX:             200
>>>>> RX Mini:        0
>>>>> RX Jumbo:       100
>>>>> TX:             511
>>>>> 
>>>>> ethtool -c eth0
>>>>> Coalesce parameters for eth0:
>>>>> Adaptive RX: off  TX: off
>>>>> stats-block-usecs: 0
>>>>> sample-interval: 0
>>>>> pkt-rate-low: 0
>>>>> pkt-rate-high: 0
>>>>> 
>>>>> rx-usecs: 20
>>>>> rx-frames: 5
>>>>> rx-usecs-irq: 0
>>>>> rx-frames-irq: 5
>>>>> 
>>>>> tx-usecs: 72
>>>>> tx-frames: 53
>>>>> tx-usecs-irq: 0
>>>>> tx-frames-irq: 5
>>>>> 
>>>>> rx-usecs-low: 0
>>>>> rx-frame-low: 0
>>>>> tx-usecs-low: 0
>>>>> tx-frame-low: 0
>>>>> 
>>>>> rx-usecs-high: 0
>>>>> rx-frame-high: 0
>>>>> tx-usecs-high: 0
>>>>> tx-frame-high: 0
>>>>> 
>>>>> ethtool -k eth0
>>>>> Features for eth0:
>>>>> rx-checksumming: on
>>>>> tx-checksumming: on
>>>>>       tx-checksum-ipv4: on
>>>>>       tx-checksum-ip-generic: off [fixed]
>>>>>       tx-checksum-ipv6: on
>>>>>       tx-checksum-fcoe-crc: off [fixed]
>>>>>       tx-checksum-sctp: off [fixed]
>>>>> scatter-gather: on
>>>>>       tx-scatter-gather: on
>>>>>       tx-scatter-gather-fraglist: off [fixed]
>>>>> tcp-segmentation-offload: on
>>>>>       tx-tcp-segmentation: on
>>>>>       tx-tcp-ecn-segmentation: on
>>>>>       tx-tcp-mangleid-segmentation: off
>>>>>       tx-tcp6-segmentation: on
>>>>> udp-fragmentation-offload: off
>>>>> generic-segmentation-offload: on
>>>>> generic-receive-offload: on
>>>>> large-receive-offload: off [fixed]
>>>>> rx-vlan-offload: on [fixed]
>>>>> tx-vlan-offload: on [fixed]
>>>>> ntuple-filters: off [fixed]
>>>>> receive-hashing: off [fixed]
>>>>> highdma: on
>>>>> rx-vlan-filter: off [fixed]
>>>>> vlan-challenged: off [fixed]
>>>>> tx-lockless: off [fixed]
>>>>> netns-local: off [fixed]
>>>>> tx-gso-robust: off [fixed]
>>>>> tx-fcoe-segmentation: off [fixed]
>>>>> tx-gre-segmentation: off [fixed]
>>>>> tx-gre-csum-segmentation: off [fixed]
>>>>> tx-ipxip4-segmentation: off [fixed]
>>>>> tx-ipxip6-segmentation: off [fixed]
>>>>> tx-udp_tnl-segmentation: off [fixed]
>>>>> tx-udp_tnl-csum-segmentation: off [fixed]
>>>>> tx-gso-partial: off [fixed]
>>>>> tx-sctp-segmentation: off [fixed]
>>>>> tx-esp-segmentation: off [fixed]
>>>>> tx-udp-segmentation: off [fixed]
>>>>> fcoe-mtu: off [fixed]
>>>>> tx-nocache-copy: off
>>>>> loopback: off [fixed]
>>>>> rx-fcs: off [fixed]
>>>>> rx-all: off [fixed]
>>>>> tx-vlan-stag-hw-insert: off [fixed]
>>>>> rx-vlan-stag-hw-parse: off [fixed]
>>>>> rx-vlan-stag-filter: off [fixed]
>>>>> l2-fwd-offload: off [fixed]
>>>>> hw-tc-offload: off [fixed]
>>>>> esp-hw-offload: off [fixed]
>>>>> esp-tx-csum-hw-offload: off [fixed]
>>>>> rx-udp_tunnel-port-offload: off [fixed]
>>>>> tls-hw-tx-offload: off [fixed]
>>>>> tls-hw-rx-offload: off [fixed]
>>>>> rx-gro-hw: off [fixed]
>>>>> tls-hw-record: off [fixed]
>>>>> 
>>>>> ethtool -n eth0
>>>>> 4 RX rings available
>>>>> rxclass: Cannot get RX class rule count: Operation not supported
>>>>> RX classification rule retrieval failed
>>>>> 
>>>>> ethtool -t eth0
>>>>> The test result is PASS
>>>>> The test extra info:
>>>>> nvram test        (online)       0
>>>>> link test         (online)       0
>>>>> register test     (offline)      0
>>>>> memory test       (offline)      0
>>>>> mac loopback test (offline)      0
>>>>> phy loopback test (offline)      0
>>>>> ext loopback test (offline)      0
>>>>> interrupt test    (offline)      0
>>>>> 
>>>>> ethtool -T eth0
>>>>> Time stamping parameters for eth0:
>>>>> Capabilities:
>>>>>       software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>>>>       software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>>>>       software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>>>>> PTP Hardware Clock: none
>>>>> Hardware Transmit Timestamp Modes:
>>>>>       off                   (HWTSTAMP_TX_OFF)
>>>>>       on                    (HWTSTAMP_TX_ON)
>>>>> Hardware Receive Filter Modes:
>>>>>       none                  (HWTSTAMP_FILTER_NONE)
>>>>>       ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>>>>       ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>>>>       ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>>>>> 
>>>>> ethtool -l eth0
>>>>> Channel parameters for eth0:
>>>>> Pre-set maximums:
>>>>> RX:             4
>>>>> TX:             1
>>>>> Other:          0
>>>>> Combined:       0
>>>>> Current hardware settings:
>>>>> RX:             4
>>>>> TX:             1
>>>>> Other:          0
>>>>> Combined:       0
>>>>> 
>>>>> ethtool --show-eee eth0
>>>>> EEE Settings for eth0:
>>>>>       EEE status: enabled - active
>>>>>       Tx LPI: 2047 (us)
>>>>>       Supported EEE link modes:  100baseT/Full
>>>>>                                  1000baseT/Full
>>>>>       Advertised EEE link modes:  100baseT/Full
>>>>>                                   1000baseT/Full
>>>>>       Link partner advertised EEE link modes:  100baseT/Full
>>>>>                                                1000baseT/Full
>>>>> 
>>>>>> These are all the tg3 changes between 4.19 and 5.0:
>>>>>> 
>>>>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>>>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>>>>> mac address
>>>>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>>>>> from u32 to link mode
>>>>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>>>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>>>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>>>>> configuration is supported
>>>>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>>>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>>>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>>>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>>>>> 
>>>>>> Most of the changes are related to PHY settings.  I suggest that you
>>>>>> check the link settings, including speed, pause, asym pause, etc
>>>>>> between the working kernel and the non-working kernel to see if there
>>>>>> are differences in the settings.
>>>>> 
>>>> 
>>> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-10-31 19:42               ` Rudolf Spring
@ 2019-11-11  8:15                 ` Rudolf Spring
  2019-11-11 13:44                   ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-11-11  8:15 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

I found a workaround. Changing the mac of br0 to the mac of the tg3 and so far no more tx mac errors. I’m not sure but its probably a bridge and not a tg3 problem. With kernel < 5.0 this was not necessary.

> On 31 Oct 2019, at 19:42, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> 
> I’m using it in bridged mode with wlan adapters and hostapd. The problem only happens if I access over eth0 not over wlan0 or wlan1. STP is not the problem. Same config with 4.19 has no problems only after 5.0.
> 
> driver: tg3
> version: 3.137
> firmware-version: 57766a-v1.13
> expansion-rom-version: 
> bus-info: 0000:01:00.0
> supports-statistics: yes
> supports-test: yes
> supports-eeprom-access: yes
> supports-register-dump: yes
> supports-priv-flags: no
> 
>> On 31 Oct 2019, at 11:49, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>> 
>> Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
>> I used the internet for almost 15-20 mins and no MAC errors observed.
>> Can you please provide ethtool -i output? I will use the same f/w
>> version and try.
>> 
>> On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
>> <siva.kallam@broadcom.com> wrote:
>>> 
>>> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>> 
>>>> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>>>> 
>>> Yes. We are trying to reproduce in our local lab.  We will update once
>>> we have reproduction.
>>>> 
>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>       ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>       RX packets 13844854  bytes 2298858755 (2.1 GiB)
>>>>       RX errors 0  dropped 2  overruns 0  frame 0
>>>>       TX packets 14831625  bytes 75684684566 (70.4 GiB)
>>>>       TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>>>>       device interrupt 16
>>>> 
>>>>    tx_octets: 75686159197
>>>>    tx_collisions: 0
>>>>    tx_xon_sent: 0
>>>>    tx_xoff_sent: 0
>>>>    tx_flow_control: 0
>>>>    tx_mac_errors: 158
>>>>    tx_single_collisions: 0
>>>>    tx_mult_collisions: 0
>>>>    tx_deferred: 0
>>>>    tx_excessive_collisions: 0
>>>>    tx_late_collisions: 0
>>>>    tx_collide_2times: 0
>>>>    tx_collide_3times: 0
>>>>    tx_collide_4times: 0
>>>>    tx_collide_5times: 0
>>>>    tx_collide_6times: 0
>>>>    tx_collide_7times: 0
>>>>    tx_collide_8times: 0
>>>>    tx_collide_9times: 0
>>>>    tx_collide_10times: 0
>>>>    tx_collide_11times: 0
>>>>    tx_collide_12times: 0
>>>>    tx_collide_13times: 0
>>>>    tx_collide_14times: 0
>>>>    tx_collide_15times: 0
>>>>    tx_ucast_packets: 14400082
>>>>    tx_mcast_packets: 435104
>>>>    tx_bcast_packets: 1542
>>>>    tx_carrier_sense_errors: 0
>>>>    tx_discards: 0
>>>>    tx_errors: 0
>>>> 
>>>> 
>>>>> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>> 
>>>>> With Kernel 5.3.2. Interesting all are tx_mac_errors.
>>>>> 
>>>>> ifconfig  eth0
>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>      ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>      RX packets 1649204  bytes 775261068 (739.3 MiB)
>>>>>      RX errors 0  dropped 0  overruns 0  frame 0
>>>>>      TX packets 1144621  bytes 1241414276 (1.1 GiB)
>>>>>      TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>      device interrupt 16
>>>>> 
>>>>> ethtool -S eth0
>>>>> NIC statistics:
>>>>>   rx_octets: 752756285
>>>>>   rx_fragments: 0
>>>>>   rx_ucast_packets: 1132211
>>>>>   rx_mcast_packets: 128115
>>>>>   rx_bcast_packets: 372162
>>>>>   rx_fcs_errors: 0
>>>>>   rx_align_errors: 0
>>>>>   rx_xon_pause_rcvd: 0
>>>>>   rx_xoff_pause_rcvd: 0
>>>>>   rx_mac_ctrl_rcvd: 0
>>>>>   rx_xoff_entered: 0
>>>>>   rx_frame_too_long_errors: 0
>>>>>   rx_jabbers: 0
>>>>>   rx_undersize_packets: 0
>>>>>   rx_in_length_errors: 0
>>>>>   rx_out_length_errors: 0
>>>>>   rx_64_or_less_octet_packets: 0
>>>>>   rx_65_to_127_octet_packets: 0
>>>>>   rx_128_to_255_octet_packets: 0
>>>>>   rx_256_to_511_octet_packets: 0
>>>>>   rx_512_to_1023_octet_packets: 0
>>>>>   rx_1024_to_1522_octet_packets: 0
>>>>>   rx_1523_to_2047_octet_packets: 0
>>>>>   rx_2048_to_4095_octet_packets: 0
>>>>>   rx_4096_to_8191_octet_packets: 0
>>>>>   rx_8192_to_9022_octet_packets: 0
>>>>>   tx_octets: 1236703101
>>>>>   tx_collisions: 0
>>>>>   tx_xon_sent: 0
>>>>>   tx_xoff_sent: 0
>>>>>   tx_flow_control: 0
>>>>>   tx_mac_errors: 369
>>>>>   tx_single_collisions: 0
>>>>>   tx_mult_collisions: 0
>>>>>   tx_deferred: 0
>>>>>   tx_excessive_collisions: 0
>>>>>   tx_late_collisions: 0
>>>>>   tx_collide_2times: 0
>>>>>   tx_collide_3times: 0
>>>>>   tx_collide_4times: 0
>>>>>   tx_collide_5times: 0
>>>>>   tx_collide_6times: 0
>>>>>   tx_collide_7times: 0
>>>>>   tx_collide_8times: 0
>>>>>   tx_collide_9times: 0
>>>>>   tx_collide_10times: 0
>>>>>   tx_collide_11times: 0
>>>>>   tx_collide_12times: 0
>>>>>   tx_collide_13times: 0
>>>>>   tx_collide_14times: 0
>>>>>   tx_collide_15times: 0
>>>>>   tx_ucast_packets: 986854
>>>>>   tx_mcast_packets: 146951
>>>>>   tx_bcast_packets: 1117
>>>>>   tx_carrier_sense_errors: 0
>>>>>   tx_discards: 0
>>>>>   tx_errors: 0
>>>>>   dma_writeq_full: 0
>>>>>   dma_write_prioq_full: 0
>>>>>   rxbds_empty: 0
>>>>>   rx_discards: 0
>>>>>   rx_errors: 0
>>>>>   rx_threshold_hit: 0
>>>>>   dma_readq_full: 0
>>>>>   dma_read_prioq_full: 0
>>>>>   tx_comp_queue_full: 0
>>>>>   ring_set_send_prod_index: 0
>>>>>   ring_status_update: 0
>>>>>   nic_irqs: 0
>>>>>   nic_avoided_irqs: 0
>>>>>   nic_tx_threshold_hit: 0
>>>>>   mbuf_lwm_thresh_hit: 0
>>>>> 
>>>>>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>>>>>> Can you please provide the output of "ethtool -S eth0" command?
>>>>>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>>>>>> 0000:01:00.0: enabling device (0000 -> 0002)
>>>>>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>>>>>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>>>>>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>>>>>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>>>>>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>>>>>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>>>>>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>>>>>> 
>>>>>> ethtool eth0
>>>>>> Settings for eth0:
>>>>>>      Supported ports: [ TP ]
>>>>>>      Supported link modes:   10baseT/Half 10baseT/Full
>>>>>>                              100baseT/Half 100baseT/Full
>>>>>>                              1000baseT/Half 1000baseT/Full
>>>>>>      Supported pause frame use: No
>>>>>>      Supports auto-negotiation: Yes
>>>>>>      Supported FEC modes: Not reported
>>>>>>      Advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>                              100baseT/Half 100baseT/Full
>>>>>>                              1000baseT/Half 1000baseT/Full
>>>>>>      Advertised pause frame use: Symmetric
>>>>>>      Advertised auto-negotiation: Yes
>>>>>>      Advertised FEC modes: Not reported
>>>>>>      Link partner advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>                                           100baseT/Half 100baseT/Full
>>>>>>                                           1000baseT/Full
>>>>>>      Link partner advertised pause frame use: Symmetric
>>>>>>      Link partner advertised auto-negotiation: Yes
>>>>>>      Link partner advertised FEC modes: Not reported
>>>>>>      Speed: 1000Mb/s
>>>>>>      Duplex: Full
>>>>>>      Port: Twisted Pair
>>>>>>      PHYAD: 1
>>>>>>      Transceiver: internal
>>>>>>      Auto-negotiation: on
>>>>>>      MDI-X: off
>>>>>>      Supports Wake-on: g
>>>>>>      Wake-on: g
>>>>>>      Current message level: 0x000000ff (255)
>>>>>>                             drv probe link timer ifdown ifup rx_err tx_err
>>>>>>      Link detected: yes
>>>>>> 
>>>>>> ethtool -a eth0
>>>>>> Pause parameters for eth0:
>>>>>> Autonegotiate:  on
>>>>>> RX:             on
>>>>>> TX:             on
>>>>>> RX negotiated:  on
>>>>>> TX negotiated:  on
>>>>>> 
>>>>>> ethtool -g eth0
>>>>>> Ring parameters for eth0:
>>>>>> Pre-set maximums:
>>>>>> RX:             511
>>>>>> RX Mini:        0
>>>>>> RX Jumbo:       255
>>>>>> TX:             511
>>>>>> Current hardware settings:
>>>>>> RX:             200
>>>>>> RX Mini:        0
>>>>>> RX Jumbo:       100
>>>>>> TX:             511
>>>>>> 
>>>>>> ethtool -c eth0
>>>>>> Coalesce parameters for eth0:
>>>>>> Adaptive RX: off  TX: off
>>>>>> stats-block-usecs: 0
>>>>>> sample-interval: 0
>>>>>> pkt-rate-low: 0
>>>>>> pkt-rate-high: 0
>>>>>> 
>>>>>> rx-usecs: 20
>>>>>> rx-frames: 5
>>>>>> rx-usecs-irq: 0
>>>>>> rx-frames-irq: 5
>>>>>> 
>>>>>> tx-usecs: 72
>>>>>> tx-frames: 53
>>>>>> tx-usecs-irq: 0
>>>>>> tx-frames-irq: 5
>>>>>> 
>>>>>> rx-usecs-low: 0
>>>>>> rx-frame-low: 0
>>>>>> tx-usecs-low: 0
>>>>>> tx-frame-low: 0
>>>>>> 
>>>>>> rx-usecs-high: 0
>>>>>> rx-frame-high: 0
>>>>>> tx-usecs-high: 0
>>>>>> tx-frame-high: 0
>>>>>> 
>>>>>> ethtool -k eth0
>>>>>> Features for eth0:
>>>>>> rx-checksumming: on
>>>>>> tx-checksumming: on
>>>>>>      tx-checksum-ipv4: on
>>>>>>      tx-checksum-ip-generic: off [fixed]
>>>>>>      tx-checksum-ipv6: on
>>>>>>      tx-checksum-fcoe-crc: off [fixed]
>>>>>>      tx-checksum-sctp: off [fixed]
>>>>>> scatter-gather: on
>>>>>>      tx-scatter-gather: on
>>>>>>      tx-scatter-gather-fraglist: off [fixed]
>>>>>> tcp-segmentation-offload: on
>>>>>>      tx-tcp-segmentation: on
>>>>>>      tx-tcp-ecn-segmentation: on
>>>>>>      tx-tcp-mangleid-segmentation: off
>>>>>>      tx-tcp6-segmentation: on
>>>>>> udp-fragmentation-offload: off
>>>>>> generic-segmentation-offload: on
>>>>>> generic-receive-offload: on
>>>>>> large-receive-offload: off [fixed]
>>>>>> rx-vlan-offload: on [fixed]
>>>>>> tx-vlan-offload: on [fixed]
>>>>>> ntuple-filters: off [fixed]
>>>>>> receive-hashing: off [fixed]
>>>>>> highdma: on
>>>>>> rx-vlan-filter: off [fixed]
>>>>>> vlan-challenged: off [fixed]
>>>>>> tx-lockless: off [fixed]
>>>>>> netns-local: off [fixed]
>>>>>> tx-gso-robust: off [fixed]
>>>>>> tx-fcoe-segmentation: off [fixed]
>>>>>> tx-gre-segmentation: off [fixed]
>>>>>> tx-gre-csum-segmentation: off [fixed]
>>>>>> tx-ipxip4-segmentation: off [fixed]
>>>>>> tx-ipxip6-segmentation: off [fixed]
>>>>>> tx-udp_tnl-segmentation: off [fixed]
>>>>>> tx-udp_tnl-csum-segmentation: off [fixed]
>>>>>> tx-gso-partial: off [fixed]
>>>>>> tx-sctp-segmentation: off [fixed]
>>>>>> tx-esp-segmentation: off [fixed]
>>>>>> tx-udp-segmentation: off [fixed]
>>>>>> fcoe-mtu: off [fixed]
>>>>>> tx-nocache-copy: off
>>>>>> loopback: off [fixed]
>>>>>> rx-fcs: off [fixed]
>>>>>> rx-all: off [fixed]
>>>>>> tx-vlan-stag-hw-insert: off [fixed]
>>>>>> rx-vlan-stag-hw-parse: off [fixed]
>>>>>> rx-vlan-stag-filter: off [fixed]
>>>>>> l2-fwd-offload: off [fixed]
>>>>>> hw-tc-offload: off [fixed]
>>>>>> esp-hw-offload: off [fixed]
>>>>>> esp-tx-csum-hw-offload: off [fixed]
>>>>>> rx-udp_tunnel-port-offload: off [fixed]
>>>>>> tls-hw-tx-offload: off [fixed]
>>>>>> tls-hw-rx-offload: off [fixed]
>>>>>> rx-gro-hw: off [fixed]
>>>>>> tls-hw-record: off [fixed]
>>>>>> 
>>>>>> ethtool -n eth0
>>>>>> 4 RX rings available
>>>>>> rxclass: Cannot get RX class rule count: Operation not supported
>>>>>> RX classification rule retrieval failed
>>>>>> 
>>>>>> ethtool -t eth0
>>>>>> The test result is PASS
>>>>>> The test extra info:
>>>>>> nvram test        (online)       0
>>>>>> link test         (online)       0
>>>>>> register test     (offline)      0
>>>>>> memory test       (offline)      0
>>>>>> mac loopback test (offline)      0
>>>>>> phy loopback test (offline)      0
>>>>>> ext loopback test (offline)      0
>>>>>> interrupt test    (offline)      0
>>>>>> 
>>>>>> ethtool -T eth0
>>>>>> Time stamping parameters for eth0:
>>>>>> Capabilities:
>>>>>>      software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>>>>>      software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>>>>>      software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>>>>>> PTP Hardware Clock: none
>>>>>> Hardware Transmit Timestamp Modes:
>>>>>>      off                   (HWTSTAMP_TX_OFF)
>>>>>>      on                    (HWTSTAMP_TX_ON)
>>>>>> Hardware Receive Filter Modes:
>>>>>>      none                  (HWTSTAMP_FILTER_NONE)
>>>>>>      ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>>>>>      ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>>>>>      ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>>>>>> 
>>>>>> ethtool -l eth0
>>>>>> Channel parameters for eth0:
>>>>>> Pre-set maximums:
>>>>>> RX:             4
>>>>>> TX:             1
>>>>>> Other:          0
>>>>>> Combined:       0
>>>>>> Current hardware settings:
>>>>>> RX:             4
>>>>>> TX:             1
>>>>>> Other:          0
>>>>>> Combined:       0
>>>>>> 
>>>>>> ethtool --show-eee eth0
>>>>>> EEE Settings for eth0:
>>>>>>      EEE status: enabled - active
>>>>>>      Tx LPI: 2047 (us)
>>>>>>      Supported EEE link modes:  100baseT/Full
>>>>>>                                 1000baseT/Full
>>>>>>      Advertised EEE link modes:  100baseT/Full
>>>>>>                                  1000baseT/Full
>>>>>>      Link partner advertised EEE link modes:  100baseT/Full
>>>>>>                                               1000baseT/Full
>>>>>> 
>>>>>>> These are all the tg3 changes between 4.19 and 5.0:
>>>>>>> 
>>>>>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>>>>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>>>>>> mac address
>>>>>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>>>>>> from u32 to link mode
>>>>>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>>>>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>>>>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>>>>>> configuration is supported
>>>>>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>>>>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>>>>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>>>>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>>>>>> 
>>>>>>> Most of the changes are related to PHY settings.  I suggest that you
>>>>>>> check the link settings, including speed, pause, asym pause, etc
>>>>>>> between the working kernel and the non-working kernel to see if there
>>>>>>> are differences in the settings.
>>>>>> 
>>>>> 
>>>> 
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-11-11  8:15                 ` Rudolf Spring
@ 2019-11-11 13:44                   ` Rudolf Spring
  2019-11-13 12:52                     ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-11-11 13:44 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

Problem remains. Workaround not successful.

tx_mac_errors: 19

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
        RX packets 450085  bytes 287538677 (274.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 381863  bytes 444155170 (423.5 MiB)
        TX errors 19  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  


[ 9257.566343] tg3 0000:01:00.0 eth0: Link is down
[ 9257.849823] br0: port 1(eth0) entered disabled state
[ 9261.358018] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[ 9261.358022] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[ 9261.358025] tg3 0000:01:00.0 eth0: EEE is enabled
[ 9261.358064] br0: port 1(eth0) entered blocking state
[ 9261.358066] br0: port 1(eth0) entered forwarding state

> On 11 Nov 2019, at 08:15, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> 
> I found a workaround. Changing the mac of br0 to the mac of the tg3 and so far no more tx mac errors. I’m not sure but its probably a bridge and not a tg3 problem. With kernel < 5.0 this was not necessary.
> 
>> On 31 Oct 2019, at 19:42, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>> 
>> I’m using it in bridged mode with wlan adapters and hostapd. The problem only happens if I access over eth0 not over wlan0 or wlan1. STP is not the problem. Same config with 4.19 has no problems only after 5.0.
>> 
>> driver: tg3
>> version: 3.137
>> firmware-version: 57766a-v1.13
>> expansion-rom-version: 
>> bus-info: 0000:01:00.0
>> supports-statistics: yes
>> supports-test: yes
>> supports-eeprom-access: yes
>> supports-register-dump: yes
>> supports-priv-flags: no
>> 
>>> On 31 Oct 2019, at 11:49, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>> 
>>> Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
>>> I used the internet for almost 15-20 mins and no MAC errors observed.
>>> Can you please provide ethtool -i output? I will use the same f/w
>>> version and try.
>>> 
>>> On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
>>> <siva.kallam@broadcom.com> wrote:
>>>> 
>>>> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>> 
>>>>> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>>>>> 
>>>> Yes. We are trying to reproduce in our local lab.  We will update once
>>>> we have reproduction.
>>>>> 
>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>      ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>      RX packets 13844854  bytes 2298858755 (2.1 GiB)
>>>>>      RX errors 0  dropped 2  overruns 0  frame 0
>>>>>      TX packets 14831625  bytes 75684684566 (70.4 GiB)
>>>>>      TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>      device interrupt 16
>>>>> 
>>>>>   tx_octets: 75686159197
>>>>>   tx_collisions: 0
>>>>>   tx_xon_sent: 0
>>>>>   tx_xoff_sent: 0
>>>>>   tx_flow_control: 0
>>>>>   tx_mac_errors: 158
>>>>>   tx_single_collisions: 0
>>>>>   tx_mult_collisions: 0
>>>>>   tx_deferred: 0
>>>>>   tx_excessive_collisions: 0
>>>>>   tx_late_collisions: 0
>>>>>   tx_collide_2times: 0
>>>>>   tx_collide_3times: 0
>>>>>   tx_collide_4times: 0
>>>>>   tx_collide_5times: 0
>>>>>   tx_collide_6times: 0
>>>>>   tx_collide_7times: 0
>>>>>   tx_collide_8times: 0
>>>>>   tx_collide_9times: 0
>>>>>   tx_collide_10times: 0
>>>>>   tx_collide_11times: 0
>>>>>   tx_collide_12times: 0
>>>>>   tx_collide_13times: 0
>>>>>   tx_collide_14times: 0
>>>>>   tx_collide_15times: 0
>>>>>   tx_ucast_packets: 14400082
>>>>>   tx_mcast_packets: 435104
>>>>>   tx_bcast_packets: 1542
>>>>>   tx_carrier_sense_errors: 0
>>>>>   tx_discards: 0
>>>>>   tx_errors: 0
>>>>> 
>>>>> 
>>>>>> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>> 
>>>>>> With Kernel 5.3.2. Interesting all are tx_mac_errors.
>>>>>> 
>>>>>> ifconfig  eth0
>>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>>     ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>>     RX packets 1649204  bytes 775261068 (739.3 MiB)
>>>>>>     RX errors 0  dropped 0  overruns 0  frame 0
>>>>>>     TX packets 1144621  bytes 1241414276 (1.1 GiB)
>>>>>>     TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>>     device interrupt 16
>>>>>> 
>>>>>> ethtool -S eth0
>>>>>> NIC statistics:
>>>>>>  rx_octets: 752756285
>>>>>>  rx_fragments: 0
>>>>>>  rx_ucast_packets: 1132211
>>>>>>  rx_mcast_packets: 128115
>>>>>>  rx_bcast_packets: 372162
>>>>>>  rx_fcs_errors: 0
>>>>>>  rx_align_errors: 0
>>>>>>  rx_xon_pause_rcvd: 0
>>>>>>  rx_xoff_pause_rcvd: 0
>>>>>>  rx_mac_ctrl_rcvd: 0
>>>>>>  rx_xoff_entered: 0
>>>>>>  rx_frame_too_long_errors: 0
>>>>>>  rx_jabbers: 0
>>>>>>  rx_undersize_packets: 0
>>>>>>  rx_in_length_errors: 0
>>>>>>  rx_out_length_errors: 0
>>>>>>  rx_64_or_less_octet_packets: 0
>>>>>>  rx_65_to_127_octet_packets: 0
>>>>>>  rx_128_to_255_octet_packets: 0
>>>>>>  rx_256_to_511_octet_packets: 0
>>>>>>  rx_512_to_1023_octet_packets: 0
>>>>>>  rx_1024_to_1522_octet_packets: 0
>>>>>>  rx_1523_to_2047_octet_packets: 0
>>>>>>  rx_2048_to_4095_octet_packets: 0
>>>>>>  rx_4096_to_8191_octet_packets: 0
>>>>>>  rx_8192_to_9022_octet_packets: 0
>>>>>>  tx_octets: 1236703101
>>>>>>  tx_collisions: 0
>>>>>>  tx_xon_sent: 0
>>>>>>  tx_xoff_sent: 0
>>>>>>  tx_flow_control: 0
>>>>>>  tx_mac_errors: 369
>>>>>>  tx_single_collisions: 0
>>>>>>  tx_mult_collisions: 0
>>>>>>  tx_deferred: 0
>>>>>>  tx_excessive_collisions: 0
>>>>>>  tx_late_collisions: 0
>>>>>>  tx_collide_2times: 0
>>>>>>  tx_collide_3times: 0
>>>>>>  tx_collide_4times: 0
>>>>>>  tx_collide_5times: 0
>>>>>>  tx_collide_6times: 0
>>>>>>  tx_collide_7times: 0
>>>>>>  tx_collide_8times: 0
>>>>>>  tx_collide_9times: 0
>>>>>>  tx_collide_10times: 0
>>>>>>  tx_collide_11times: 0
>>>>>>  tx_collide_12times: 0
>>>>>>  tx_collide_13times: 0
>>>>>>  tx_collide_14times: 0
>>>>>>  tx_collide_15times: 0
>>>>>>  tx_ucast_packets: 986854
>>>>>>  tx_mcast_packets: 146951
>>>>>>  tx_bcast_packets: 1117
>>>>>>  tx_carrier_sense_errors: 0
>>>>>>  tx_discards: 0
>>>>>>  tx_errors: 0
>>>>>>  dma_writeq_full: 0
>>>>>>  dma_write_prioq_full: 0
>>>>>>  rxbds_empty: 0
>>>>>>  rx_discards: 0
>>>>>>  rx_errors: 0
>>>>>>  rx_threshold_hit: 0
>>>>>>  dma_readq_full: 0
>>>>>>  dma_read_prioq_full: 0
>>>>>>  tx_comp_queue_full: 0
>>>>>>  ring_set_send_prod_index: 0
>>>>>>  ring_status_update: 0
>>>>>>  nic_irqs: 0
>>>>>>  nic_avoided_irqs: 0
>>>>>>  nic_tx_threshold_hit: 0
>>>>>>  mbuf_lwm_thresh_hit: 0
>>>>>> 
>>>>>>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>>>>>>> Can you please provide the output of "ethtool -S eth0" command?
>>>>>>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>>>>>>> 0000:01:00.0: enabling device (0000 -> 0002)
>>>>>>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>>>>>>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>>>>>>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>>>>>>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>>>>>>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>>>>>>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>>>>>>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>>>>>>> 
>>>>>>> ethtool eth0
>>>>>>> Settings for eth0:
>>>>>>>     Supported ports: [ TP ]
>>>>>>>     Supported link modes:   10baseT/Half 10baseT/Full
>>>>>>>                             100baseT/Half 100baseT/Full
>>>>>>>                             1000baseT/Half 1000baseT/Full
>>>>>>>     Supported pause frame use: No
>>>>>>>     Supports auto-negotiation: Yes
>>>>>>>     Supported FEC modes: Not reported
>>>>>>>     Advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>                             100baseT/Half 100baseT/Full
>>>>>>>                             1000baseT/Half 1000baseT/Full
>>>>>>>     Advertised pause frame use: Symmetric
>>>>>>>     Advertised auto-negotiation: Yes
>>>>>>>     Advertised FEC modes: Not reported
>>>>>>>     Link partner advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>                                          100baseT/Half 100baseT/Full
>>>>>>>                                          1000baseT/Full
>>>>>>>     Link partner advertised pause frame use: Symmetric
>>>>>>>     Link partner advertised auto-negotiation: Yes
>>>>>>>     Link partner advertised FEC modes: Not reported
>>>>>>>     Speed: 1000Mb/s
>>>>>>>     Duplex: Full
>>>>>>>     Port: Twisted Pair
>>>>>>>     PHYAD: 1
>>>>>>>     Transceiver: internal
>>>>>>>     Auto-negotiation: on
>>>>>>>     MDI-X: off
>>>>>>>     Supports Wake-on: g
>>>>>>>     Wake-on: g
>>>>>>>     Current message level: 0x000000ff (255)
>>>>>>>                            drv probe link timer ifdown ifup rx_err tx_err
>>>>>>>     Link detected: yes
>>>>>>> 
>>>>>>> ethtool -a eth0
>>>>>>> Pause parameters for eth0:
>>>>>>> Autonegotiate:  on
>>>>>>> RX:             on
>>>>>>> TX:             on
>>>>>>> RX negotiated:  on
>>>>>>> TX negotiated:  on
>>>>>>> 
>>>>>>> ethtool -g eth0
>>>>>>> Ring parameters for eth0:
>>>>>>> Pre-set maximums:
>>>>>>> RX:             511
>>>>>>> RX Mini:        0
>>>>>>> RX Jumbo:       255
>>>>>>> TX:             511
>>>>>>> Current hardware settings:
>>>>>>> RX:             200
>>>>>>> RX Mini:        0
>>>>>>> RX Jumbo:       100
>>>>>>> TX:             511
>>>>>>> 
>>>>>>> ethtool -c eth0
>>>>>>> Coalesce parameters for eth0:
>>>>>>> Adaptive RX: off  TX: off
>>>>>>> stats-block-usecs: 0
>>>>>>> sample-interval: 0
>>>>>>> pkt-rate-low: 0
>>>>>>> pkt-rate-high: 0
>>>>>>> 
>>>>>>> rx-usecs: 20
>>>>>>> rx-frames: 5
>>>>>>> rx-usecs-irq: 0
>>>>>>> rx-frames-irq: 5
>>>>>>> 
>>>>>>> tx-usecs: 72
>>>>>>> tx-frames: 53
>>>>>>> tx-usecs-irq: 0
>>>>>>> tx-frames-irq: 5
>>>>>>> 
>>>>>>> rx-usecs-low: 0
>>>>>>> rx-frame-low: 0
>>>>>>> tx-usecs-low: 0
>>>>>>> tx-frame-low: 0
>>>>>>> 
>>>>>>> rx-usecs-high: 0
>>>>>>> rx-frame-high: 0
>>>>>>> tx-usecs-high: 0
>>>>>>> tx-frame-high: 0
>>>>>>> 
>>>>>>> ethtool -k eth0
>>>>>>> Features for eth0:
>>>>>>> rx-checksumming: on
>>>>>>> tx-checksumming: on
>>>>>>>     tx-checksum-ipv4: on
>>>>>>>     tx-checksum-ip-generic: off [fixed]
>>>>>>>     tx-checksum-ipv6: on
>>>>>>>     tx-checksum-fcoe-crc: off [fixed]
>>>>>>>     tx-checksum-sctp: off [fixed]
>>>>>>> scatter-gather: on
>>>>>>>     tx-scatter-gather: on
>>>>>>>     tx-scatter-gather-fraglist: off [fixed]
>>>>>>> tcp-segmentation-offload: on
>>>>>>>     tx-tcp-segmentation: on
>>>>>>>     tx-tcp-ecn-segmentation: on
>>>>>>>     tx-tcp-mangleid-segmentation: off
>>>>>>>     tx-tcp6-segmentation: on
>>>>>>> udp-fragmentation-offload: off
>>>>>>> generic-segmentation-offload: on
>>>>>>> generic-receive-offload: on
>>>>>>> large-receive-offload: off [fixed]
>>>>>>> rx-vlan-offload: on [fixed]
>>>>>>> tx-vlan-offload: on [fixed]
>>>>>>> ntuple-filters: off [fixed]
>>>>>>> receive-hashing: off [fixed]
>>>>>>> highdma: on
>>>>>>> rx-vlan-filter: off [fixed]
>>>>>>> vlan-challenged: off [fixed]
>>>>>>> tx-lockless: off [fixed]
>>>>>>> netns-local: off [fixed]
>>>>>>> tx-gso-robust: off [fixed]
>>>>>>> tx-fcoe-segmentation: off [fixed]
>>>>>>> tx-gre-segmentation: off [fixed]
>>>>>>> tx-gre-csum-segmentation: off [fixed]
>>>>>>> tx-ipxip4-segmentation: off [fixed]
>>>>>>> tx-ipxip6-segmentation: off [fixed]
>>>>>>> tx-udp_tnl-segmentation: off [fixed]
>>>>>>> tx-udp_tnl-csum-segmentation: off [fixed]
>>>>>>> tx-gso-partial: off [fixed]
>>>>>>> tx-sctp-segmentation: off [fixed]
>>>>>>> tx-esp-segmentation: off [fixed]
>>>>>>> tx-udp-segmentation: off [fixed]
>>>>>>> fcoe-mtu: off [fixed]
>>>>>>> tx-nocache-copy: off
>>>>>>> loopback: off [fixed]
>>>>>>> rx-fcs: off [fixed]
>>>>>>> rx-all: off [fixed]
>>>>>>> tx-vlan-stag-hw-insert: off [fixed]
>>>>>>> rx-vlan-stag-hw-parse: off [fixed]
>>>>>>> rx-vlan-stag-filter: off [fixed]
>>>>>>> l2-fwd-offload: off [fixed]
>>>>>>> hw-tc-offload: off [fixed]
>>>>>>> esp-hw-offload: off [fixed]
>>>>>>> esp-tx-csum-hw-offload: off [fixed]
>>>>>>> rx-udp_tunnel-port-offload: off [fixed]
>>>>>>> tls-hw-tx-offload: off [fixed]
>>>>>>> tls-hw-rx-offload: off [fixed]
>>>>>>> rx-gro-hw: off [fixed]
>>>>>>> tls-hw-record: off [fixed]
>>>>>>> 
>>>>>>> ethtool -n eth0
>>>>>>> 4 RX rings available
>>>>>>> rxclass: Cannot get RX class rule count: Operation not supported
>>>>>>> RX classification rule retrieval failed
>>>>>>> 
>>>>>>> ethtool -t eth0
>>>>>>> The test result is PASS
>>>>>>> The test extra info:
>>>>>>> nvram test        (online)       0
>>>>>>> link test         (online)       0
>>>>>>> register test     (offline)      0
>>>>>>> memory test       (offline)      0
>>>>>>> mac loopback test (offline)      0
>>>>>>> phy loopback test (offline)      0
>>>>>>> ext loopback test (offline)      0
>>>>>>> interrupt test    (offline)      0
>>>>>>> 
>>>>>>> ethtool -T eth0
>>>>>>> Time stamping parameters for eth0:
>>>>>>> Capabilities:
>>>>>>>     software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>>>>>>     software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>>>>>>     software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>>>>>>> PTP Hardware Clock: none
>>>>>>> Hardware Transmit Timestamp Modes:
>>>>>>>     off                   (HWTSTAMP_TX_OFF)
>>>>>>>     on                    (HWTSTAMP_TX_ON)
>>>>>>> Hardware Receive Filter Modes:
>>>>>>>     none                  (HWTSTAMP_FILTER_NONE)
>>>>>>>     ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>>>>>>     ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>>>>>>     ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>>>>>>> 
>>>>>>> ethtool -l eth0
>>>>>>> Channel parameters for eth0:
>>>>>>> Pre-set maximums:
>>>>>>> RX:             4
>>>>>>> TX:             1
>>>>>>> Other:          0
>>>>>>> Combined:       0
>>>>>>> Current hardware settings:
>>>>>>> RX:             4
>>>>>>> TX:             1
>>>>>>> Other:          0
>>>>>>> Combined:       0
>>>>>>> 
>>>>>>> ethtool --show-eee eth0
>>>>>>> EEE Settings for eth0:
>>>>>>>     EEE status: enabled - active
>>>>>>>     Tx LPI: 2047 (us)
>>>>>>>     Supported EEE link modes:  100baseT/Full
>>>>>>>                                1000baseT/Full
>>>>>>>     Advertised EEE link modes:  100baseT/Full
>>>>>>>                                 1000baseT/Full
>>>>>>>     Link partner advertised EEE link modes:  100baseT/Full
>>>>>>>                                              1000baseT/Full
>>>>>>> 
>>>>>>>> These are all the tg3 changes between 4.19 and 5.0:
>>>>>>>> 
>>>>>>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>>>>>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>>>>>>> mac address
>>>>>>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>>>>>>> from u32 to link mode
>>>>>>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>>>>>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>>>>>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>>>>>>> configuration is supported
>>>>>>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>>>>>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>>>>>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>>>>>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>>>>>>> 
>>>>>>>> Most of the changes are related to PHY settings.  I suggest that you
>>>>>>>> check the link settings, including speed, pause, asym pause, etc
>>>>>>>> between the working kernel and the non-working kernel to see if there
>>>>>>>> are differences in the settings.
>>>>>>> 
>>>>>> 
>>>>> 
>> 
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-11-11 13:44                   ` Rudolf Spring
@ 2019-11-13 12:52                     ` Rudolf Spring
  2019-11-13 13:58                       ` Rudolf Spring
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-11-13 12:52 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

The problem is annoying. Any suggestions.

This happens if I download a 5GB iso file and surf the internet simultaneously. I think I will go back to 4.19.  

[140077.602708] tg3 0000:01:00.0 eth0: Link is down
[140077.886946] br0: port 1(eth0) entered disabled state
[140081.391091] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[140081.391095] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[140081.391108] tg3 0000:01:00.0 eth0: EEE is enabled
[140081.391132] br0: port 1(eth0) entered blocking state
[140081.391134] br0: port 1(eth0) entered forwarding state
[140617.773819] tg3 0000:01:00.0 eth0: Link is down
[140618.059022] br0: port 1(eth0) entered disabled state
[140621.542857] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[140621.542859] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[140621.542860] tg3 0000:01:00.0 eth0: EEE is enabled
[140621.542872] br0: port 1(eth0) entered blocking state
[140621.542874] br0: port 1(eth0) entered forwarding state
[140688.432489] tg3 0000:01:00.0 eth0: Link is down
[140688.717079] br0: port 1(eth0) entered disabled state
[140692.181432] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[140692.181434] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[140692.181435] tg3 0000:01:00.0 eth0: EEE is enabled
[140692.181447] br0: port 1(eth0) entered blocking state
[140692.181449] br0: port 1(eth0) entered forwarding state
[141381.695473] tg3 0000:01:00.0 eth0: Link is down
[141381.979806] br0: port 1(eth0) entered disabled state
[141385.484010] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[141385.484012] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[141385.484013] tg3 0000:01:00.0 eth0: EEE is enabled
[141385.484030] br0: port 1(eth0) entered blocking state
[141385.484032] br0: port 1(eth0) entered forwarding state
[141948.494116] tg3 0000:01:00.0 eth0: Link is down
[141948.779708] br0: port 1(eth0) entered disabled state
[141952.243529] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[141952.243536] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[141952.243539] tg3 0000:01:00.0 eth0: EEE is enabled
[141952.243573] br0: port 1(eth0) entered blocking state
[141952.243576] br0: port 1(eth0) entered forwarding state


> On 11 Nov 2019, at 13:44, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> 
> Problem remains. Workaround not successful.
> 
> tx_mac_errors: 19
> 
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>        ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>        RX packets 450085  bytes 287538677 (274.2 MiB)
>        RX errors 0  dropped 0  overruns 0  frame 0
>        TX packets 381863  bytes 444155170 (423.5 MiB)
>        TX errors 19  dropped 0 overruns 0  carrier 0  collisions 0
>        device interrupt 16  
> 
> 
> [ 9257.566343] tg3 0000:01:00.0 eth0: Link is down
> [ 9257.849823] br0: port 1(eth0) entered disabled state
> [ 9261.358018] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [ 9261.358022] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [ 9261.358025] tg3 0000:01:00.0 eth0: EEE is enabled
> [ 9261.358064] br0: port 1(eth0) entered blocking state
> [ 9261.358066] br0: port 1(eth0) entered forwarding state
> 
>> On 11 Nov 2019, at 08:15, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>> 
>> I found a workaround. Changing the mac of br0 to the mac of the tg3 and so far no more tx mac errors. I’m not sure but its probably a bridge and not a tg3 problem. With kernel < 5.0 this was not necessary.
>> 
>>> On 31 Oct 2019, at 19:42, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>> 
>>> I’m using it in bridged mode with wlan adapters and hostapd. The problem only happens if I access over eth0 not over wlan0 or wlan1. STP is not the problem. Same config with 4.19 has no problems only after 5.0.
>>> 
>>> driver: tg3
>>> version: 3.137
>>> firmware-version: 57766a-v1.13
>>> expansion-rom-version: 
>>> bus-info: 0000:01:00.0
>>> supports-statistics: yes
>>> supports-test: yes
>>> supports-eeprom-access: yes
>>> supports-register-dump: yes
>>> supports-priv-flags: no
>>> 
>>>> On 31 Oct 2019, at 11:49, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>> 
>>>> Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
>>>> I used the internet for almost 15-20 mins and no MAC errors observed.
>>>> Can you please provide ethtool -i output? I will use the same f/w
>>>> version and try.
>>>> 
>>>> On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
>>>> <siva.kallam@broadcom.com> wrote:
>>>>> 
>>>>> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>> 
>>>>>> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>>>>>> 
>>>>> Yes. We are trying to reproduce in our local lab.  We will update once
>>>>> we have reproduction.
>>>>>> 
>>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>>     ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>>     RX packets 13844854  bytes 2298858755 (2.1 GiB)
>>>>>>     RX errors 0  dropped 2  overruns 0  frame 0
>>>>>>     TX packets 14831625  bytes 75684684566 (70.4 GiB)
>>>>>>     TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>>     device interrupt 16
>>>>>> 
>>>>>>  tx_octets: 75686159197
>>>>>>  tx_collisions: 0
>>>>>>  tx_xon_sent: 0
>>>>>>  tx_xoff_sent: 0
>>>>>>  tx_flow_control: 0
>>>>>>  tx_mac_errors: 158
>>>>>>  tx_single_collisions: 0
>>>>>>  tx_mult_collisions: 0
>>>>>>  tx_deferred: 0
>>>>>>  tx_excessive_collisions: 0
>>>>>>  tx_late_collisions: 0
>>>>>>  tx_collide_2times: 0
>>>>>>  tx_collide_3times: 0
>>>>>>  tx_collide_4times: 0
>>>>>>  tx_collide_5times: 0
>>>>>>  tx_collide_6times: 0
>>>>>>  tx_collide_7times: 0
>>>>>>  tx_collide_8times: 0
>>>>>>  tx_collide_9times: 0
>>>>>>  tx_collide_10times: 0
>>>>>>  tx_collide_11times: 0
>>>>>>  tx_collide_12times: 0
>>>>>>  tx_collide_13times: 0
>>>>>>  tx_collide_14times: 0
>>>>>>  tx_collide_15times: 0
>>>>>>  tx_ucast_packets: 14400082
>>>>>>  tx_mcast_packets: 435104
>>>>>>  tx_bcast_packets: 1542
>>>>>>  tx_carrier_sense_errors: 0
>>>>>>  tx_discards: 0
>>>>>>  tx_errors: 0
>>>>>> 
>>>>>> 
>>>>>>> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>> 
>>>>>>> With Kernel 5.3.2. Interesting all are tx_mac_errors.
>>>>>>> 
>>>>>>> ifconfig  eth0
>>>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>>>    ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>>>    RX packets 1649204  bytes 775261068 (739.3 MiB)
>>>>>>>    RX errors 0  dropped 0  overruns 0  frame 0
>>>>>>>    TX packets 1144621  bytes 1241414276 (1.1 GiB)
>>>>>>>    TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>>>    device interrupt 16
>>>>>>> 
>>>>>>> ethtool -S eth0
>>>>>>> NIC statistics:
>>>>>>> rx_octets: 752756285
>>>>>>> rx_fragments: 0
>>>>>>> rx_ucast_packets: 1132211
>>>>>>> rx_mcast_packets: 128115
>>>>>>> rx_bcast_packets: 372162
>>>>>>> rx_fcs_errors: 0
>>>>>>> rx_align_errors: 0
>>>>>>> rx_xon_pause_rcvd: 0
>>>>>>> rx_xoff_pause_rcvd: 0
>>>>>>> rx_mac_ctrl_rcvd: 0
>>>>>>> rx_xoff_entered: 0
>>>>>>> rx_frame_too_long_errors: 0
>>>>>>> rx_jabbers: 0
>>>>>>> rx_undersize_packets: 0
>>>>>>> rx_in_length_errors: 0
>>>>>>> rx_out_length_errors: 0
>>>>>>> rx_64_or_less_octet_packets: 0
>>>>>>> rx_65_to_127_octet_packets: 0
>>>>>>> rx_128_to_255_octet_packets: 0
>>>>>>> rx_256_to_511_octet_packets: 0
>>>>>>> rx_512_to_1023_octet_packets: 0
>>>>>>> rx_1024_to_1522_octet_packets: 0
>>>>>>> rx_1523_to_2047_octet_packets: 0
>>>>>>> rx_2048_to_4095_octet_packets: 0
>>>>>>> rx_4096_to_8191_octet_packets: 0
>>>>>>> rx_8192_to_9022_octet_packets: 0
>>>>>>> tx_octets: 1236703101
>>>>>>> tx_collisions: 0
>>>>>>> tx_xon_sent: 0
>>>>>>> tx_xoff_sent: 0
>>>>>>> tx_flow_control: 0
>>>>>>> tx_mac_errors: 369
>>>>>>> tx_single_collisions: 0
>>>>>>> tx_mult_collisions: 0
>>>>>>> tx_deferred: 0
>>>>>>> tx_excessive_collisions: 0
>>>>>>> tx_late_collisions: 0
>>>>>>> tx_collide_2times: 0
>>>>>>> tx_collide_3times: 0
>>>>>>> tx_collide_4times: 0
>>>>>>> tx_collide_5times: 0
>>>>>>> tx_collide_6times: 0
>>>>>>> tx_collide_7times: 0
>>>>>>> tx_collide_8times: 0
>>>>>>> tx_collide_9times: 0
>>>>>>> tx_collide_10times: 0
>>>>>>> tx_collide_11times: 0
>>>>>>> tx_collide_12times: 0
>>>>>>> tx_collide_13times: 0
>>>>>>> tx_collide_14times: 0
>>>>>>> tx_collide_15times: 0
>>>>>>> tx_ucast_packets: 986854
>>>>>>> tx_mcast_packets: 146951
>>>>>>> tx_bcast_packets: 1117
>>>>>>> tx_carrier_sense_errors: 0
>>>>>>> tx_discards: 0
>>>>>>> tx_errors: 0
>>>>>>> dma_writeq_full: 0
>>>>>>> dma_write_prioq_full: 0
>>>>>>> rxbds_empty: 0
>>>>>>> rx_discards: 0
>>>>>>> rx_errors: 0
>>>>>>> rx_threshold_hit: 0
>>>>>>> dma_readq_full: 0
>>>>>>> dma_read_prioq_full: 0
>>>>>>> tx_comp_queue_full: 0
>>>>>>> ring_set_send_prod_index: 0
>>>>>>> ring_status_update: 0
>>>>>>> nic_irqs: 0
>>>>>>> nic_avoided_irqs: 0
>>>>>>> nic_tx_threshold_hit: 0
>>>>>>> mbuf_lwm_thresh_hit: 0
>>>>>>> 
>>>>>>>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>>>>>>>> Can you please provide the output of "ethtool -S eth0" command?
>>>>>>>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>>>>>>>> 0000:01:00.0: enabling device (0000 -> 0002)
>>>>>>>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>>>>>>>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>>>>>>>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>>>>>>>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>>>>>>>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>>>>>>>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>>>>>>>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>>>>>>>> 
>>>>>>>> ethtool eth0
>>>>>>>> Settings for eth0:
>>>>>>>>    Supported ports: [ TP ]
>>>>>>>>    Supported link modes:   10baseT/Half 10baseT/Full
>>>>>>>>                            100baseT/Half 100baseT/Full
>>>>>>>>                            1000baseT/Half 1000baseT/Full
>>>>>>>>    Supported pause frame use: No
>>>>>>>>    Supports auto-negotiation: Yes
>>>>>>>>    Supported FEC modes: Not reported
>>>>>>>>    Advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>>                            100baseT/Half 100baseT/Full
>>>>>>>>                            1000baseT/Half 1000baseT/Full
>>>>>>>>    Advertised pause frame use: Symmetric
>>>>>>>>    Advertised auto-negotiation: Yes
>>>>>>>>    Advertised FEC modes: Not reported
>>>>>>>>    Link partner advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>>                                         100baseT/Half 100baseT/Full
>>>>>>>>                                         1000baseT/Full
>>>>>>>>    Link partner advertised pause frame use: Symmetric
>>>>>>>>    Link partner advertised auto-negotiation: Yes
>>>>>>>>    Link partner advertised FEC modes: Not reported
>>>>>>>>    Speed: 1000Mb/s
>>>>>>>>    Duplex: Full
>>>>>>>>    Port: Twisted Pair
>>>>>>>>    PHYAD: 1
>>>>>>>>    Transceiver: internal
>>>>>>>>    Auto-negotiation: on
>>>>>>>>    MDI-X: off
>>>>>>>>    Supports Wake-on: g
>>>>>>>>    Wake-on: g
>>>>>>>>    Current message level: 0x000000ff (255)
>>>>>>>>                           drv probe link timer ifdown ifup rx_err tx_err
>>>>>>>>    Link detected: yes
>>>>>>>> 
>>>>>>>> ethtool -a eth0
>>>>>>>> Pause parameters for eth0:
>>>>>>>> Autonegotiate:  on
>>>>>>>> RX:             on
>>>>>>>> TX:             on
>>>>>>>> RX negotiated:  on
>>>>>>>> TX negotiated:  on
>>>>>>>> 
>>>>>>>> ethtool -g eth0
>>>>>>>> Ring parameters for eth0:
>>>>>>>> Pre-set maximums:
>>>>>>>> RX:             511
>>>>>>>> RX Mini:        0
>>>>>>>> RX Jumbo:       255
>>>>>>>> TX:             511
>>>>>>>> Current hardware settings:
>>>>>>>> RX:             200
>>>>>>>> RX Mini:        0
>>>>>>>> RX Jumbo:       100
>>>>>>>> TX:             511
>>>>>>>> 
>>>>>>>> ethtool -c eth0
>>>>>>>> Coalesce parameters for eth0:
>>>>>>>> Adaptive RX: off  TX: off
>>>>>>>> stats-block-usecs: 0
>>>>>>>> sample-interval: 0
>>>>>>>> pkt-rate-low: 0
>>>>>>>> pkt-rate-high: 0
>>>>>>>> 
>>>>>>>> rx-usecs: 20
>>>>>>>> rx-frames: 5
>>>>>>>> rx-usecs-irq: 0
>>>>>>>> rx-frames-irq: 5
>>>>>>>> 
>>>>>>>> tx-usecs: 72
>>>>>>>> tx-frames: 53
>>>>>>>> tx-usecs-irq: 0
>>>>>>>> tx-frames-irq: 5
>>>>>>>> 
>>>>>>>> rx-usecs-low: 0
>>>>>>>> rx-frame-low: 0
>>>>>>>> tx-usecs-low: 0
>>>>>>>> tx-frame-low: 0
>>>>>>>> 
>>>>>>>> rx-usecs-high: 0
>>>>>>>> rx-frame-high: 0
>>>>>>>> tx-usecs-high: 0
>>>>>>>> tx-frame-high: 0
>>>>>>>> 
>>>>>>>> ethtool -k eth0
>>>>>>>> Features for eth0:
>>>>>>>> rx-checksumming: on
>>>>>>>> tx-checksumming: on
>>>>>>>>    tx-checksum-ipv4: on
>>>>>>>>    tx-checksum-ip-generic: off [fixed]
>>>>>>>>    tx-checksum-ipv6: on
>>>>>>>>    tx-checksum-fcoe-crc: off [fixed]
>>>>>>>>    tx-checksum-sctp: off [fixed]
>>>>>>>> scatter-gather: on
>>>>>>>>    tx-scatter-gather: on
>>>>>>>>    tx-scatter-gather-fraglist: off [fixed]
>>>>>>>> tcp-segmentation-offload: on
>>>>>>>>    tx-tcp-segmentation: on
>>>>>>>>    tx-tcp-ecn-segmentation: on
>>>>>>>>    tx-tcp-mangleid-segmentation: off
>>>>>>>>    tx-tcp6-segmentation: on
>>>>>>>> udp-fragmentation-offload: off
>>>>>>>> generic-segmentation-offload: on
>>>>>>>> generic-receive-offload: on
>>>>>>>> large-receive-offload: off [fixed]
>>>>>>>> rx-vlan-offload: on [fixed]
>>>>>>>> tx-vlan-offload: on [fixed]
>>>>>>>> ntuple-filters: off [fixed]
>>>>>>>> receive-hashing: off [fixed]
>>>>>>>> highdma: on
>>>>>>>> rx-vlan-filter: off [fixed]
>>>>>>>> vlan-challenged: off [fixed]
>>>>>>>> tx-lockless: off [fixed]
>>>>>>>> netns-local: off [fixed]
>>>>>>>> tx-gso-robust: off [fixed]
>>>>>>>> tx-fcoe-segmentation: off [fixed]
>>>>>>>> tx-gre-segmentation: off [fixed]
>>>>>>>> tx-gre-csum-segmentation: off [fixed]
>>>>>>>> tx-ipxip4-segmentation: off [fixed]
>>>>>>>> tx-ipxip6-segmentation: off [fixed]
>>>>>>>> tx-udp_tnl-segmentation: off [fixed]
>>>>>>>> tx-udp_tnl-csum-segmentation: off [fixed]
>>>>>>>> tx-gso-partial: off [fixed]
>>>>>>>> tx-sctp-segmentation: off [fixed]
>>>>>>>> tx-esp-segmentation: off [fixed]
>>>>>>>> tx-udp-segmentation: off [fixed]
>>>>>>>> fcoe-mtu: off [fixed]
>>>>>>>> tx-nocache-copy: off
>>>>>>>> loopback: off [fixed]
>>>>>>>> rx-fcs: off [fixed]
>>>>>>>> rx-all: off [fixed]
>>>>>>>> tx-vlan-stag-hw-insert: off [fixed]
>>>>>>>> rx-vlan-stag-hw-parse: off [fixed]
>>>>>>>> rx-vlan-stag-filter: off [fixed]
>>>>>>>> l2-fwd-offload: off [fixed]
>>>>>>>> hw-tc-offload: off [fixed]
>>>>>>>> esp-hw-offload: off [fixed]
>>>>>>>> esp-tx-csum-hw-offload: off [fixed]
>>>>>>>> rx-udp_tunnel-port-offload: off [fixed]
>>>>>>>> tls-hw-tx-offload: off [fixed]
>>>>>>>> tls-hw-rx-offload: off [fixed]
>>>>>>>> rx-gro-hw: off [fixed]
>>>>>>>> tls-hw-record: off [fixed]
>>>>>>>> 
>>>>>>>> ethtool -n eth0
>>>>>>>> 4 RX rings available
>>>>>>>> rxclass: Cannot get RX class rule count: Operation not supported
>>>>>>>> RX classification rule retrieval failed
>>>>>>>> 
>>>>>>>> ethtool -t eth0
>>>>>>>> The test result is PASS
>>>>>>>> The test extra info:
>>>>>>>> nvram test        (online)       0
>>>>>>>> link test         (online)       0
>>>>>>>> register test     (offline)      0
>>>>>>>> memory test       (offline)      0
>>>>>>>> mac loopback test (offline)      0
>>>>>>>> phy loopback test (offline)      0
>>>>>>>> ext loopback test (offline)      0
>>>>>>>> interrupt test    (offline)      0
>>>>>>>> 
>>>>>>>> ethtool -T eth0
>>>>>>>> Time stamping parameters for eth0:
>>>>>>>> Capabilities:
>>>>>>>>    software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>>>>>>>    software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>>>>>>>    software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>>>>>>>> PTP Hardware Clock: none
>>>>>>>> Hardware Transmit Timestamp Modes:
>>>>>>>>    off                   (HWTSTAMP_TX_OFF)
>>>>>>>>    on                    (HWTSTAMP_TX_ON)
>>>>>>>> Hardware Receive Filter Modes:
>>>>>>>>    none                  (HWTSTAMP_FILTER_NONE)
>>>>>>>>    ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>>>>>>>    ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>>>>>>>    ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>>>>>>>> 
>>>>>>>> ethtool -l eth0
>>>>>>>> Channel parameters for eth0:
>>>>>>>> Pre-set maximums:
>>>>>>>> RX:             4
>>>>>>>> TX:             1
>>>>>>>> Other:          0
>>>>>>>> Combined:       0
>>>>>>>> Current hardware settings:
>>>>>>>> RX:             4
>>>>>>>> TX:             1
>>>>>>>> Other:          0
>>>>>>>> Combined:       0
>>>>>>>> 
>>>>>>>> ethtool --show-eee eth0
>>>>>>>> EEE Settings for eth0:
>>>>>>>>    EEE status: enabled - active
>>>>>>>>    Tx LPI: 2047 (us)
>>>>>>>>    Supported EEE link modes:  100baseT/Full
>>>>>>>>                               1000baseT/Full
>>>>>>>>    Advertised EEE link modes:  100baseT/Full
>>>>>>>>                                1000baseT/Full
>>>>>>>>    Link partner advertised EEE link modes:  100baseT/Full
>>>>>>>>                                             1000baseT/Full
>>>>>>>> 
>>>>>>>>> These are all the tg3 changes between 4.19 and 5.0:
>>>>>>>>> 
>>>>>>>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>>>>>>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>>>>>>>> mac address
>>>>>>>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>>>>>>>> from u32 to link mode
>>>>>>>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>>>>>>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>>>>>>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>>>>>>>> configuration is supported
>>>>>>>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>>>>>>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>>>>>>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>>>>>>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>>>>>>>> 
>>>>>>>>> Most of the changes are related to PHY settings.  I suggest that you
>>>>>>>>> check the link settings, including speed, pause, asym pause, etc
>>>>>>>>> between the working kernel and the non-working kernel to see if there
>>>>>>>>> are differences in the settings.
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>> 
>> 
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-11-13 12:52                     ` Rudolf Spring
@ 2019-11-13 13:58                       ` Rudolf Spring
  2019-12-04 10:03                         ` Siva Reddy Kallam
  0 siblings, 1 reply; 13+ messages in thread
From: Rudolf Spring @ 2019-11-13 13:58 UTC (permalink / raw)
  To: Siva Reddy Kallam; +Cc: Michael Chan, Netdev

You should be able to reproduce it with the following conditions. Build a bridge interface and add only the tg3. Bridge config like this:

config_eth0=“null"
config_br0="192.168.1.1 netmask 255.255.255.0 brd 192.168.1.255"
bridge_br0=“eth0”

The computer should be configured as router and have a 2nd interface connected to the internet.
net.ipv4.ip_forward = 1

Access this Router from another computer and start downloading a large file and simultaneously browse the internet. Tg3 crashes instantly and repeatedly.

> On 13 Nov 2019, at 12:52, Rudolf Spring <rudolf.spring@gmail.com> wrote:
> 
> The problem is annoying. Any suggestions.
> 
> This happens if I download a 5GB iso file and surf the internet simultaneously. I think I will go back to 4.19.  
> 
> [140077.602708] tg3 0000:01:00.0 eth0: Link is down
> [140077.886946] br0: port 1(eth0) entered disabled state
> [140081.391091] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [140081.391095] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [140081.391108] tg3 0000:01:00.0 eth0: EEE is enabled
> [140081.391132] br0: port 1(eth0) entered blocking state
> [140081.391134] br0: port 1(eth0) entered forwarding state
> [140617.773819] tg3 0000:01:00.0 eth0: Link is down
> [140618.059022] br0: port 1(eth0) entered disabled state
> [140621.542857] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [140621.542859] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [140621.542860] tg3 0000:01:00.0 eth0: EEE is enabled
> [140621.542872] br0: port 1(eth0) entered blocking state
> [140621.542874] br0: port 1(eth0) entered forwarding state
> [140688.432489] tg3 0000:01:00.0 eth0: Link is down
> [140688.717079] br0: port 1(eth0) entered disabled state
> [140692.181432] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [140692.181434] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [140692.181435] tg3 0000:01:00.0 eth0: EEE is enabled
> [140692.181447] br0: port 1(eth0) entered blocking state
> [140692.181449] br0: port 1(eth0) entered forwarding state
> [141381.695473] tg3 0000:01:00.0 eth0: Link is down
> [141381.979806] br0: port 1(eth0) entered disabled state
> [141385.484010] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [141385.484012] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [141385.484013] tg3 0000:01:00.0 eth0: EEE is enabled
> [141385.484030] br0: port 1(eth0) entered blocking state
> [141385.484032] br0: port 1(eth0) entered forwarding state
> [141948.494116] tg3 0000:01:00.0 eth0: Link is down
> [141948.779708] br0: port 1(eth0) entered disabled state
> [141952.243529] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
> [141952.243536] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
> [141952.243539] tg3 0000:01:00.0 eth0: EEE is enabled
> [141952.243573] br0: port 1(eth0) entered blocking state
> [141952.243576] br0: port 1(eth0) entered forwarding state
> 
> 
>> On 11 Nov 2019, at 13:44, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>> 
>> Problem remains. Workaround not successful.
>> 
>> tx_mac_errors: 19
>> 
>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>       ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>       RX packets 450085  bytes 287538677 (274.2 MiB)
>>       RX errors 0  dropped 0  overruns 0  frame 0
>>       TX packets 381863  bytes 444155170 (423.5 MiB)
>>       TX errors 19  dropped 0 overruns 0  carrier 0  collisions 0
>>       device interrupt 16  
>> 
>> 
>> [ 9257.566343] tg3 0000:01:00.0 eth0: Link is down
>> [ 9257.849823] br0: port 1(eth0) entered disabled state
>> [ 9261.358018] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>> [ 9261.358022] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>> [ 9261.358025] tg3 0000:01:00.0 eth0: EEE is enabled
>> [ 9261.358064] br0: port 1(eth0) entered blocking state
>> [ 9261.358066] br0: port 1(eth0) entered forwarding state
>> 
>>> On 11 Nov 2019, at 08:15, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>> 
>>> I found a workaround. Changing the mac of br0 to the mac of the tg3 and so far no more tx mac errors. I’m not sure but its probably a bridge and not a tg3 problem. With kernel < 5.0 this was not necessary.
>>> 
>>>> On 31 Oct 2019, at 19:42, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>> 
>>>> I’m using it in bridged mode with wlan adapters and hostapd. The problem only happens if I access over eth0 not over wlan0 or wlan1. STP is not the problem. Same config with 4.19 has no problems only after 5.0.
>>>> 
>>>> driver: tg3
>>>> version: 3.137
>>>> firmware-version: 57766a-v1.13
>>>> expansion-rom-version: 
>>>> bus-info: 0000:01:00.0
>>>> supports-statistics: yes
>>>> supports-test: yes
>>>> supports-eeprom-access: yes
>>>> supports-register-dump: yes
>>>> supports-priv-flags: no
>>>> 
>>>>> On 31 Oct 2019, at 11:49, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>> 
>>>>> Tried reproducing local with 5.4.0-rc3 kernel and I couldn't observe the issue.
>>>>> I used the internet for almost 15-20 mins and no MAC errors observed.
>>>>> Can you please provide ethtool -i output? I will use the same f/w
>>>>> version and try.
>>>>> 
>>>>> On Fri, Oct 18, 2019 at 12:21 PM Siva Reddy Kallam
>>>>> <siva.kallam@broadcom.com> wrote:
>>>>>> 
>>>>>> On Thu, Oct 17, 2019 at 11:03 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>> 
>>>>>>> Can you reproduce the error in the lab ? Same behaviour with Kernel 5.3.6.
>>>>>>> 
>>>>>> Yes. We are trying to reproduce in our local lab.  We will update once
>>>>>> we have reproduction.
>>>>>>> 
>>>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>>>    ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>>>    RX packets 13844854  bytes 2298858755 (2.1 GiB)
>>>>>>>    RX errors 0  dropped 2  overruns 0  frame 0
>>>>>>>    TX packets 14831625  bytes 75684684566 (70.4 GiB)
>>>>>>>    TX errors 158  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>>>    device interrupt 16
>>>>>>> 
>>>>>>> tx_octets: 75686159197
>>>>>>> tx_collisions: 0
>>>>>>> tx_xon_sent: 0
>>>>>>> tx_xoff_sent: 0
>>>>>>> tx_flow_control: 0
>>>>>>> tx_mac_errors: 158
>>>>>>> tx_single_collisions: 0
>>>>>>> tx_mult_collisions: 0
>>>>>>> tx_deferred: 0
>>>>>>> tx_excessive_collisions: 0
>>>>>>> tx_late_collisions: 0
>>>>>>> tx_collide_2times: 0
>>>>>>> tx_collide_3times: 0
>>>>>>> tx_collide_4times: 0
>>>>>>> tx_collide_5times: 0
>>>>>>> tx_collide_6times: 0
>>>>>>> tx_collide_7times: 0
>>>>>>> tx_collide_8times: 0
>>>>>>> tx_collide_9times: 0
>>>>>>> tx_collide_10times: 0
>>>>>>> tx_collide_11times: 0
>>>>>>> tx_collide_12times: 0
>>>>>>> tx_collide_13times: 0
>>>>>>> tx_collide_14times: 0
>>>>>>> tx_collide_15times: 0
>>>>>>> tx_ucast_packets: 14400082
>>>>>>> tx_mcast_packets: 435104
>>>>>>> tx_bcast_packets: 1542
>>>>>>> tx_carrier_sense_errors: 0
>>>>>>> tx_discards: 0
>>>>>>> tx_errors: 0
>>>>>>> 
>>>>>>> 
>>>>>>>> On 4 Oct 2019, at 14:53, Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>>> 
>>>>>>>> With Kernel 5.3.2. Interesting all are tx_mac_errors.
>>>>>>>> 
>>>>>>>> ifconfig  eth0
>>>>>>>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
>>>>>>>>   ether a8:20:66:28:e6:95  txqueuelen 1000  (Ethernet)
>>>>>>>>   RX packets 1649204  bytes 775261068 (739.3 MiB)
>>>>>>>>   RX errors 0  dropped 0  overruns 0  frame 0
>>>>>>>>   TX packets 1144621  bytes 1241414276 (1.1 GiB)
>>>>>>>>   TX errors 369  dropped 0 overruns 0  carrier 0  collisions 0
>>>>>>>>   device interrupt 16
>>>>>>>> 
>>>>>>>> ethtool -S eth0
>>>>>>>> NIC statistics:
>>>>>>>> rx_octets: 752756285
>>>>>>>> rx_fragments: 0
>>>>>>>> rx_ucast_packets: 1132211
>>>>>>>> rx_mcast_packets: 128115
>>>>>>>> rx_bcast_packets: 372162
>>>>>>>> rx_fcs_errors: 0
>>>>>>>> rx_align_errors: 0
>>>>>>>> rx_xon_pause_rcvd: 0
>>>>>>>> rx_xoff_pause_rcvd: 0
>>>>>>>> rx_mac_ctrl_rcvd: 0
>>>>>>>> rx_xoff_entered: 0
>>>>>>>> rx_frame_too_long_errors: 0
>>>>>>>> rx_jabbers: 0
>>>>>>>> rx_undersize_packets: 0
>>>>>>>> rx_in_length_errors: 0
>>>>>>>> rx_out_length_errors: 0
>>>>>>>> rx_64_or_less_octet_packets: 0
>>>>>>>> rx_65_to_127_octet_packets: 0
>>>>>>>> rx_128_to_255_octet_packets: 0
>>>>>>>> rx_256_to_511_octet_packets: 0
>>>>>>>> rx_512_to_1023_octet_packets: 0
>>>>>>>> rx_1024_to_1522_octet_packets: 0
>>>>>>>> rx_1523_to_2047_octet_packets: 0
>>>>>>>> rx_2048_to_4095_octet_packets: 0
>>>>>>>> rx_4096_to_8191_octet_packets: 0
>>>>>>>> rx_8192_to_9022_octet_packets: 0
>>>>>>>> tx_octets: 1236703101
>>>>>>>> tx_collisions: 0
>>>>>>>> tx_xon_sent: 0
>>>>>>>> tx_xoff_sent: 0
>>>>>>>> tx_flow_control: 0
>>>>>>>> tx_mac_errors: 369
>>>>>>>> tx_single_collisions: 0
>>>>>>>> tx_mult_collisions: 0
>>>>>>>> tx_deferred: 0
>>>>>>>> tx_excessive_collisions: 0
>>>>>>>> tx_late_collisions: 0
>>>>>>>> tx_collide_2times: 0
>>>>>>>> tx_collide_3times: 0
>>>>>>>> tx_collide_4times: 0
>>>>>>>> tx_collide_5times: 0
>>>>>>>> tx_collide_6times: 0
>>>>>>>> tx_collide_7times: 0
>>>>>>>> tx_collide_8times: 0
>>>>>>>> tx_collide_9times: 0
>>>>>>>> tx_collide_10times: 0
>>>>>>>> tx_collide_11times: 0
>>>>>>>> tx_collide_12times: 0
>>>>>>>> tx_collide_13times: 0
>>>>>>>> tx_collide_14times: 0
>>>>>>>> tx_collide_15times: 0
>>>>>>>> tx_ucast_packets: 986854
>>>>>>>> tx_mcast_packets: 146951
>>>>>>>> tx_bcast_packets: 1117
>>>>>>>> tx_carrier_sense_errors: 0
>>>>>>>> tx_discards: 0
>>>>>>>> tx_errors: 0
>>>>>>>> dma_writeq_full: 0
>>>>>>>> dma_write_prioq_full: 0
>>>>>>>> rxbds_empty: 0
>>>>>>>> rx_discards: 0
>>>>>>>> rx_errors: 0
>>>>>>>> rx_threshold_hit: 0
>>>>>>>> dma_readq_full: 0
>>>>>>>> dma_read_prioq_full: 0
>>>>>>>> tx_comp_queue_full: 0
>>>>>>>> ring_set_send_prod_index: 0
>>>>>>>> ring_status_update: 0
>>>>>>>> nic_irqs: 0
>>>>>>>> nic_avoided_irqs: 0
>>>>>>>> nic_tx_threshold_hit: 0
>>>>>>>> mbuf_lwm_thresh_hit: 0
>>>>>>>> 
>>>>>>>>> On 4 Oct 2019, at 12:52, Siva Reddy Kallam <siva.kallam@broadcom.com> wrote:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Wed, Oct 2, 2019 at 10:05 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>>>>>>>>> The output of dmesg and ethtool is identical between 4.19.72 and 5.3.2. Any suggestions ?
>>>>>>>>> Can you please provide the output of "ethtool -S eth0" command?
>>>>>>>>> In the mean time, I will review the register dump and also try to reproduce in our lab.
>>>>>>>>> 0000:01:00.0: enabling device (0000 -> 0002)
>>>>>>>>> [    1.140738] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:28:e6:95
>>>>>>>>> [    1.140741] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
>>>>>>>>> [    1.140743] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
>>>>>>>>> [    1.140744] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
>>>>>>>>> [   10.290239] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
>>>>>>>>> [   10.290241] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
>>>>>>>>> [   10.290242] tg3 0000:01:00.0 eth0: EEE is enabled
>>>>>>>>> 
>>>>>>>>> ethtool eth0
>>>>>>>>> Settings for eth0:
>>>>>>>>>   Supported ports: [ TP ]
>>>>>>>>>   Supported link modes:   10baseT/Half 10baseT/Full
>>>>>>>>>                           100baseT/Half 100baseT/Full
>>>>>>>>>                           1000baseT/Half 1000baseT/Full
>>>>>>>>>   Supported pause frame use: No
>>>>>>>>>   Supports auto-negotiation: Yes
>>>>>>>>>   Supported FEC modes: Not reported
>>>>>>>>>   Advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>>>                           100baseT/Half 100baseT/Full
>>>>>>>>>                           1000baseT/Half 1000baseT/Full
>>>>>>>>>   Advertised pause frame use: Symmetric
>>>>>>>>>   Advertised auto-negotiation: Yes
>>>>>>>>>   Advertised FEC modes: Not reported
>>>>>>>>>   Link partner advertised link modes:  10baseT/Half 10baseT/Full
>>>>>>>>>                                        100baseT/Half 100baseT/Full
>>>>>>>>>                                        1000baseT/Full
>>>>>>>>>   Link partner advertised pause frame use: Symmetric
>>>>>>>>>   Link partner advertised auto-negotiation: Yes
>>>>>>>>>   Link partner advertised FEC modes: Not reported
>>>>>>>>>   Speed: 1000Mb/s
>>>>>>>>>   Duplex: Full
>>>>>>>>>   Port: Twisted Pair
>>>>>>>>>   PHYAD: 1
>>>>>>>>>   Transceiver: internal
>>>>>>>>>   Auto-negotiation: on
>>>>>>>>>   MDI-X: off
>>>>>>>>>   Supports Wake-on: g
>>>>>>>>>   Wake-on: g
>>>>>>>>>   Current message level: 0x000000ff (255)
>>>>>>>>>                          drv probe link timer ifdown ifup rx_err tx_err
>>>>>>>>>   Link detected: yes
>>>>>>>>> 
>>>>>>>>> ethtool -a eth0
>>>>>>>>> Pause parameters for eth0:
>>>>>>>>> Autonegotiate:  on
>>>>>>>>> RX:             on
>>>>>>>>> TX:             on
>>>>>>>>> RX negotiated:  on
>>>>>>>>> TX negotiated:  on
>>>>>>>>> 
>>>>>>>>> ethtool -g eth0
>>>>>>>>> Ring parameters for eth0:
>>>>>>>>> Pre-set maximums:
>>>>>>>>> RX:             511
>>>>>>>>> RX Mini:        0
>>>>>>>>> RX Jumbo:       255
>>>>>>>>> TX:             511
>>>>>>>>> Current hardware settings:
>>>>>>>>> RX:             200
>>>>>>>>> RX Mini:        0
>>>>>>>>> RX Jumbo:       100
>>>>>>>>> TX:             511
>>>>>>>>> 
>>>>>>>>> ethtool -c eth0
>>>>>>>>> Coalesce parameters for eth0:
>>>>>>>>> Adaptive RX: off  TX: off
>>>>>>>>> stats-block-usecs: 0
>>>>>>>>> sample-interval: 0
>>>>>>>>> pkt-rate-low: 0
>>>>>>>>> pkt-rate-high: 0
>>>>>>>>> 
>>>>>>>>> rx-usecs: 20
>>>>>>>>> rx-frames: 5
>>>>>>>>> rx-usecs-irq: 0
>>>>>>>>> rx-frames-irq: 5
>>>>>>>>> 
>>>>>>>>> tx-usecs: 72
>>>>>>>>> tx-frames: 53
>>>>>>>>> tx-usecs-irq: 0
>>>>>>>>> tx-frames-irq: 5
>>>>>>>>> 
>>>>>>>>> rx-usecs-low: 0
>>>>>>>>> rx-frame-low: 0
>>>>>>>>> tx-usecs-low: 0
>>>>>>>>> tx-frame-low: 0
>>>>>>>>> 
>>>>>>>>> rx-usecs-high: 0
>>>>>>>>> rx-frame-high: 0
>>>>>>>>> tx-usecs-high: 0
>>>>>>>>> tx-frame-high: 0
>>>>>>>>> 
>>>>>>>>> ethtool -k eth0
>>>>>>>>> Features for eth0:
>>>>>>>>> rx-checksumming: on
>>>>>>>>> tx-checksumming: on
>>>>>>>>>   tx-checksum-ipv4: on
>>>>>>>>>   tx-checksum-ip-generic: off [fixed]
>>>>>>>>>   tx-checksum-ipv6: on
>>>>>>>>>   tx-checksum-fcoe-crc: off [fixed]
>>>>>>>>>   tx-checksum-sctp: off [fixed]
>>>>>>>>> scatter-gather: on
>>>>>>>>>   tx-scatter-gather: on
>>>>>>>>>   tx-scatter-gather-fraglist: off [fixed]
>>>>>>>>> tcp-segmentation-offload: on
>>>>>>>>>   tx-tcp-segmentation: on
>>>>>>>>>   tx-tcp-ecn-segmentation: on
>>>>>>>>>   tx-tcp-mangleid-segmentation: off
>>>>>>>>>   tx-tcp6-segmentation: on
>>>>>>>>> udp-fragmentation-offload: off
>>>>>>>>> generic-segmentation-offload: on
>>>>>>>>> generic-receive-offload: on
>>>>>>>>> large-receive-offload: off [fixed]
>>>>>>>>> rx-vlan-offload: on [fixed]
>>>>>>>>> tx-vlan-offload: on [fixed]
>>>>>>>>> ntuple-filters: off [fixed]
>>>>>>>>> receive-hashing: off [fixed]
>>>>>>>>> highdma: on
>>>>>>>>> rx-vlan-filter: off [fixed]
>>>>>>>>> vlan-challenged: off [fixed]
>>>>>>>>> tx-lockless: off [fixed]
>>>>>>>>> netns-local: off [fixed]
>>>>>>>>> tx-gso-robust: off [fixed]
>>>>>>>>> tx-fcoe-segmentation: off [fixed]
>>>>>>>>> tx-gre-segmentation: off [fixed]
>>>>>>>>> tx-gre-csum-segmentation: off [fixed]
>>>>>>>>> tx-ipxip4-segmentation: off [fixed]
>>>>>>>>> tx-ipxip6-segmentation: off [fixed]
>>>>>>>>> tx-udp_tnl-segmentation: off [fixed]
>>>>>>>>> tx-udp_tnl-csum-segmentation: off [fixed]
>>>>>>>>> tx-gso-partial: off [fixed]
>>>>>>>>> tx-sctp-segmentation: off [fixed]
>>>>>>>>> tx-esp-segmentation: off [fixed]
>>>>>>>>> tx-udp-segmentation: off [fixed]
>>>>>>>>> fcoe-mtu: off [fixed]
>>>>>>>>> tx-nocache-copy: off
>>>>>>>>> loopback: off [fixed]
>>>>>>>>> rx-fcs: off [fixed]
>>>>>>>>> rx-all: off [fixed]
>>>>>>>>> tx-vlan-stag-hw-insert: off [fixed]
>>>>>>>>> rx-vlan-stag-hw-parse: off [fixed]
>>>>>>>>> rx-vlan-stag-filter: off [fixed]
>>>>>>>>> l2-fwd-offload: off [fixed]
>>>>>>>>> hw-tc-offload: off [fixed]
>>>>>>>>> esp-hw-offload: off [fixed]
>>>>>>>>> esp-tx-csum-hw-offload: off [fixed]
>>>>>>>>> rx-udp_tunnel-port-offload: off [fixed]
>>>>>>>>> tls-hw-tx-offload: off [fixed]
>>>>>>>>> tls-hw-rx-offload: off [fixed]
>>>>>>>>> rx-gro-hw: off [fixed]
>>>>>>>>> tls-hw-record: off [fixed]
>>>>>>>>> 
>>>>>>>>> ethtool -n eth0
>>>>>>>>> 4 RX rings available
>>>>>>>>> rxclass: Cannot get RX class rule count: Operation not supported
>>>>>>>>> RX classification rule retrieval failed
>>>>>>>>> 
>>>>>>>>> ethtool -t eth0
>>>>>>>>> The test result is PASS
>>>>>>>>> The test extra info:
>>>>>>>>> nvram test        (online)       0
>>>>>>>>> link test         (online)       0
>>>>>>>>> register test     (offline)      0
>>>>>>>>> memory test       (offline)      0
>>>>>>>>> mac loopback test (offline)      0
>>>>>>>>> phy loopback test (offline)      0
>>>>>>>>> ext loopback test (offline)      0
>>>>>>>>> interrupt test    (offline)      0
>>>>>>>>> 
>>>>>>>>> ethtool -T eth0
>>>>>>>>> Time stamping parameters for eth0:
>>>>>>>>> Capabilities:
>>>>>>>>>   software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
>>>>>>>>>   software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
>>>>>>>>>   software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>>>>>>>>> PTP Hardware Clock: none
>>>>>>>>> Hardware Transmit Timestamp Modes:
>>>>>>>>>   off                   (HWTSTAMP_TX_OFF)
>>>>>>>>>   on                    (HWTSTAMP_TX_ON)
>>>>>>>>> Hardware Receive Filter Modes:
>>>>>>>>>   none                  (HWTSTAMP_FILTER_NONE)
>>>>>>>>>   ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
>>>>>>>>>   ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
>>>>>>>>>   ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
>>>>>>>>> 
>>>>>>>>> ethtool -l eth0
>>>>>>>>> Channel parameters for eth0:
>>>>>>>>> Pre-set maximums:
>>>>>>>>> RX:             4
>>>>>>>>> TX:             1
>>>>>>>>> Other:          0
>>>>>>>>> Combined:       0
>>>>>>>>> Current hardware settings:
>>>>>>>>> RX:             4
>>>>>>>>> TX:             1
>>>>>>>>> Other:          0
>>>>>>>>> Combined:       0
>>>>>>>>> 
>>>>>>>>> ethtool --show-eee eth0
>>>>>>>>> EEE Settings for eth0:
>>>>>>>>>   EEE status: enabled - active
>>>>>>>>>   Tx LPI: 2047 (us)
>>>>>>>>>   Supported EEE link modes:  100baseT/Full
>>>>>>>>>                              1000baseT/Full
>>>>>>>>>   Advertised EEE link modes:  100baseT/Full
>>>>>>>>>                               1000baseT/Full
>>>>>>>>>   Link partner advertised EEE link modes:  100baseT/Full
>>>>>>>>>                                            1000baseT/Full
>>>>>>>>> 
>>>>>>>>>> These are all the tg3 changes between 4.19 and 5.0:
>>>>>>>>>> 
>>>>>>>>>> 750afb08ca71 cross-tree: phase out dma_zalloc_coherent()
>>>>>>>>>> cddaf02bcb73 tg3: optionally use eth_platform_get_mac_address() to get
>>>>>>>>>> mac address
>>>>>>>>>> 3c1bcc8614db net: ethernet: Convert phydev advertize and supported
>>>>>>>>>> from u32 to link mode
>>>>>>>>>> 6fe42e228dc2 tg3: extend PTP gettime function to read system clock
>>>>>>>>>> 310fc0513ea9 tg3: Fix fall-through annotations
>>>>>>>>>> 22b7d29926b5 net: ethernet: Add helper to determine if pause
>>>>>>>>>> configuration is supported
>>>>>>>>>> 70814e819c11 net: ethernet: Add helper for set_pauseparam for Asym Pause
>>>>>>>>>> af8d9bb2f2f4 net: ethernet: Add helper for MACs which support asym pause
>>>>>>>>>> 04b7d41d8046 net: ethernet: Fix up drivers masking pause support
>>>>>>>>>> 58056c1e1b0e net: ethernet: Use phy_set_max_speed() to limit advertised speed
>>>>>>>>>> 
>>>>>>>>>> Most of the changes are related to PHY settings.  I suggest that you
>>>>>>>>>> check the link settings, including speed, pause, asym pause, etc
>>>>>>>>>> between the working kernel and the non-working kernel to see if there
>>>>>>>>>> are differences in the settings.
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>> 
>>> 
>> 
> 


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

* Re: Gentoo Linux 5.x - Tigon3
  2019-11-13 13:58                       ` Rudolf Spring
@ 2019-12-04 10:03                         ` Siva Reddy Kallam
  0 siblings, 0 replies; 13+ messages in thread
From: Siva Reddy Kallam @ 2019-12-04 10:03 UTC (permalink / raw)
  To: Rudolf Spring; +Cc: Michael Chan, Netdev

On Wed, Nov 13, 2019 at 7:28 PM Rudolf Spring <rudolf.spring@gmail.com> wrote:
>
> You should be able to reproduce it with the following conditions. Build a bridge interface and add only the tg3. Bridge config like this:
>
> config_eth0=“null"
> config_br0="192.168.1.1 netmask 255.255.255.0 brd 192.168.1.255"
> bridge_br0=“eth0”
>
> The computer should be configured as router and have a 2nd interface connected to the internet.
> net.ipv4.ip_forward = 1
>
> Access this Router from another computer and start downloading a large file and simultaneously browse the internet. Tg3 crashes instantly and repeatedly.
>
Let me try this way and provide you an update on this. Thanks

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

end of thread, other threads:[~2019-12-04 10:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01 14:30 Gentoo Linux 5.x - Tigon3 Rudolf Spring
2019-10-01 18:17 ` Michael Chan
2019-10-02 16:35   ` Rudolf Spring
     [not found]     ` <CAMet4B7vi6yYu2HZd1Pj7rhtxme8FmT4wbXTjQOnQEqJp0Z_3w@mail.gmail.com>
2019-10-04 13:53       ` Rudolf Spring
2019-10-17 17:33         ` Rudolf Spring
2019-10-18  6:51           ` Siva Reddy Kallam
2019-10-31 11:49             ` Siva Reddy Kallam
2019-10-31 19:42               ` Rudolf Spring
2019-11-11  8:15                 ` Rudolf Spring
2019-11-11 13:44                   ` Rudolf Spring
2019-11-13 12:52                     ` Rudolf Spring
2019-11-13 13:58                       ` Rudolf Spring
2019-12-04 10:03                         ` Siva Reddy Kallam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).