diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-02 04:00:03 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-02 04:00:02 -0800 |
| commit | 154a46eb53125b1831a5edea9dd5ba480fb23a40 (patch) | |
| tree | a41a579aea9609852aaf4167a633fc7f746d3a4a /drivers/gpu | |
| parent | fa68c42f7835ff6f38d4b34c9061038787d25058 (diff) | |
| parent | 4cbaccd42fd5af353600ed7c4a352cc9d7beff55 (diff) | |
Merge "msm: kgsl: Relocate the pagefault tracepoint"
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/msm/kgsl_iommu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/msm/kgsl_iommu.c b/drivers/gpu/msm/kgsl_iommu.c index d997cdd2cc7e..6c667cb62896 100644 --- a/drivers/gpu/msm/kgsl_iommu.c +++ b/drivers/gpu/msm/kgsl_iommu.c @@ -809,6 +809,13 @@ static int kgsl_iommu_fault_handler(struct iommu_domain *domain, ptname = MMU_FEATURE(mmu, KGSL_MMU_GLOBAL_PAGETABLE) ? KGSL_MMU_GLOBAL_PT : tid; + /* + * Trace needs to be logged before searching the faulting + * address in free list as it takes quite long time in + * search and delays the trace unnecessarily. + */ + trace_kgsl_mmu_pagefault(ctx->kgsldev, addr, + ptname, write ? "write" : "read"); if (test_bit(KGSL_FT_PAGEFAULT_LOG_ONE_PER_PAGE, &adreno_dev->ft_pf_policy)) @@ -845,8 +852,6 @@ static int kgsl_iommu_fault_handler(struct iommu_domain *domain, } } - trace_kgsl_mmu_pagefault(ctx->kgsldev, addr, - ptname, write ? "write" : "read"); /* * We do not want the h/w to resume fetching data from an iommu |
