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

Commit f25ae0b1 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Remove idle wait in kgsl_iommu_set_pf_policy()



We don't need to wait for idle before changing the pagefault
policy on the IOMMU which is a good thing because on a busy
system we may never hit idle.

Change-Id: Ic0dedbadb8f6122e32a0a34a65c54a7bca2a523c
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 535b852b
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1788,8 +1788,6 @@ static int kgsl_iommu_set_pf_policy(struct kgsl_mmu *mmu,
	struct kgsl_iommu_context *ctx = &iommu->ctx[KGSL_IOMMU_CONTEXT_USER];
	struct kgsl_device *device = KGSL_MMU_DEVICE(mmu);
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	int ret = 0;
	unsigned int sctlr_val;

	if ((adreno_dev->ft_pf_policy &
		BIT(KGSL_FT_PAGEFAULT_GPUHALT_ENABLE)) ==
@@ -1798,10 +1796,7 @@ static int kgsl_iommu_set_pf_policy(struct kgsl_mmu *mmu,

	/* If not attached, policy will be updated during the next attach */
	if (ctx->default_pt != NULL) {
		/* Need to idle device before changing options */
		ret = device->ftbl->idle(device);
		if (ret)
			return ret;
		unsigned int sctlr_val;

		kgsl_iommu_enable_clk(mmu);

@@ -1820,7 +1815,7 @@ static int kgsl_iommu_set_pf_policy(struct kgsl_mmu *mmu,
		kgsl_iommu_disable_clk(mmu);
	}

	return ret;
	return 0;
}

static struct kgsl_protected_registers *