Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2da32fd5 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Relocate the pagefault tracepoint" into msm-4.9

parents a0be3fda 86e95682
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -813,6 +813,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))
@@ -849,8 +856,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