提交 b37858dc 编写于 作者: X Xi Wang 提交者: Xie XiuQi

RDMA/hns: Fixs hw access invalid dma memory error

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

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:

[  173.183547] arm-smmu-v3 arm-smmu-v3.1.auto: event 0x10 received:
[  173.191862] arm-smmu-v3 arm-smmu-v3.1.auto: 	0x00007d0000000010
[  173.200551] arm-smmu-v3 arm-smmu-v3.1.auto: 	0x0000020900000080
[  173.209235] arm-smmu-v3 arm-smmu-v3.1.auto: 	0x00000000f47cf000
[  173.217918] 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: Nwangxi <wangxi11@huawei.com>
Signed-off-by: NXi Wang <wangxi11@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 d9856486
...@@ -319,7 +319,6 @@ void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) ...@@ -319,7 +319,6 @@ void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp)
hns_roce_table_put(hr_dev, &qp_table->trrl_table, hns_roce_table_put(hr_dev, &qp_table->trrl_table,
hr_qp->qpn); hr_qp->qpn);
hns_roce_table_put(hr_dev, &qp_table->irrl_table, hr_qp->qpn); hns_roce_table_put(hr_dev, &qp_table->irrl_table, hr_qp->qpn);
hns_roce_table_put(hr_dev, &qp_table->qp_table, hr_qp->qpn);
} }
} }
EXPORT_SYMBOL_GPL(hns_roce_qp_free); EXPORT_SYMBOL_GPL(hns_roce_qp_free);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册