]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Don't print warning when IOMMU driver only supports unmanaged domains
authorJoerg Roedel <jroedel@suse.de>
Fri, 22 Mar 2019 15:52:17 +0000 (16:52 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Mar 2019 13:37:00 +0000 (14:37 +0100)
commit5369d6b6a38a7cc75e91a516ed87e7cd1b57dfed
tree600633cad61a75b4c1479218ed8f19fc79a55080
parent525165e49b28a4616473e397876dd5320cbeb3e0
iommu: Don't print warning when IOMMU driver only supports unmanaged domains

Print the warning about the fall-back to IOMMU_DOMAIN_DMA in
iommu_group_get_for_dev() only when such a domain was
actually allocated.

Otherwise the user will get misleading warnings in the
kernel log when the iommu driver used doesn't support
IOMMU_DOMAIN_DMA and IOMMU_DOMAIN_IDENTITY.

Fixes: 390829d4c2e1a ('iommu: Allow default domain type to be set on the kernel command line')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c