Skip to content

Commit 00fb67e

Browse files
l00436852jgunthorpe
authored andcommitted
RDMA/hns: Bugfix for SCC hem free
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: 6a157f7 ("RDMA/hns: Add SCC context allocation support for hip08") Signed-off-by: Yangyang Li <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 4772e03 commit 00fb67e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/hw/hns/hns_roce_qp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp)
274274
wait_for_completion(&hr_qp->free);
275275

276276
if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) {
277-
if (hr_dev->caps.sccc_entry_sz)
278-
hns_roce_table_put(hr_dev, &qp_table->sccc_table,
279-
hr_qp->qpn);
280277
if (hr_dev->caps.trrl_entry_sz)
281278
hns_roce_table_put(hr_dev, &qp_table->trrl_table,
282279
hr_qp->qpn);

0 commit comments

Comments
 (0)