Re: [PATCH rdma-next 1/8] net/mlx5: Expand mkey page size to support 6 bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 04/09/2024 19:18, Jason Gunthorpe wrote:
On Wed, Sep 04, 2024 at 06:30:31PM +0300, Michael Guralnik wrote:
+#define mlx5_umem_find_best_pgsz(umem, dev, iova)                              \
+	ib_umem_find_best_pgsz(                                                \
+		umem,                                                          \
+		__mlx5_log_page_size_to_bitmap(                                \
+			MLX5_CAP_GEN_2(dev->mdev, umr_log_entity_size_5) ? 6 : \
+									   5,  \
+			0),                                                    \
+		iova)
This can go in a real static inline function now.
Ack.
Isn't is mlx5_mkx_find_best_pgsz ? It is only for mkc right?

Yes. It was written to be generic but mkc users were the only ones calling it.

@@ -4221,8 +4223,7 @@ struct mlx5_ifc_mkc_bits {
u8 reserved_at_1c0[0x19];
  	u8         relaxed_ordering_read[0x1];
-	u8         reserved_at_1d9[0x1];
-	u8         log_page_size[0x5];
+	u8         log_page_size[0x6];
?

Why is this change OK without more changes? Doesn't it move
log_page_size forward by 1 bit?

Jason

The reserved_at_1d9 is the new MSB of log_page_size that was not exposed in ifc so far.

Not moving forward, just extending by one MSB bit.





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux