diff options
author | Sushmita Susheelendra <ssusheel@codeaurora.org> | 2015-04-28 17:30:34 -0600 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:02:48 -0700 |
commit | 82dd02436d2fe9964f32b08583e40b013d138e8d (patch) | |
tree | 237e0d4df05f13a29282bce2f4228e38e1be1ae8 /drivers/gpu/msm/adreno_iommu.c | |
parent | 1d7b7494274e98488c4add1d238f2e55ab6f7f2a (diff) |
msm: kgsl: Disable guardpage for A5x and suppress pagefaults
Disable the guardpage workaround for A5x and instead
selectively suppress pagefaults. Suppress read pagefaults
that are likely caused due to UCHE overfetches. For this,
the fault address must be within the first 64 bytes of a
page and the fault page must be preceded by a valid allocation.
CRs-Fixed: 975293
Change-Id: I6a0995af3ab4129c6923726043c5f34c747641f9
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Diffstat (limited to 'drivers/gpu/msm/adreno_iommu.c')
-rw-r--r-- | drivers/gpu/msm/adreno_iommu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/msm/adreno_iommu.c b/drivers/gpu/msm/adreno_iommu.c index f1168d96b5de..2eeda01b3c4d 100644 --- a/drivers/gpu/msm/adreno_iommu.c +++ b/drivers/gpu/msm/adreno_iommu.c @@ -867,6 +867,10 @@ int adreno_iommu_init(struct adreno_device *adreno_dev) } } + /* Enable guard page MMU feature for A3xx and A4xx targets only */ + if (adreno_is_a3xx(adreno_dev) || adreno_is_a4xx(adreno_dev)) + device->mmu.features |= KGSL_MMU_NEED_GUARD_PAGE; + return 0; } |