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

Commit be6567e1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Clear boot OOB in case GPU start fails"

parents 3b5fea57 0a6b0c8f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1872,7 +1872,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) {
@@ -2096,6 +2096,11 @@ static int _adreno_start(struct adreno_device *adreno_dev)
error_mmu_off:
	kgsl_mmu_stop(&device->mmu);

error_boot_oob_clear:
	if (GMU_DEV_OP_VALID(gmu_dev_ops, oob_clear) &&
		ADRENO_QUIRK(adreno_dev, ADRENO_QUIRK_HFI_USE_REG))
		gmu_dev_ops->oob_clear(adreno_dev, oob_boot_slumber);

error_pwr_off:
	/* set the state back to original state */
	kgsl_pwrctrl_change_state(device, state);