From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BC679A0561; Thu, 4 Mar 2021 18:38:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5359C40684; Thu, 4 Mar 2021 18:38:05 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id A82E740147 for ; Thu, 4 Mar 2021 18:38:04 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 74BB3A0562; Thu, 4 Mar 2021 18:38:04 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 04 Mar 2021 17:38:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brian90013@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 647] bnxt: ptpclient example doesn't work and produces internal error message X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D647 Bug ID: 647 Summary: bnxt: ptpclient example doesn't work and produces internal error message Product: DPDK Version: 20.11 Hardware: x86 OS: FreeBSD Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: brian90013@gmail.com Target Milestone: --- Hello, I am evaluating the Broadcom P2100G NIC using the bnxt driver. I am current= ly using DPDK 20.11. Today I attempted to test the IEEE1588/PTP capability of = the driver using both testpmd and the ptpclient example that ships with DPDK. I connected the Broadcom card to a different 100G NIC running the ptpd2 serve= r in Ethernet mode. First, I tried ptpclient. I see valid Master clocks (from the remote NIC) b= ut the Slave clock looks like it was never set. It's showing a time around 100= 0s and top reports an uptime of 15min (15min =3D 900s). Also, in each output c= ycle I see an error message from bnxt_hwrm_port_ts_query(). Master Clock id: 00:07:43:ff:fe:59:21:a0 T2 - Slave Clock. 997s 2634438ns T1 - Master Clock. 1614874570s 183027000ns=20 T3 - Slave Clock. 997s 14579369ns T4 - Master Clock. 1614874570s 194978000ns=20 Delta between master and slave clocks:1614873573180395596ns Comparison between Linux kernel Time and PTP: Current PTP Time: Wed Aug 10 20:52:37 2489 819922870 ns Current SYS Time: Thu Mar 4 11:16:10 2021 195072 ns Delta between PTP and Linux Kernel time:-3664277886084680101ns [Ctrl+C to quit] bnxt_hwrm_port_ts_query(): error 1:0:00000000:0000 I checked the master code branch and applied the one PTP-related commit I s= aw (d3376cdc). I also tried running testpmd in ieee1588 mode. It shows SYNC messages comin= g in and bnxt timestamps around 5370s. dpdk-testpmd -- -i EAL: Sysctl reports 64 cpus EAL: Detected 64 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /tmp/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: Contigmem driver has 4 buffers, each of size 1GB EAL: Mapped memory segment 0 @ 0x1040000000: physaddr:0x240000000, len 1073741824 EAL: Mapped memory segment 1 @ 0x1080000000: physaddr:0x280000000, len 1073741824 EAL: Mapped memory segment 2 @ 0x10c0000000: physaddr:0x2c0000000, len 1073741824 EAL: Mapped memory segment 3 @ 0x1100000000: physaddr:0x300000000, len 1073741824 EAL: Probe PCI driver: net_bnxt (14e4:1750) device: 0000:48:00.0 (socket 0) Interactive-mode selected testpmd: create a new mbuf pool : n=3D651456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) Port 0: link state change event Port 0: BC:97:E1:DA:38:40 Checking link statuses... Done testpmd> set fwd ieee1588 Set ieee1588 packet forwarding mode testpmd> start ieee1588 packet forwarding - ports=3D1 - cores=3D1 - streams=3D1 - NUMA sup= port enabled, MP allocation mode: native Logical Core 1 (socket 0) forwards packets on 1 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:00 ieee1588 packet forwarding packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x0 Tx offloads=3D0x10000 RX queue: 0 RX desc=3D512 - RX free threshold=3D64 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D512 - TX free threshold=3D64 TX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 TX offloads=3D0x10000 - TX RS bit threshold=3D0 testpmd> Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5376 s 953074162 ns Port 0 TX timestamp value 5376 s 953115795 ns validated after 0 micro-secon= ds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0xb (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5378 s 60314832 ns Port 0 TX timestamp value 5378 s 60341959 ns validated after 0 micro-seconds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5378 s 952731069 ns Port 0 TX timestamp value 5378 s 952761442 ns validated after 0 micro-secon= ds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0xb (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5380 s 138997133 ns Port 0 TX timestamp value 5380 s 139026602 ns validated after 0 micro-secon= ds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5380 s 953180791 ns Port 0 TX timestamp value 5380 s 953209128 ns validated after 0 micro-secon= ds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0xb (expec= ted 0x0 - PTP_SYNC_MESSAGE) Port 0 IEEE1588 PTP V2 SYNC Message filtered by hardware Port 0 RX timestamp value 5382 s 57787425 ns Port 0 TX timestamp value 5382 s 57815073 ns validated after 0 micro-seconds Port 0 Received PTP V2 Ethernet frame with unexpected message ID 0x8 (expec= ted 0x0 - PTP_SYNC_MESSAGE) I have used both ptpclient and testpmd successfully with other NICs so I believe this is an issue with bnxt. Has it been used for PTP traffic or is there some initialization missing? Thank you for your help. --=20 You are receiving this mail because: You are the assignee for the bug.=