habanalabs: set dma max segment size
authorOded Gabbay <ogabbay@kernel.org>
Sun, 11 Jul 2021 05:55:42 +0000 (08:55 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 29 Aug 2021 06:47:47 +0000 (09:47 +0300)
This is required from any device that is capable to perform DMA.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/pci/pci.c

index d5bedf5ba011be7a0c294618daf2ae78f46662c8..0b5366cc84fdb39836c51f299ce2030b73e1af66 100644 (file)
@@ -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: