From: Oded Gabbay Date: Sun, 11 Jul 2021 05:55:42 +0000 (+0300) Subject: habanalabs: set dma max segment size X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a6946151110e8ec8c675c6709e03c15b30a85def;p=linux.git habanalabs: set dma max segment size This is required from any device that is capable to perform DMA. Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/common/pci/pci.c b/drivers/misc/habanalabs/common/pci/pci.c index d5bedf5ba011b..0b5366cc84fdb 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: