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

Commit 482608f8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Disable SP clockgating on A430V2 when producing snapshot"

parents 7e26d22d 8993ac33
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -384,14 +384,22 @@ void a4xx_snapshot(struct adreno_device *adreno_dev,
	struct kgsl_snapshot_registers_list list;
	struct kgsl_snapshot_registers regs[5];
	struct adreno_snapshot_data *snap_data = gpudev->snapshot_data;
	unsigned int clock_ctl, clock_ctl2;

	list.registers = regs;
	list.count = 0;

	/* Disable Clock gating temporarily for the debug bus to work */
	kgsl_regread(device, A4XX_RBBM_CLOCK_CTL, &clock_ctl);
	kgsl_regread(device, A4XX_RBBM_CLOCK_CTL2, &clock_ctl2);
	/* Disable SP clock gating for the debug bus to work on A430v2 */
	if (adreno_is_a430v2(adreno_dev)) {
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL_SP0, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL_SP1, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL_SP2, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL_SP3, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL2_SP0, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL2_SP1, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL2_SP2, 0);
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL2_SP3, 0);
	}
	/* Disable top level clock gating the debug bus to work */
	kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL, 0);
	kgsl_regwrite(device, A4XX_RBBM_CLOCK_CTL2, 0);