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

Commit 7673a1b0 authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi
Browse files

msm: kgsl: Allow all oob requests in rGMU



rGMU fence interrupt observed with various applications. This is
because only oob_gpu is allowed in oob_set and oob_clear functions.

Fix this by allowing oob_perfcntr, oob_preempt, oob_boot_slumber
and oob_dcvs along with oob_set.

Change-Id: I351661b79df101f79b3e7c67d42d2a12e94cdc4c
Signed-off-by: default avatarPuranam V G Tejaswi <pvgtejas@codeaurora.org>
parent fce66d6e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -112,8 +112,7 @@ static int a6xx_rgmu_oob_set(struct adreno_device *adreno_dev,
	struct rgmu_device *rgmu = KGSL_RGMU_DEVICE(device);
	int ret, set, check;

	/* Return silently for unsupported OOBs */
	if (!gmu_core_isenabled(device) || req > oob_gpu)
	if (!gmu_core_isenabled(device))
		return 0;

	set = BIT(req + 16);
@@ -152,8 +151,7 @@ static inline void a6xx_rgmu_oob_clear(struct adreno_device *adreno_dev,
{
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);

	/* Return silently for unsupported OOBs */
	if (!gmu_core_isenabled(device) || req > oob_gpu)
	if (!gmu_core_isenabled(device))
		return;

	gmu_core_regwrite(device, A6XX_GMU_HOST2GMU_INTR_SET, BIT(req + 24));