OpenCloudOS-Kernel/drivers/infiniband/hw/hns
oulijun 8b9b8d143b RDMA/hns: Fix the endian problem for hns
The hip06 and hip08 run on a little endian ARM, it needs to
revise the annotations to indicate that the HW uses little
endian data in the various DMA buffers, and flow the necessary
swaps throughout.

The imm_data use big endian mode. The cpu_to_le32/le32_to_cpu
swaps are no-op for this, which makes the only substantive
change the handling of imm_data which is now mandatory swapped.

This also keep match with the userspace hns driver and resolve
the warning by sparse.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-02-05 10:48:48 -05:00
..
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00
hns_roce_ah.c Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
hns_roce_alloc.c RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_cmd.c RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00
hns_roce_cmd.h RDMA/hns: Add eq support of hip08 2017-12-22 09:21:45 -07:00
hns_roce_common.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_cq.c RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00
hns_roce_device.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hem.c RDMA/hns: Get rid of page operation after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_hem.h RDMA/hns: Get rid of page operation after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_hw_v1.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hw_v1.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hw_v2.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hw_v2.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_main.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_mr.c RDMA/hns: Add rereg mr support for hip08 2017-11-10 12:14:27 -05:00
hns_roce_pd.c RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_qp.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00