linux/drivers/infiniband/hw/hns
Lijun Ou 4772e03d23 RDMA/hns: Fix bug that caused srq creation to fail
Due to the incorrect use of the seg and obj information, the position of
the mtt is calculated incorrectly, and the free space of the page is not
enough to store the entire mtt, resulting in access to the next page. This
patch fixes this problem.

 Unable to handle kernel paging request at virtual address ffff00006e3cd000
 ...
 Call trace:
  hns_roce_write_mtt+0x154/0x2f0 [hns_roce]
  hns_roce_buf_write_mtt+0xa8/0xd8 [hns_roce]
  hns_roce_create_srq+0x74c/0x808 [hns_roce]
  ib_create_srq+0x28/0xc8

Fixes: 0203b14c4f ("RDMA/hns: Unify the calculation for hem index in hip08")
Signed-off-by: chenglang <chenglang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-04-08 13:27:58 -03:00
..
hns_roce_ah.c RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
hns_roce_alloc.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hns_roce_cmd.c RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ during reset 2019-02-04 16:13:50 -07:00
hns_roce_cmd.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_common.h RDMA/hns: Update posting & querying mailbox 2018-12-11 12:04:06 -07:00
hns_roce_cq.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
hns_roce_db.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
hns_roce_device.h RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
hns_roce_hem.c RDMA/hns: Fix bug that caused srq creation to fail 2019-04-08 13:27:58 -03:00
hns_roce_hem.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_hw_v1.c RDMA: Fix allocation failure on pointer pd 2019-02-13 09:00:43 -07:00
hns_roce_hw_v1.h RDMA/hns: Fix endian conversions and annotations 2018-07-11 14:09:25 -06:00
hns_roce_hw_v2.c RDMA/hns: Use GFP_ATOMIC in hns_roce_v2_modify_qp 2019-03-04 16:41:30 -04:00
hns_roce_hw_v2.h RDMA/hns: Modify qp&cq&pd specification according to UM 2019-02-19 20:52:19 -07:00
hns_roce_main.c RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
hns_roce_mr.c RDMA/hns: Fix bug that caused srq creation to fail 2019-04-08 13:27:58 -03:00
hns_roce_pd.c RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
hns_roce_qp.c IB/{hw,sw}: Remove 'uobject->context' dependency in object creation APIs 2019-02-15 15:38:38 -07:00
hns_roce_srq.c RDMA/hns: Make some function static 2019-02-04 15:33:58 -07:00
Kconfig IB/{core,uverbs}: Move ib_umem_xxx functions from ib_core to ib_uverbs 2019-01-10 17:06:44 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00