WSL2-Linux-Kernel/drivers/infiniband/sw/siw
Jason Gunthorpe 8d7c7c0eeb RDMA: Add ib_virt_dma_to_page()
Make it clearer what is going on by adding a function to go back from the
"virtual" dma_addr to a kva and another to a struct page. This is used in the
ib_uses_virt_dma() style drivers (siw, rxe, hfi, qib).

Call them instead of a naked casting and  virt_to_page() when working with dma_addr
values encoded by the various ib_map functions.

This also fixes the virt_to_page() casting problem Linus Walleij has been
chasing.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/0-v2-05ea785520ed+10-ib_virt_page_jgg@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2023-04-16 11:08:07 +03:00
..
Kconfig RDMA/siw: Add missing Kconfig selections 2022-09-01 10:12:01 +03:00
Makefile
iwarp.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
siw.h RDMA/siw: Fix QP destroy to wait for all references dropped. 2022-09-20 21:23:52 +03:00
siw_cm.c net/sock: Introduce trace_sk_data_ready() 2023-01-23 11:26:50 +00:00
siw_cm.h
siw_cq.c RDMA/siw: Set defined status for work completion with undefined status 2022-11-15 16:47:00 -04:00
siw_main.c RDMA/siw: Remove namespace check from siw_netdev_event() 2023-04-03 21:24:21 +03:00
siw_mem.c RDMA/siw: Fix user page pinning accounting 2023-02-06 14:46:50 +02:00
siw_mem.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
siw_qp.c net/sock: Introduce trace_sk_data_ready() 2023-01-23 11:26:50 +00:00
siw_qp_rx.c RDMA: Add ib_virt_dma_to_page() 2023-04-16 11:08:07 +03:00
siw_qp_tx.c RDMA: Add ib_virt_dma_to_page() 2023-04-16 11:08:07 +03:00
siw_verbs.c RDMA: Add ib_virt_dma_to_page() 2023-04-16 11:08:07 +03:00
siw_verbs.h RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00