Commit 97458fd5 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe

RDMA/rxe: Increase DMA max_segment_size parameter

Increase the DMA max_segment_size parameter from 64 KB to 2 GB.

Link: https://lore.kernel.org/r/20191025225830.257535-3-bvanassche@acm.orgSigned-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent ecdfdfdb
...@@ -1175,6 +1175,9 @@ int rxe_register_device(struct rxe_dev *rxe, const char *ibdev_name) ...@@ -1175,6 +1175,9 @@ int rxe_register_device(struct rxe_dev *rxe, const char *ibdev_name)
addrconf_addr_eui48((unsigned char *)&dev->node_guid, addrconf_addr_eui48((unsigned char *)&dev->node_guid,
rxe->ndev->dev_addr); rxe->ndev->dev_addr);
dev->dev.dma_ops = &dma_virt_ops; dev->dev.dma_ops = &dma_virt_ops;
dev->dev.dma_parms = &rxe->dma_parms;
rxe->dma_parms = (struct device_dma_parameters)
{ .max_segment_size = SZ_2G };
dma_coerce_mask_and_coherent(&dev->dev, dma_coerce_mask_and_coherent(&dev->dev,
dma_get_required_mask(&dev->dev)); dma_get_required_mask(&dev->dev));
......
...@@ -384,6 +384,7 @@ struct rxe_port { ...@@ -384,6 +384,7 @@ struct rxe_port {
struct rxe_dev { struct rxe_dev {
struct ib_device ib_dev; struct ib_device ib_dev;
struct ib_device_attr attr; struct ib_device_attr attr;
struct device_dma_parameters dma_parms;
int max_ucontext; int max_ucontext;
int max_inline_data; int max_inline_data;
struct mutex usdev_lock; struct mutex usdev_lock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment