OSDN Git Service

iommu/arm-smmu: Add global/context fault implementation hooks
authorKrishna Reddy <vdumpa@nvidia.com>
Sat, 18 Jul 2020 19:34:57 +0000 (12:34 -0700)
committerWill Deacon <will@kernel.org>
Mon, 20 Jul 2020 08:30:51 +0000 (09:30 +0100)
commitaa7ec73297df57a86308fee78d2bf86e22ea0bae
treee496fdc6d7d3fdadd6ba30bd7cff5b4258725e44
parent3d2deb0cdb69e85d05760c6c72189d7653709ee1
iommu/arm-smmu: Add global/context fault implementation hooks

Add global/context fault hooks to allow vendor specific implementations
override default fault interrupt handlers.

Update NVIDIA implementation to override the default global/context fault
interrupt handlers and handle interrupts across the two ARM MMU-500s that
are programmed identically.

Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Nicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Link: https://lore.kernel.org/r/20200718193457.30046-6-vdumpa@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-nvidia.c
drivers/iommu/arm-smmu.c
drivers/iommu/arm-smmu.h