Skip to content

Commit 62079b6

Browse files
sgruszkajlawryno
authored andcommitted
accel/ivpu: Set dma max_segment_size
Avoid below spurious warning: [ 264.844029] DMA-API: intel_vpu 0000:00:0b.0: mapping sg segment longer than device claims to support [len=143360] [max=65536] [ 264.844038] WARNING: CPU: 0 PID: 1254 at kernel/dma/debug.c:1160 debug_dma_map_sg+0x6ca/0xb70 Fixes: 263b2ba ("accel/ivpu: Add Intel VPU MMU support") Signed-off-by: Stanislaw Gruszka <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 07ccb63) Signed-off-by: Jacek Lawrynowicz <[email protected]>
1 parent dffaa98 commit 62079b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/accel/ivpu/ivpu_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ static int ivpu_pci_init(struct ivpu_device *vdev)
428428
ivpu_err(vdev, "Failed to set DMA mask: %d\n", ret);
429429
return ret;
430430
}
431+
dma_set_max_seg_size(vdev->drm.dev, UINT_MAX);
431432

432433
/* Clear any pending errors */
433434
pcie_capability_clear_word(pdev, PCI_EXP_DEVSTA, 0x3f);

0 commit comments

Comments
 (0)