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

Commit e9077e94 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Update CP ROQ size for a640 and a680



These targets have ROQ twice as big as a630. So dump
the correct size of ROQ in the snapshot.

Change-Id: I776ece5062d96584f6431475c6ab6a05d2d426c7
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 5cd75ce7
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1495,7 +1495,11 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,
	struct gmu_dev_ops *gmu_dev_ops = GMU_DEVICE_OPS(device);
	struct adreno_snapshot_data *snap_data = gpudev->snapshot_data;
	bool sptprac_on;
	unsigned int i;
	unsigned int i, roq_size;

	/* ROQ size is 0x800 DW on a640 and a680 */
	roq_size = adreno_is_a640(adreno_dev) || adreno_is_a680(adreno_dev) ?
		(snap_data->sect_sizes->roq * 2) : snap_data->sect_sizes->roq;

	/* GMU TCM data dumped through AHB */
	if (gmu_dev_ops->snapshot)
@@ -1547,8 +1551,7 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,

	/* CP ROQ */
	kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
		snapshot, adreno_snapshot_cp_roq,
		&snap_data->sect_sizes->roq);
		snapshot, adreno_snapshot_cp_roq, &roq_size);

	/* SQE Firmware */
	kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,