1. 14 2月, 2020 2 次提交
  2. 12 2月, 2020 1 次提交
  3. 16 1月, 2020 1 次提交
  4. 10 1月, 2020 1 次提交
  5. 08 1月, 2020 1 次提交
  6. 17 11月, 2019 1 次提交
  7. 09 11月, 2019 3 次提交
  8. 28 10月, 2019 1 次提交
  9. 22 10月, 2019 1 次提交
  10. 16 9月, 2019 1 次提交
  11. 28 8月, 2019 1 次提交
  12. 21 8月, 2019 1 次提交
  13. 14 8月, 2019 1 次提交
  14. 12 8月, 2019 4 次提交
  15. 25 7月, 2019 1 次提交
  16. 07 7月, 2019 2 次提交
    • X
      RDMA/hns: Fixs hw access invalid dma memory error · ec5bc2cc
      Xi Wang 提交于
      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: NXi Wang <wangxi11@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      ec5bc2cc
    • L
      RDMA/hns: Bugfix for calculating qp buffer size · e0222d18
      Lijun Ou 提交于
      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: NLijun Ou <oulijun@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      e0222d18
  17. 05 7月, 2019 1 次提交
  18. 26 6月, 2019 2 次提交
  19. 21 6月, 2019 2 次提交
    • L
      RDMA: Check umem pointer validity prior to release · 836a0fbb
      Leon Romanovsky 提交于
      Update ib_umem_release() to behave similarly to kfree() and allow
      submitting NULL pointer as safe input to this function.
      
      Fixes: a52c8e24 ("RDMA: Clean destroy CQ in drivers do not return errors")
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      836a0fbb
    • L
      RDMA/hns: Fix bug when wqe num is larger than 16K · 8d18ad83
      Lijun Ou 提交于
      hip08 can support up to 32768 wqes in one qp. currently if the wqe num
      is larger than 16384, the driver will lead a calltrace as follows.
      
      [21361.393725] Call trace:
      [21361.398605]  hns_roce_v2_modify_qp+0xbcc/0x1360 [hns_roce_hw_v2]
      [21361.410627]  hns_roce_modify_qp+0x1d8/0x2f8 [hns_roce]
      [21361.420906]  _ib_modify_qp+0x70/0x118
      [21361.428222]  ib_modify_qp+0x14/0x1c
      [21361.435193]  rt_ktest_modify_qp+0xb8/0x650 [rdma_test]
      [21361.445472]  exec_modify_qp_cmd+0x110/0x4d8 [rdma_test]
      [21361.455924]  rt_ktest_dispatch_cmd_3+0xa94/0x2edc [rdma_test]
      [21361.467422]  rt_ktest_dispatch_cmd_2+0x9c/0x108 [rdma_test]
      [21361.478570]  rt_ktest_dispatch_cmd+0x138/0x904 [rdma_test]
      [21361.489545]  rt_ktest_dev_write+0x328/0x4b0 [rdma_test]
      [21361.499998]  __vfs_write+0x38/0x15c
      [21361.506966]  vfs_write+0xa8/0x1a0
      [21361.513586]  ksys_write+0x50/0xb0
      [21361.520206]  sys_write+0xc/0x14
      [21361.526479]  el0_svc_naked+0x30/0x34
      [21361.533622] Code: 1ac10841 d37d7c22 0b000021 d37df021 (f86268c0)
      [21361.545815] ---[ end trace e2a1feb2c3d7f13c ]---
      
      When the wqe num is larger than 16384, hns_roce_table_find will return an
      invalid mtt, this will lead an kernel paging requet error if the driver try
      to access it. It's the mtt design defect which can't support up to the max
      wqe num of hip08.
      
      This patch fixs it by replacing mtt with mtr for wqe.
      
      Fixes: 926a01dc ("RDMA/hns: Add QP operations support for hip08 SoC")
      Signed-off-by: NXi Wang <wangxi11@huawei.com>
      Signed-off-by: NLijun Ou <oulijun@huawei.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      8d18ad83
  20. 25 4月, 2019 1 次提交
    • L
      RDMA/hns: Bugfix for mapping user db · 2557fabd
      Lijun Ou 提交于
      When the maximum send wr delivered by the user is zero, the qp does not
      have a sq.
      
      When allocating the sq db buffer to store the user sq pi pointer and map
      it to the kernel mode, max_send_wr is used as the trigger condition, while
      the kernel does not consider the max_send_wr trigger condition when
      mapmping db. It will cause sq record doorbell map fail and create qp fail.
      
      The failed print information as follows:
      
       hns3 0000:7d:00.1: Send cmd: tail - 418, opcode - 0x8504, flag - 0x0011, retval - 0x0000
       hns3 0000:7d:00.1: Send cmd: 0xe59dc000 0x00000000 0x00000000 0x00000000 0x00000116 0x0000ffff
       hns3 0000:7d:00.1: sq record doorbell map failed!
       hns3 0000:7d:00.1: Create RC QP failed
      
      Fixes: 0425e3e6 ("RDMA/hns: Support flush cqe for hip08 in kernel space")
      Signed-off-by: NLijun Ou <oulijun@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      2557fabd
  21. 09 4月, 2019 1 次提交
    • Y
      RDMA/hns: Bugfix for SCC hem free · 00fb67ec
      Yangyang Li 提交于
      The method of hem free for SCC context is different from qp context.
      
      In the current version, if free SCC hem during the execution of qp free,
      there may be smmu error as below:
      
       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:  0x000012000000017c
       arm-smmu-v3 arm-smmu-v3.1.auto:  0x00000000000009e0
       arm-smmu-v3 arm-smmu-v3.1.auto:  0x0000000000000000
      
      As SCC context is still used by hardware after qp free, we can solve this
      problem by removing SCC hem free from hns_roce_qp_free.
      
      Fixes: 6a157f7d ("RDMA/hns: Add SCC context allocation support for hip08")
      Signed-off-by: NYangyang Li <liyangyang20@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      00fb67ec
  22. 30 3月, 2019 1 次提交
  23. 16 2月, 2019 1 次提交
  24. 15 2月, 2019 1 次提交
  25. 12 2月, 2019 1 次提交
  26. 25 1月, 2019 2 次提交
  27. 19 1月, 2019 1 次提交
  28. 11 1月, 2019 1 次提交
  29. 08 1月, 2019 1 次提交
  30. 19 12月, 2018 1 次提交