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

Commit de856667 authored by Rajesh Kemisetti's avatar Rajesh Kemisetti Committed by Lynus Vaz
Browse files

msm: kgsl: Dump preemption record only if it is enabled



During GPU snapshot dump path, a5xx_snapshot() tries to
capture preemption record without really checking on the
availability of preemption feature.

Add a check for preemption feature and then proceed.

Change-Id: I6ee23a1d8006ba18a25fb341bb88d8944ff054b7
Signed-off-by: default avatarRajesh Kemisetti <rajeshk@codeaurora.org>
parent 3779fd6b
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -943,12 +943,14 @@ void a5xx_snapshot(struct adreno_device *adreno_dev,
	a5xx_snapshot_debugbus(device, snapshot);

	/* Preemption record */
	if (adreno_is_preemption_enabled(adreno_dev)) {
		FOR_EACH_RINGBUFFER(adreno_dev, rb, i) {
			kgsl_snapshot_add_section(device,
				KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2,
				snapshot, snapshot_preemption_record,
				&rb->preemption_desc);
		}
	}

}