msm: kgsl: Set FSR to 0 on IOMMU pagefault

On IOMMU pagefault the FSR is not cleared until the IOMMU
is reset and re-attached to the GPU device. Until FSR clears
the system will keep generating fault interrupts. Clear the
FSR when iommu is stopped in kgsl driver to prevent system
from generating additional fault interrupts for the same
fault until the IOMMU is re-attached

Change-Id: Ia56bbd1245a84a001ec8464f73cfedf2a2d312c2
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
This commit is contained in:
Shubhraprakash Das 2013-08-19 11:54:23 -07:00 committed by Iliyan Malchev
parent 9629748eb1
commit c07df789f2

View file

@ -1797,6 +1797,10 @@ void kgsl_iommu_pagefault_resume(struct kgsl_mmu *mmu)
iommu_unit,
iommu_unit->dev[j].ctx_id,
RESUME, 1);
KGSL_IOMMU_SET_CTX_REG(iommu,
iommu_unit,
iommu_unit->dev[j].ctx_id,
FSR, 0);
_iommu_unlock();
iommu_unit->dev[j].fault = 0;
}