aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorJack Wang <[email protected]>2022-08-18 12:53:54 +0200
committerLeon Romanovsky <[email protected]>2022-08-21 12:25:03 +0300
commitb66905e04dc714825aa6cffb950e281b46bbeafe (patch)
treeaaa6f25482bfb802a113ab8cfc90dab34444769e /include/linux/fpga/fpga-bridge.h
parentb16de8b9e7d1aae169d059c3a0dd9a881a3c0d1d (diff)
RDMA/rtrs-clt: Use the right sg_cnt after ib_dma_map_sg
When iommu is enabled, we hit warnings like this: WARNING: at rtrs/rtrs.c:178 rtrs_iu_post_rdma_write_imm+0x9b/0x110 rtrs warn on one sge entry length is 0, which is unexpected. The problem is ib_dma_map_sg augments the SGL into a 'dma mapped SGL'. This process may change the number of entries and the lengths of each entry. Code that touches dma_address is iterating over the 'dma mapped SGL' and must use dma_nents which returned from ib_dma_map_sg(). So pass the count return from ib_dma_map_sg. Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jack Wang <[email protected]> Reviewed-by: Aleksei Marov <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions