media: intel/ipu6: add IPU6 DMA mapping API and MMU table
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 31 Jan 2024 09:50:57 +0000 (17:50 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 29 Apr 2024 12:56:37 +0000 (14:56 +0200)
commit9163d83573e43094c1cd350573bde9a18059be63
treeecd531552482bebfbf2f1ed44136d38b3967963e
parentfb26412f83ba3d200a74071e10d8fef4f594bb50
media: intel/ipu6: add IPU6 DMA mapping API and MMU table

The Intel IPU6 has internal microcontrollers (scalar processor, SP) which
are used to execute the firmware. The SPs can access IPU internal memory
and system DRAM mapped to its an internal 32-bit virtual address space.

This patch adds a driver for the IPU MMU and a DMA mapping implementation
using the internal MMU. The system IOMMU may be used besides the IPU MMU.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu6/ipu6-dma.c [new file with mode: 0644]
drivers/media/pci/intel/ipu6/ipu6-dma.h [new file with mode: 0644]
drivers/media/pci/intel/ipu6/ipu6-mmu.c [new file with mode: 0644]
drivers/media/pci/intel/ipu6/ipu6-mmu.h [new file with mode: 0644]