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

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

Merge "msm: kgsl: Hold GMU in reset during initialization"

parents 50a7aa02 643a39bf
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -322,11 +322,6 @@ static int a6xx_gmu_start(struct kgsl_device *device)
	struct gmu_device *gmu = KGSL_GMU_DEVICE(device);

	kgsl_regwrite(device, A6XX_GMU_CX_GMU_WFI_CONFIG, 0x0);
	/* Write 1 first to make sure the GMU is reset */
	gmu_core_regwrite(device, A6XX_GMU_CM3_SYSRESET, 1);

	/* Make sure putting in reset doesn't happen after clearing */
	wmb();

	/* Bring GMU out of reset */
	gmu_core_regwrite(device, A6XX_GMU_CM3_SYSRESET, 0);
@@ -940,6 +935,10 @@ static int a6xx_gmu_fw_start(struct kgsl_device *device,
	int ret;
	unsigned int chipid = 0;

	gmu_core_regwrite(device, A6XX_GMU_CM3_SYSRESET, 1);
	/* Make sure M3 is in reset before going on */
	wmb();

	switch (boot_state) {
	case GMU_COLD_BOOT:
		/* Turn on TCM retention */