]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/s390: handle IOAT registration based on domain
authorMatthew Rosato <mjrosato@linux.ibm.com>
Wed, 12 Feb 2025 21:34:17 +0000 (16:34 -0500)
committerJoerg Roedel <jroedel@suse.de>
Fri, 21 Feb 2025 11:01:58 +0000 (12:01 +0100)
commit0ed5967a0a63552e5ca0f2382ce362f84e83801c
treec79e42e2bfda570d4ab797fda79292df56997384
parentd236843a6964dc5a55dbafa5cfae63bc99cf10f8
iommu/s390: handle IOAT registration based on domain

At this point, the dma_table is really a property of the s390-iommu
domain.  Rather than checking its contents elsewhere in the codebase,
move the code that registers the table with firmware into
s390-iommu and make a decision what to register with firmware based
upon the type of domain in use for the device in question.

Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20250212213418.182902-4-mjrosato@linux.ibm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/s390/include/asm/pci.h
arch/s390/kvm/pci.c
arch/s390/pci/pci.c
arch/s390/pci/pci_sysfs.c
drivers/iommu/s390-iommu.c