linux/drivers/media/common/saa7146
Tasos Sahanidis e56429b09d media: saa7146: use sg_dma_len when building pgtable
The new AMD IOMMU DMA implementation concatenates sglist entries under
certain conditions, and because saa7146 accessed the length member
directly, it did not support this scenario.

This fixes IO_PAGE_FAULTs by using the sg_dma_len macro.

Fixes: be62dbf554 ("iommu/amd: Convert AMD iommu driver to the dma-iommu api")
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-03-11 11:59:44 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
saa7146_core.c media: saa7146: use sg_dma_len when building pgtable 2021-03-11 11:59:44 +01:00
saa7146_fops.c media: saa7146: switch from 'pci_' to 'dma_' API 2020-12-03 08:57:07 +01:00
saa7146_hlp.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
saa7146_i2c.c media: saa7146: make use of i2c_8bit_addr_from_msg 2019-01-16 12:38:42 -05:00
saa7146_vbi.c media: saa7146: switch from 'pci_' to 'dma_' API 2020-12-03 08:57:07 +01:00
saa7146_video.c media: saa7146: use sg_dma_len when building pgtable 2021-03-11 11:59:44 +01:00