OSDN Git Service

RDMA/hns: Fix timeout attr in query qp for HIP08
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 12 May 2023 09:22:43 +0000 (17:22 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 17 May 2023 19:05:00 +0000 (16:05 -0300)
commit58caa2a51ad4fd21763696cc6c4defc9fc1b4b4f
tree3d6e52487b69e056c45ac76a53c28b79b5388cd9
parent866422cdddcdf59d8c68e9472d49ba1be29b5fcf
RDMA/hns: Fix timeout attr in query qp for HIP08

On HIP08, the queried timeout attr is different from the timeout attr
configured by the user.

It is found by rdma-core testcase test_rdmacm_async_traffic:

======================================================================
FAIL: test_rdmacm_async_traffic (tests.test_rdmacm.CMTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./tests/test_rdmacm.py", line 33, in test_rdmacm_async_traffic
    self.two_nodes_rdmacm_traffic(CMAsyncConnection, self.rdmacm_traffic,
  File "./tests/base.py", line 382, in two_nodes_rdmacm_traffic
    raise(res)
AssertionError

Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/20230512092245.344442-2-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h