aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_main.c3
-rw-r--r--drivers/net/mlx4/main.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c
index 8a40cd539ab..f24b79b805f 100644
--- a/drivers/infiniband/hw/mthca/mthca_main.c
+++ b/drivers/infiniband/hw/mthca/mthca_main.c
@@ -1043,6 +1043,9 @@ static int __mthca_init_one(struct pci_dev *pdev, int hca_type)
1043 } 1043 }
1044 } 1044 }
1045 1045
1046 /* We can handle large RDMA requests, so allow larger segments. */
1047 dma_set_max_seg_size(&pdev->dev, 1024 * 1024 * 1024);
1048
1046 mdev = (struct mthca_dev *) ib_alloc_device(sizeof *mdev); 1049 mdev = (struct mthca_dev *) ib_alloc_device(sizeof *mdev);
1047 if (!mdev) { 1050 if (!mdev) {
1048 dev_err(&pdev->dev, "Device struct alloc failed, " 1051 dev_err(&pdev->dev, "Device struct alloc failed, "
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index 2765a3ce9c2..c83501122d7 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -1109,6 +1109,9 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
1109 } 1109 }
1110 } 1110 }
1111 1111
1112 /* Allow large DMA segments, up to the firmware limit of 1 GB */
1113 dma_set_max_seg_size(&pdev->dev, 1024 * 1024 * 1024);
1114
1112 priv = kzalloc(sizeof *priv, GFP_KERNEL); 1115 priv = kzalloc(sizeof *priv, GFP_KERNEL);
1113 if (!priv) { 1116 if (!priv) {
1114 dev_err(&pdev->dev, "Device struct alloc failed, " 1117 dev_err(&pdev->dev, "Device struct alloc failed, "