]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/s390: support map/unmap for additional table regions
authorMatthew Rosato <mjrosato@linux.ibm.com>
Fri, 11 Apr 2025 20:24:32 +0000 (16:24 -0400)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:43:12 +0000 (16:43 +0200)
commitd5fbc5efbd98a6c49f9acfca8595efd0f1e59ad8
tree6ed3924ed75f2a50546486a3e89b6c5ddb172a8b
parent1fe3f3cad530981e8ff36cefc19c8534bfd401b3
iommu/s390: support map/unmap for additional table regions

Map and unmap ops use the shared dma_walk_cpu_trans routine, update
this using the origin_type of the dma_table to determine how many
table levels must be walked.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20250411202433.181683-5-mjrosato@linux.ibm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/s390-iommu.c