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

Commit 11254932 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Look for freed entries with the pagetable name"

parents 8c1f1512 e0a01314
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -796,7 +796,7 @@ static int kgsl_iommu_fault_handler(struct iommu_domain *domain,
	struct kgsl_iommu_context *ctx;
	u64 ptbase;
	u32 contextidr;
	pid_t tid = 0;
	pid_t pid = 0;
	pid_t ptname;
	struct _mem_entry prev, next;
	int write;
@@ -851,7 +851,7 @@ static int kgsl_iommu_fault_handler(struct iommu_domain *domain,
	if (context != NULL) {
		/* save pagefault timestamp for GFT */
		set_bit(KGSL_CONTEXT_PRIV_PAGEFAULT, &context->priv);
		tid = context->tid;
		pid = context->proc_priv->pid;
	}

	ctx->fault = 1;
@@ -872,7 +872,7 @@ static int kgsl_iommu_fault_handler(struct iommu_domain *domain,
	contextidr = KGSL_IOMMU_GET_CTX_REG(ctx, CONTEXTIDR);

	ptname = MMU_FEATURE(mmu, KGSL_MMU_GLOBAL_PAGETABLE) ?
		KGSL_MMU_GLOBAL_PT : tid;
		KGSL_MMU_GLOBAL_PT : pid;
	/*
	 * Trace needs to be logged before searching the faulting
	 * address in free list as it takes quite long time in