msm: kgsl: Clear boot OOB in case GPU start fails
Clear the boot OOB, if GPU start fails after successfully changing KGSL state to AWARE. This is needed to make sure GMU stop sequence works fine and recovery can happen. Change-Id: I98832da9dea429cac3104a859e0d6e6091d959a5 Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
This commit is contained in:
parent
edabeb0e1b
commit
01e3c9e880
1 changed files with 5 additions and 1 deletions
|
@ -1823,7 +1823,7 @@ static int _adreno_start(struct adreno_device *adreno_dev)
|
|||
|
||||
status = kgsl_mmu_start(device);
|
||||
if (status)
|
||||
goto error_pwr_off;
|
||||
goto error_boot_oob_clear;
|
||||
|
||||
status = adreno_ocmem_malloc(adreno_dev);
|
||||
if (status) {
|
||||
|
@ -2036,6 +2036,10 @@ static int _adreno_start(struct adreno_device *adreno_dev)
|
|||
error_mmu_off:
|
||||
kgsl_mmu_stop(&device->mmu);
|
||||
|
||||
error_boot_oob_clear:
|
||||
if (ADRENO_QUIRK(adreno_dev, ADRENO_QUIRK_HFI_USE_REG))
|
||||
gmu_core_dev_oob_clear(device, oob_boot_slumber);
|
||||
|
||||
error_pwr_off:
|
||||
/* set the state back to original state */
|
||||
kgsl_pwrctrl_change_state(device, state);
|
||||
|
|
Loading…
Add table
Reference in a new issue