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

Commit 08973d40 authored by George Shen's avatar George Shen
Browse files

msm: kgsl: Avoid false GMU alarm due to preemption



Do not allow rescheduling if GMU responds to driver requests
within a millisecond in normal cases. Increase HFI receiving
message timeout value to allow GMU watchdog interrupt to happen
before driver alarms. GMU watchdog interrupt provides more GMU
relevant debugging information.

CRs-Fixed: 2120475
Change-Id: Ia7f45354d2dbfbac5b4c7810b94526b89062d0da
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent b1efd310
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1014,7 +1014,6 @@ static int timed_poll_check(struct kgsl_device *device,
			return 0;
		/* Wait 100us to reduce unnecessary AHB bus traffic */
		udelay(100);
		cond_resched();
	} while (!time_after(jiffies, t));

	/* Double check one last time */
@@ -1778,7 +1777,6 @@ static int a6xx_wait_for_lowest_idle(struct adreno_device *adreno_dev)

		/* Wait 100us to reduce unnecessary AHB bus traffic */
		udelay(100);
		cond_resched();
	}

	/* Check one last time */
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ enum hfi_f2h_qpri {
	HFI_F2H_QPRI_DEBUG = 40,
};

#define HFI_RSP_TIMEOUT 500 /* msec */
#define HFI_RSP_TIMEOUT 5000 /* msec */
#define HFI_H2F_CMD_IRQ_MASK BIT(0)

enum hfi_msg_type {