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

Commit 3af659f2 authored by Sunil Khatri's avatar Sunil Khatri
Browse files

msm: kgsl: Fix the missing IBs from the snapshot



We missed updating index for internal IBs like setstate
or power-on fixup.

The index value was never updated after that, so all the
IBs after that index were never parsed, and are missing
from the snapshot.

Change-Id: I61db75f33630db322fe5ee1adce9f120987d32ee
Signed-off-by: default avatarSunil Khatri <sunilkh@codeaurora.org>
parent 2cbcc095
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -400,6 +400,8 @@ static void snapshot_rb_ibs(struct kgsl_device *device,
				ibsize = rbptr[index + 3];
			}

			index = (index + 1) % KGSL_RB_DWORDS;

			/* Don't parse known global IBs */
			if (iommu_is_setstate_addr(device, ibaddr, ibsize))
				continue;
@@ -410,8 +412,7 @@ static void snapshot_rb_ibs(struct kgsl_device *device,

			parse_ib(device, snapshot, snapshot->process,
				ibaddr, ibsize);
		}

		} else
			index = (index + 1) % KGSL_RB_DWORDS;
	}