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

Commit ccf7ab49 authored by George Shen's avatar George Shen
Browse files

msm: kgsl: Wait longer for CX GDSC going off



Avoids false alarm due to kernel preemption latency. Longer timeout
allows GMU watchdog timer to alarm on GMU hang. Watchdog timeout
interrupt could provide more accurate GMU debugging information.

Change-Id: I50dd50089bebc61a3db8c2b635c534b356809eef
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent cc8c86a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1283,7 +1283,7 @@ static int gmu_enable_gdsc(struct gmu_device *gmu)
	return ret;
}

#define CX_GDSC_TIMEOUT	500	/* ms */
#define CX_GDSC_TIMEOUT	5000	/* ms */
static int gmu_disable_gdsc(struct gmu_device *gmu)
{
	int ret;
@@ -1302,7 +1302,7 @@ static int gmu_disable_gdsc(struct gmu_device *gmu)
	/*
	 * After GX GDSC is off, CX GDSC must be off
	 * Voting off alone from GPU driver cannot
	 * Guarantee CX GDSC off. Polling with 10ms
	 * Guarantee CX GDSC off. Polling with 5s
	 * timeout to ensure
	 */
	t = jiffies + msecs_to_jiffies(CX_GDSC_TIMEOUT);