Skip to content

Commit eef3ad0

Browse files
jakemoronirleon
authored andcommitted
RDMA/irdma: Do not set IBK_LOCAL_DMA_LKEY for GEN3+
The GEN3 hardware does not appear to support IBK_LOCAL_DMA_LKEY. Attempts to use it will result in an AE. Fixes: eb31dfc ("RDMA/irdma: Restrict Memory Window and CQE Timestamping to GEN3") Signed-off-by: Jacob Moroni <jmoroni@google.com> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Link: https://patch.msgid.link/20251125025350.180-8-tatyana.e.nikolova@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 71d3bda commit eef3ad0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ static int irdma_query_device(struct ib_device *ibdev,
2727
irdma_fw_minor_ver(&rf->sc_dev);
2828
props->device_cap_flags = IB_DEVICE_MEM_WINDOW |
2929
IB_DEVICE_MEM_MGT_EXTENSIONS;
30-
props->kernel_cap_flags = IBK_LOCAL_DMA_LKEY;
30+
if (hw_attrs->uk_attrs.hw_rev < IRDMA_GEN_3)
31+
props->kernel_cap_flags = IBK_LOCAL_DMA_LKEY;
3132
props->vendor_id = pcidev->vendor;
3233
props->vendor_part_id = pcidev->device;
3334

0 commit comments

Comments
 (0)