Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

From: Ohad Ben-Cohen
Date: Tue Sep 27 2011 - 04:48:35 EST


On Tue, Sep 27, 2011 at 3:56 AM, KyongHo Cho <pullip.cho@xxxxxxxxxxx> wrote:
> I wanted the IOMMU driver to provide default fault handler to its users
> that does not provide fault handler for debugging purpose.
> If a user want to handle MMU fault, IOMMU driver welcomes to overwrite
> the existing 'default' fault handler.

Ok, this one patch below should allow you to do that.
report_iommu_fault() will now reliably tell you if a fault handler
failed or not, or if one isn't even installed.

This way your IOMMU driver doesn't need to define a fault handler of
its own, and instead, can do everything directly in
exynos_sysmmu_irq() where all the required information is now
available.

Thanks,
Ohad.