summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2021-07-11 08:55:42 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-08-29 09:47:47 +0300
commita6946151110e8ec8c675c6709e03c15b30a85def (patch)
treea9236a6b188a1a08bb6eb35a1479875a3a9acacf /drivers/misc
parent2b5bbef5e88c6ffce59f935417e9b729afb44756 (diff)
downloadlinux-a6946151110e8ec8c675c6709e03c15b30a85def.tar.xz
habanalabs: set dma max segment size
This is required from any device that is capable to perform DMA. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/habanalabs/common/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/pci/pci.c b/drivers/misc/habanalabs/common/pci/pci.c
index d5bedf5ba011..0b5366cc84fd 100644
--- a/drivers/misc/habanalabs/common/pci/pci.c
+++ b/drivers/misc/habanalabs/common/pci/pci.c
@@ -436,6 +436,8 @@ int hl_pci_init(struct hl_device *hdev)
goto unmap_pci_bars;
}
+ dma_set_max_seg_size(&pdev->dev, U32_MAX);
+
return 0;
unmap_pci_bars: