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

Commit 6ba67ca0 authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi Committed by Gerrit - the friendly Code Review server
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 e4fa3185
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -103,8 +103,7 @@ static int a6xx_rgmu_oob_set(struct kgsl_device *device,
	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);
@@ -141,8 +140,7 @@ static int a6xx_rgmu_oob_set(struct kgsl_device *device,
static inline void a6xx_rgmu_oob_clear(struct kgsl_device *device,
		enum oob_request req)
{
	/* 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));