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

Commit fca32c53 authored by Indira Biruduraju's avatar Indira Biruduraju
Browse files

msm: kgsl: Add addr_mode_cntl registers for legacy snapshot for holi gpu



Add ADDR_MODE_CNTL registers for HLSQ, SP, TPL1 for legacy snapshot for
holi gpu to dump registers from the host driven path. This will help to
read value of addr_mode_cntl for these blocks when crash dumper is not
used or it is timed out.

Change-Id: Id1898883aa59c97ed61e616b5a4a2e744c35292b
Signed-off-by: default avatarIndira Biruduraju <ibirudur@codeaurora.org>
parent 5f551b33
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -304,6 +304,10 @@ static const unsigned int a660_registers[] = {
	0x0B00, 0x0B40, 0x0B80, 0x0B83,
};

static const unsigned int a619_holi_registers[] = {
	/* HLSQ, SP, TPL1 */
	0xAE00, 0xAE01, 0xBE04, 0xBE05, 0xB600, 0xB601,
};
/*
 * Set of registers to dump for A6XX before actually triggering crash dumper.
 * Registers in pairs - first value is the start offset, second
@@ -1826,6 +1830,12 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,
			snapshot, a6xx_snapshot_registers, &a6xx_reg_list[i]);
	}

	if (adreno_is_a619_holi(adreno_dev) && !crash_dump_valid) {
		adreno_snapshot_registers(device, snapshot,
				a619_holi_registers,
				ARRAY_SIZE(a619_holi_registers) / 2);
	}

	/* CP_SQE indexed registers */
	kgsl_snapshot_indexed_registers(device, snapshot,
		A6XX_CP_SQE_STAT_ADDR, A6XX_CP_SQE_STAT_DATA, 0, 0x33);