]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix 64/32bit pointer inconsistency
authorBernard Metzler <bmt@zurich.ibm.com>
Thu, 22 Aug 2019 17:37:38 +0000 (19:37 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 23 Aug 2019 16:08:27 +0000 (12:08 -0400)
commit90e7b960866dd16abe9993c504261e342de17d36
tree0b4be70446d0b451a42e8e4580ce668ee3c81c67
parent0b6d8a7f1f1acf5a7f4aa66c3de61d8b480e26fa
RDMA/siw: Fix 64/32bit pointer inconsistency

Fixes improper casting between addresses and unsigned types.
Changes siw_pbl_get_buffer() function to return appropriate
dma_addr_t, and not u64.

Also fixes debug prints. Now any potentially kernel private
pointers are printed formatted as '%pK', to allow keeping that
information secret.

Fixes: d941bfe500be ("RDMA/siw: Change CQ flags from 64->32 bits")
Fixes: 09f581643719 ("rdma/siw: completion queue methods")
Fixes: b729ba0e6e4a ("rdma/siw: receive path")
Fixes: 43654ff73ad1 ("rdma/siw: transmit path")
Fixes: 5541d7c69863 ("rdma/siw: queue pair methods")
Fixes: de1ad67d5654 ("rdma/siw: application buffer management")
Fixes: 519268203315 ("rdma/siw: application interface")
Fixes: 723753626e18 ("rdma/siw: connection management")
Fixes: bee545190559 ("rdma/siw: main include file")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Jason Gunthorpe <jgg@ziepe.ca>
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20190822173738.26817-1-bmt@zurich.ibm.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/siw/siw.h
drivers/infiniband/sw/siw/siw_cm.c
drivers/infiniband/sw/siw/siw_cq.c
drivers/infiniband/sw/siw/siw_mem.c
drivers/infiniband/sw/siw/siw_mem.h
drivers/infiniband/sw/siw/siw_qp.c
drivers/infiniband/sw/siw/siw_qp_rx.c
drivers/infiniband/sw/siw/siw_qp_tx.c
drivers/infiniband/sw/siw/siw_verbs.c