1. 07 Jul, 2019 3 commits
    • Xi Wang's avatar
      RDMA/hns: Fixs hw access invalid dma memory error · ec5bc2cc
      Xi Wang authored
      When smmu is enable, if execute the perftest command and then use 'kill
      -9' to exit, follow this operation repeatedly, the kernel will have a high
      probability to print the following smmu event:
      
        arm-smmu-v3 arm-smmu-v3.1.auto: event 0x10 received:
        arm-smmu-v3 arm-smmu-v3.1.auto:  0x00007d0000000010
        arm-smmu-v3 arm-smmu-v3.1.auto:  0x0000020900000080
        arm-smmu-v3 arm-smmu-v3.1.auto:  0x00000000f47cf000
        arm-smmu-v3 arm-smmu-v3.1.auto:  0x00000000f47cf000
      
      This is because the hw will periodically refresh the qpc cache until the
      next reset.
      
      This patch fixed it by removing the action that release qpc memory in the
      'hns_roce_qp_free' function.
      
      Fixes: 9a443537 ("IB/hns: Add driver files for hns RoCE driver")
      Signed-off-by: default avatarXi Wang <wangxi11@huawei.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      ec5bc2cc
    • Lang Cheng's avatar
      RDMA/hns: Use %pK format pointer print · fd7dd8bc
      Lang Cheng authored
      The format specifier \"%p\" can leak kernel addresses.  Use \"%pK\"
      instead.
      Signed-off-by: default avatarLang Cheng <chenglang@huawei.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      fd7dd8bc
    • Lijun Ou's avatar
      RDMA/hns: Bugfix for calculating qp buffer size · e0222d18
      Lijun Ou authored
      The buffer size of qp which used to allocate qp buffer space for storing
      sqwqe and rqwqe will be the length of buffer space. The kernel driver will
      use the buffer address and the same size to get the user memory. The same
      size named buff_size of qp. According the algorithm of calculating, The
      size of the two is not equal when users set the max sge of sq.
      
      Fixes: b28ca7cc ("RDMA/hns: Limit extend sq sge num")
      Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      e0222d18
  2. 05 Jul, 2019 21 commits
  3. 04 Jul, 2019 6 commits
  4. 03 Jul, 2019 10 commits