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

Commit 9a1858cb authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: A5XX snapshot fixes



Add two VBIF registers, correctly dump HLSQ registers and
fix the dump for inactive ringbuffers.

Change-Id: Ic0dedbadb8e95026ea39cdee5a6d921afc1dde5c
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 8ad6fffe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -336,6 +336,7 @@ static const unsigned int a5xx_vbif_ver_20040000_registers[] = {
	0x30C8, 0x30C8, 0x30D0, 0x30D0, 0x30D8, 0x30D8, 0x30E0, 0x30E0,
	0x3100, 0x3100, 0x3108, 0x3108, 0x3110, 0x3110, 0x3118, 0x3118,
	0x3120, 0x3120, 0x3124, 0x3125, 0x3129, 0x3129, 0x3131, 0x3131,
	0x340C, 0x340C, 0x3410, 0x3410, 0x3800, 0x3801,
};

static const struct adreno_vbif_snapshot_registers
@@ -647,7 +648,7 @@ static int get_hlsq_registers(struct kgsl_device *device,
		*data++ = val;
	}

	return regs->size;
	return (regs->size * 2);
}

static size_t a5xx_snapshot_dump_hlsq_sp_tp_regs(struct kgsl_device *device,
+2 −6
Original line number Diff line number Diff line
@@ -410,12 +410,8 @@ static size_t snapshot_rb(struct kgsl_device *device, u8 *buf,
	if (rb == adreno_dev->cur_rb) {
		snapshot_rb_ibs(rb, data, snapshot);
	} else {
		unsigned int *rbptr = rb->buffer_desc.hostptr;
		/* just copy the RB data, no need to look for IB's */
		memcpy(data, (void *)(rbptr + rb->wptr),
			(KGSL_RB_DWORDS - rb->wptr) * sizeof(unsigned int));
		memcpy((void *)(data + (KGSL_RB_DWORDS - rb->wptr)), rbptr,
			rb->wptr * sizeof(unsigned int));
		/* Just copy the ringbuffer, there are no active IBs */
		memcpy(data, rb->buffer_desc.hostptr, KGSL_RB_SIZE);
	}
	/* Return the size of the section */
	return KGSL_RB_SIZE + sizeof(*header);