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

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

Merge "msm: kgsl: Enable GMU power counters if accessible"

parents 1fa99387 f46f6185
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2619,7 +2619,10 @@ static int a6xx_enable_pwr_counters(struct adreno_device *adreno_dev,
	if (counter == 0)
		return -EINVAL;

	if (!gmu_core_isenabled(device))
	/* We can use GPU without GMU and allow it to count GPU busy cycles */
	if (!gmu_core_isenabled(device) &&
			!kgsl_is_register_offset(device,
				A6XX_GPU_GMU_AO_GPU_CX_BUSY_MASK))
		return -ENODEV;

	kgsl_regwrite(device, A6XX_GPU_GMU_AO_GPU_CX_BUSY_MASK, 0xFF000000);