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

Commit e310f4b4 authored by Rajesh Kemisetti's avatar Rajesh Kemisetti
Browse files

msm: kgsl: Correctly update script size for MVC registers



Update crash dumper script size correctly for MVC sub-block
select register so as to avoid out of bound access if any.

Change-Id: I82c4f1ef5f9b8e929ea7d217f6682f96899424bb
Signed-off-by: default avatarRajesh Kemisetti <rajeshk@codeaurora.org>
parent 757c4610
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2101,6 +2101,10 @@ void a6xx_crashdump_init(struct adreno_device *adreno_dev)
	for (i = 0; i < ARRAY_SIZE(a6xx_clusters); i++) {
		struct a6xx_cluster_registers *cluster = &a6xx_clusters[i];

		/* 16 bytes if cluster sel exists */
		if (cluster->sel)
			script_size += 16;

		for (j = 0; j < A6XX_NUM_CTXTS; j++) {

			/* 16 bytes for programming the aperture */