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

Commit ca2fa34d authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Combine MSG_START HFI and gmu quirk



The gmu quirk serves well to identify targets that use
legacy firmware. MSG_START HFI happens to be supported
only in non-legacy firmware. So use the quirk to figure
out whether to send the MSG_START HFI or not.

Change-Id: I711ceae53104e6be1d456589d582439a6a8c68f9
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 7eaf07a0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -645,7 +645,12 @@ static int a6xx_gmu_hfi_start_msg(struct kgsl_device *device)
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct hfi_start_cmd req;

	if (adreno_is_a640(adreno_dev) || adreno_is_a680(adreno_dev))
	/*
	 * This HFI was not supported in legacy firmware and this quirk
	 * serves as a better means to identify targets that depend on
	 * legacy firmware.
	 */
	if (!ADRENO_QUIRK(adreno_dev, ADRENO_QUIRK_HFI_USE_REG))
		return hfi_send_req(KGSL_GMU_DEVICE(device),
					 H2F_MSG_START, &req);