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

Commit 99f45780 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Don't read stale crashdumper data"

parents 97ff0618 0a06efde
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -767,6 +767,8 @@ static void _a5xx_do_crashdump(struct kgsl_device *device)

	crash_dump_valid = false;

	if (!device->snapshot_crashdumper)
		return;
	if (capturescript.gpuaddr == 0 || registers.gpuaddr == 0)
		return;

@@ -872,7 +874,6 @@ void a5xx_snapshot(struct adreno_device *adreno_dev,
		ARRAY_SIZE(a5xx_vbif_snapshot_registers));

	/* Try to run the crash dumper */
	if (device->snapshot_crashdumper)
	_a5xx_do_crashdump(device);

	kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_REGS,
+2 −0
Original line number Diff line number Diff line
@@ -1527,6 +1527,8 @@ static void _a6xx_do_crashdump(struct kgsl_device *device)

	crash_dump_valid = false;

	if (!device->snapshot_crashdumper)
		return;
	if (a6xx_capturescript.gpuaddr == 0 ||
		a6xx_crashdump_registers.gpuaddr == 0)
		return;