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

Commit 449d29fb authored by Hui Li's avatar Hui Li
Browse files

msm: kgsl: Fix HFI start failed on SA8155



In current code GMU can't startup properly on SA8155,
because of HFI start failure, we can fix this by moving
load pdc and rsc before HFI start.

Fixes: 90da593e ("msm: kgsl: Create a6xx gmu power ops")
Change-Id: Ie373cb89a54e88b3eedd62df65153e0c931b019b
Signed-off-by: default avatarHui Li <hul@codeaurora.org>
parent 0e2097ce
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -2197,6 +2197,15 @@ static int a6xx_gmu_first_boot(struct adreno_device *adreno_dev)
			goto err;
	}

	if (!test_bit(GMU_PRIV_PDC_RSC_LOADED, &gmu->flags)) {
		ret = a6xx_load_pdc_ucode(adreno_dev);
		if (ret)
			goto err;

		a6xx_load_rsc_ucode(adreno_dev);
		set_bit(GMU_PRIV_PDC_RSC_LOADED, &gmu->flags);
	}

	ret = a6xx_gmu_hfi_start(adreno_dev);
	if (ret)
		goto err;
@@ -2985,14 +2994,6 @@ static int a6xx_first_boot(struct adreno_device *adreno_dev)
	if (ret)
		return ret;

	ret = a6xx_load_pdc_ucode(adreno_dev);
	if (ret) {
		a6xx_gmu_power_off(adreno_dev);
		return ret;
	}

	a6xx_load_rsc_ucode(adreno_dev);

	adreno_get_bus_counters(adreno_dev);

	adreno_dev->cooperative_reset = ADRENO_FEATURE(adreno_dev,
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ enum {
	GMU_PRIV_HFI_STARTED,
	GMU_PRIV_RSCC_SLEEP_DONE,
	GMU_PRIV_PM_SUSPEND,
	GMU_PRIV_PDC_RSC_LOADED,
};

/**