Skip to content

Commit e2685ef

Browse files
Jianbo Liurleon
authored andcommitted
net/mlx5: Add support for MRTCQ register
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]>
1 parent 387bef8 commit e2685ef

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
@@ -160,6 +160,7 @@ enum {
160160
MLX5_REG_MIRC = 0x9162,
161161
MLX5_REG_MTPTM = 0x9180,
162162
MLX5_REG_MTCTR = 0x9181,
163+
MLX5_REG_MRTCQ = 0x9182,
163164
MLX5_REG_SBCAM = 0xB01F,
164165
MLX5_REG_RESOURCE_DUMP = 0xC000,
165166
MLX5_REG_DTOR = 0xC00E,

include/linux/mlx5/mlx5_ifc.h

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

1068110681
u8 regs_63_to_32[0x20];
1068210682

10683-
u8 regs_31_to_2[0x1e];
10683+
u8 regs_31_to_3[0x1d];
10684+
u8 mrtcq[0x1];
1068410685
u8 mtctr[0x1];
1068510686
u8 mtptm[0x1];
1068610687
};
@@ -13171,4 +13172,12 @@ struct mlx5_ifc_msees_reg_bits {
1317113172
u8 reserved_at_80[0x180];
1317213173
};
1317313174

13175+
struct mlx5_ifc_mrtcq_reg_bits {
13176+
u8 reserved_at_0[0x40];
13177+
13178+
u8 rt_clock_identity[0x40];
13179+
13180+
u8 reserved_at_80[0x180];
13181+
};
13182+
1317413183
#endif /* MLX5_IFC_H */

0 commit comments

Comments
 (0)