]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Do not advertise 1GB page size for x722
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 5 Jul 2022 23:08:36 +0000 (18:08 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 11 Jul 2022 06:03:50 +0000 (03:03 -0300)
commit9c20e1c75c1ce407804d1a0faf2961ea842b46bc
tree65487077af3cff3a63b117b55b26f164e9643a1c
parent0c8b98e40f9d61a6792a879de085b19667a1f51b
RDMA/irdma: Do not advertise 1GB page size for x722

x722 does not support 1GB page size but the irdma driver incorrectly
advertises 1GB page size support for x722 device to ib_core to compute the
best page size to use on this MR.  This could lead to incorrect start
offsets computed by hardware on the MR.

Fixes: 434ed3ceee5a ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/i40iw_hw.c
drivers/infiniband/hw/irdma/icrdma_hw.c
drivers/infiniband/hw/irdma/irdma.h
drivers/infiniband/hw/irdma/verbs.c