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)
commit5e8afb8792f3b6ae7ccf700f8c19225382636401
tree65487077af3cff3a63b117b55b26f164e9643a1c
parent32346491ddf24599decca06190ebca03ff9de7f8
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: b48c24c2d710 ("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