Skip to contentSkip to conversation

doc: describe timestamp limitations for mlx5

PATCH In review Viacheslav Ovsiienko 2 participants 2 messages Nov 8, 2021 – Nov 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: describe timestamp limitations for mlx5

The ConnectX NIC series hardware provides only 63-bit wide timestamps. The imposed limitations description added to documentation.

At the moment there are no affected applications known or bug reports neither, this is just the declaration of limitation.

---
 doc/guides/nics/mlx5.rst | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
doc/guides/nics/mlx5.rst +17 -0
index d175c2061e..043d006a2b 100644
@@ -480,6 +480,19 @@ Limitations
 
   - Needs OFED 5.4+.
 
+- Timestamps:
+
+  - CQE timestamp field width is limited by hardware to 63 bits, msb is zero
+  - in the free-running mode the timestamp coounter is reset on power on
+    and 63-bit value provides over 1800 years of uptime till overflow
+  - in the real-time mode (configurable with REAL_TIME_CLOCK_ENABLE firmware
+    settings), the timestamp presents the nanoseconds elapsed since 01-Jan-1970,
+    hardware timestamp overflow will happen on 19-Jan-2038
+    (0x80000000 seconds since 01-Jan-1970)
+  - the send scheduling is based on timestamps from the reference "Clock Queue"
+    completions, the scheduled send timestamps should not be specified
+    with non-zero msb
+
 Statistics
 ----------
 
@@ -1242,6 +1255,10 @@ Below are some firmware configurations listed.
    FLEX_PARSER_PROFILE_ENABLE=4
    PROG_PARSE_GRAPH=1
 
+- enable realtime timestamp format::
+
+   REAL_TIME_CLOCK_ENABLE=1
+
 Linux Prerequisites
 -------------------
 
Signature · 1 line
2.18.1
#1 lore raw

Hi,

Quoted 12 lines

-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Monday, November 8, 2021 6:41 PM
To: [email protected]
Cc: Raslan Darawsheh <[email protected]>; Matan Azrad <[email protected]>; [email protected]
Subject: [PATCH] doc: describe timestamp limitations for mlx5

The ConnectX NIC series hardware provides only 63-bit wide timestamps. The imposed limitations description added to documentation.

Quoted 8 lines

At the moment there are no affected applications known or bug reports neither, this is just the declaration of limitation.

---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh