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

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

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

parents fcbed5c2 e9077e94
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_OP_VALID(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,