mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
9629748eb1
commit
c07df789f2
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue