]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fixs hw access invalid dma memory error
authorXi Wang <wangxi11@huawei.com>
Mon, 24 Jun 2019 11:47:51 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 7 Jul 2019 12:19:38 +0000 (09:19 -0300)
commit27e546b52167c9ed7937b07e07b24308b4e5ce8a
tree861b20a033bb43287b112e167f3e6f864b012c1e
parent9fe0c94e31087d70a9cebfeceac468973af0f160
RDMA/hns: Fixs hw access invalid dma memory error

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: 87c28d1fc442 ("IB/hns: Add driver files for hns RoCE driver")
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c