Skip to content

Commit 1d04c78

Browse files
committed
net/mlx5: Add support for MRTCQ register
jira LE-3615 Rebuild_History Non-Buildable kernel-5.14.0-570.28.1.el9_6 commit-author Jianbo Liu <[email protected]> commit e2685ef Management Real Time Clock Query (MRTCQ) register is used to query hardware clock identity. Signed-off-by: Jianbo Liu <[email protected]> Reviewed-by: Dragos Tatulea <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> (cherry picked from commit e2685ef) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 0a87165 commit 1d04c78

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

include/linux/mlx5/driver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ enum {
161161
MLX5_REG_MIRC = 0x9162,
162162
MLX5_REG_MTPTM = 0x9180,
163163
MLX5_REG_MTCTR = 0x9181,
164+
MLX5_REG_MRTCQ = 0x9182,
164165
MLX5_REG_SBCAM = 0xB01F,
165166
MLX5_REG_RESOURCE_DUMP = 0xC000,
166167
MLX5_REG_DTOR = 0xC00E,

include/linux/mlx5/mlx5_ifc.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10626,7 +10626,8 @@ struct mlx5_ifc_mcam_access_reg_bits3 {
1062610626

1062710627
u8 regs_63_to_32[0x20];
1062810628

10629-
u8 regs_31_to_2[0x1e];
10629+
u8 regs_31_to_3[0x1d];
10630+
u8 mrtcq[0x1];
1063010631
u8 mtctr[0x1];
1063110632
u8 mtptm[0x1];
1063210633
};
@@ -13117,4 +13118,12 @@ struct mlx5_ifc_msees_reg_bits {
1311713118
u8 reserved_at_80[0x180];
1311813119
};
1311913120

13121+
struct mlx5_ifc_mrtcq_reg_bits {
13122+
u8 reserved_at_0[0x40];
13123+
13124+
u8 rt_clock_identity[0x40];
13125+
13126+
u8 reserved_at_80[0x180];
13127+
};
13128+
1312013129
#endif /* MLX5_IFC_H */

0 commit comments

Comments
 (0)