Skip to content

dpdk-ptpclient - hw timestimping does not work #103

@VergeWave

Description

@VergeWave

trying to run this example

https://community.nxp.com/t5/QorIQ-Knowledge-Base/IEEE1588-Implementation-in-DPDK-on-DPAA2-Platforms/ta-p/1105082?profile.language=zh-CN

compiling dpdk with this patch:

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 982a29b..7a431bc 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -296,7 +296,8 @@ soc_dpaa = {
         ['RTE_MAX_NUMA_NODES', 1],
 	['CONFIG_RTE_LIBRTE_SECURITY_IPSEC_LOOKASIDE_TEST', false],
 	['CONFIG_RTE_LIBRTE_PMD_CAAM_JR_BE', false],
-	['CONFIG_RTE_LIBRTE_IEEE1588', false],
+	['CONFIG_RTE_LIBRTE_IEEE1588', true],
+	['RTE_LIBRTE_IEEE1588', 1],
 	['CONFIG_RTE_DMA_DPAA_ERRATA_ERR050757', false],
 	['RTE_LIBRTE_DPAA_ERRATA_LS1043_A010022', 1]
     ],

DPRTC_COUNT=1 dynamic_dpl.sh dpmac.8

running

DPRC=dprc.2 dpdk-ptpclient -n 1 -l 1 -- -T 1 -p 0x1
Results in:

Master Clock id: 00:05:80:ff:fe:08:6d:9c                                                                                                                                                                                                             
T2 - Slave  Clock.  22s 909688764ns                                                                                                                                                                                                                  
T1 - Master Clock.  0s 0ns                                                                                                                                                                                                                           
T3 - Slave  Clock.  0s 0ns                                                                                                                                                                                                                           
T4 - Master Clock.  0s 0ns                                                                                                                                                                                                                           
Delta between master and slave clocks:0ns                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Comparison between Linux kernel Time and PTP:                                                                                                                                                                                                        
Current PTP Time: Thu Jan  1 00:00:00 1970 000000000 ns                                                                                                                                                                                              
Current SYS Time: Thu Oct 23 09:36:19 2025 487977 ns                                                                                                                                                                                                 
Delta between PTP and Linux Kernel time:-1761212179487865682ns                                                                                                                                                                                       
[Ctrl+C to quit]            

Further investigation:

m->timesync is always 0 in dpdk_package

dprtc_get_time always returns value of 17625560

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions