Hi community!
How many MACs do you have? Five or more?
Based on the ifconfig and lshw -class network outputs attached to the bottom of
this mail, there are 5 MACs in my interpretation (since the Docker one is not a
physical MAC (?) I assume).
Yea, does ethtool -T continuously change /dev/ptpX devices on you? That is
probably a kernel or driver bug…
Not ethtool -T specifically, every time I reboot the system and run ethtool -T
it displays a different /dev/ptpX device, I did run this ‘test’ for 15 times
and /dev/ptp0 never got chosen, only /dev/ptp1, /dev/ptp2, /dev/ptp3 and
/dev/ptp4 where /dev/ptp1 and /dev/ptp3 were only chosen one time each and the
rest it was always /dev/ptp2 or /dev/ptp4..
Are you passing only one ethernet device to ptp4l? Or changing? It seems very
suspicious if it keeps changing /dev/ptpX devices for a given interface. This
smells of a potential driver issue.
No, just one: enp0s25
Well, /dev/ptp0 isn't connected to the network interface you are using ptp4l
for.
Seems like it indeed isn’t. However, /dev/ptp0 is the only device that is
actually able to synchronize with phc2sys; all other /dev/ptpX devices are
never reaching servo state s2 and alway return insanely high offset/freq values.
Try Richard's suggestion of automated mode, and see what happens?
Same thing as described right above here: extremely high offset/freq, never
reaching servo state s2.
Any chance you can give us the device id for which specific device you're using?
I ran # lshw -class network and attached the output in this mail below. The
bold text is the interface I am using (enp0s25).
# lshw -class network
*-network:0
description: Ethernet interface
product: 82580 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0f0
version: 01
serial: 00:80:82:4a:63:4e
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet
physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb
driverversion=5.4.0-k firmware=3.29, 0x80000219 latency=0 link=no multicast=yes
port=twisted pair
resources: irq:17 memory:f0580000-f05fffff ioport:e060(size=32)
memory:f060c000-f060ffff
*-network:1
description: Ethernet interface
product: 82580 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0.1
bus info: pci@0000:02:00.1
logical name: enp2s0f1
version: 01
serial: 00:80:82:4a:63:4f
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet
physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb
driverversion=5.4.0-k firmware=3.29, 0x80000219 latency=0 link=no multicast=yes
port=twisted pair
resources: irq:18 memory:f0500000-f057ffff ioport:e040(size=32)
memory:f0608000-f060bfff
*-network:2
description: Ethernet interface
product: 82580 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0.2
bus info: pci@0000:02:00.2
logical name: enp2s0f2
version: 01
serial: 00:80:82:4a:63:50
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet
physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb
driverversion=5.4.0-k firmware=3.29, 0x80000219 latency=0 link=no multicast=yes
port=twisted pair
resources: irq:19 memory:f0480000-f04fffff ioport:e020(size=32)
memory:f0604000-f0607fff
*-network:3
description: Ethernet interface
product: 82580 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0.3
bus info: pci@0000:02:00.3
logical name: enp2s0f3
version: 01
serial: 00:80:82:4a:63:51
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet
physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb
driverversion=5.4.0-k firmware=3.29, 0x80000219 latency=0 link=no multicast=yes
port=twisted pair
resources: irq:16 memory:f0400000-f047ffff ioport:e000(size=32)
memory:f0600000-f0603fff
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 05
serial: 00:80:82:4a:63:52
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt
10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e
driverversion=3.2.6-k duplex=full firmware=0.13-3 ip=10.0.3.206 latency=0
link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:39 memory:f0700000-f071ffff memory:f0729000-f0729fff
ioport:f080(size=32)
*-network
description: Ethernet interface
physical id: 2
logical name: enp2s0f1.3
serial: 00:80:82:4a:63:4f
capacity: 1Gbit/s
capabilities: ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd
autonegotiation
configuration: autonegotiation=on broadcast=yes driver=802.1Q VLAN
Support driverversion=1.8 firmware=N/A link=no multicast=yes port=twisted pair
# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:f9:bc:03:f1 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.3.206 netmask 255.255.255.0 broadcast 10.0.3.255
inet6 fe80::280:82ff:fe4a:6352 prefixlen 64 scopeid 0x20<link>
ether 00:80:82:4a:63:52 txqueuelen 1000 (Ethernet)
RX packets 247805 bytes 367129605 (350.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25655 bytes 2650343 (2.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf0700000-f0720000
enp2s0f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:80:82:4a:63:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf0580000-f05fffff
enp2s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:80:82:4a:63:4f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf0500000-f057ffff
enp2s0f1:0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 10.0.2.20 netmask 255.255.255.0 broadcast 10.0.2.255
ether 00:80:82:4a:63:4f txqueuelen 1000 (Ethernet)
device memory 0xf0500000-f057ffff
enp2s0f2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:80:82:4a:63:50 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf0480000-f04fffff
enp2s0f2:1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 180.0.4.2 netmask 255.255.255.0 broadcast 180.0.4.255
ether 00:80:82:4a:63:50 txqueuelen 1000 (Ethernet)
device memory 0xf0480000-f04fffff
enp2s0f3: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:80:82:4a:63:51 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf0400000-f047ffff
enp2s0f3:2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 180.0.3.2 netmask 255.255.255.0 broadcast 180.0.3.255
ether 00:80:82:4a:63:51 txqueuelen 1000 (Ethernet)
device memory 0xf0400000-f047ffff
enp2s0f1.3: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:80:82:4a:63:4f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp2s0f1.3:0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 200.0.3.20 netmask 255.255.255.0 broadcast 200.0.3.255
ether 00:80:82:4a:63:4f txqueuelen 1000 (Ethernet)
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 7723 bytes 2514776 (2.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7723 bytes 2514776 (2.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Kind regards,
Jord Pool
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users