]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Bugfix for SCC hem free
authorYangyang Li <liyangyang20@huawei.com>
Sun, 7 Apr 2019 05:23:39 +0000 (13:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Apr 2019 16:42:16 +0000 (13:42 -0300)
commit99caf49dd3c8ac79e3efc1ede04a09462b2d40ab
treeb4ecef0f167ce6bb141ee68dcfc7123538026a2b
parent6a57f30b9cd4efe5d3a52c14402858fabebdb8c3
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: 11d5d69b0a06 ("RDMA/hns: Add SCC context allocation support for hip08")
Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c