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: eb31dfc2b4 ("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>
This commit is contained in:
committed by
Leon Romanovsky
parent
71d3bdae5e
commit
eef3ad030b
@@ -27,7 +27,8 @@ static int irdma_query_device(struct ib_device *ibdev,
|
||||
irdma_fw_minor_ver(&rf->sc_dev);
|
||||
props->device_cap_flags = IB_DEVICE_MEM_WINDOW |
|
||||
IB_DEVICE_MEM_MGT_EXTENSIONS;
|
||||
props->kernel_cap_flags = IBK_LOCAL_DMA_LKEY;
|
||||
if (hw_attrs->uk_attrs.hw_rev < IRDMA_GEN_3)
|
||||
props->kernel_cap_flags = IBK_LOCAL_DMA_LKEY;
|
||||
props->vendor_id = pcidev->vendor;
|
||||
props->vendor_part_id = pcidev->device;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user