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

Commit d540f7a6 authored by Shubhraprakash Das's avatar Shubhraprakash Das Committed by Matt Wagantall
Browse files

msm: kgsl: Snapshot fix for A4XX



Add protection registers to snapshot dump of A4XX targets.
For A430 derivatives dump the entire size of CP state debug registers.

Change-Id: I149f0feea602ab6658f9cb471287e78725a231ec
CRs-Fixed: 812551
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 1fc6a10f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -697,8 +697,8 @@ static void a4xx_start(struct adreno_device *adreno_dev)
		kgsl_regwrite(device, A4XX_RBBM_CLOCK_DELAY_HLSQ, val);
	}

	/* A430 offers a bigger chunk of CP_STATE_DEBUG registers */
	if (adreno_is_a430(adreno_dev))
	/* A430 and derivatives offers bigger chunk of CP_STATE_DEBUG regs */
	if (!adreno_is_a420(adreno_dev))
		a4xx_snap_sizes.cp_pfp = 0x34;

	a4xx_protect_init(adreno_dev);
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ static const unsigned int a4xx_registers[] = {
	0x0028, 0x002B, 0x002E, 0x0034, 0x0037, 0x0044, 0x0047, 0x0066,
	0x0068, 0x0095, 0x009C, 0x0170, 0x0174, 0x01AF,
	/* CP */
	0x0200, 0x0226, 0x0228, 0x0233, 0x0240, 0x0250, 0x04C0, 0x04D0,
	0x0200, 0x0226, 0x0228, 0x0233, 0x0240, 0x0258, 0x04C0, 0x04D0,
	0x04D2, 0x04DD, 0x0500, 0x050B, 0x0578, 0x058F,
	/* VSC */
	0x0C00, 0x0C03, 0x0C08, 0x0C41, 0x0C50, 0x0C51,