iommu/core: let drivers know if an iommu fault handler isn't installed
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 27 Sep 2011 11:36:40 +0000 (07:36 -0400)
committerHiroshi DOYU <hdoyu@nvidia.com>
Mon, 23 Jan 2012 09:11:34 +0000 (11:11 +0200)
commit683f4a129f0415ded14ae968740642f69c1f5b19
tree521893896f54da4c76599d5b52f450b895057b23
parentf48afbaaaf8f36afde8c5fdd6ea9967fda691baf
iommu/core: let drivers know if an iommu fault handler isn't installed

Make report_iommu_fault() return -ENOSYS whenever an iommu fault
handler isn't installed, so IOMMU drivers can then do their own
platform-specific default behavior if they wanted.

Fault handlers can still return -ENOSYS in case they want to elicit the
default behavior of the IOMMU drivers.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c
include/linux/iommu.h