Commit 06dd5d86 authored by Rob Clark's avatar Rob Clark
Browse files

drm/msm/a6xx: Fix a6xx indexed-regs in devcoreduump



Somehow, possibly as a result of rebase gone badly, setting
nr_indexed_regs for pre-a650 a6xx devices lost the setting of
nr_indexed_regs, resulting in values getting snapshot, but omitted
from the devcoredump.

Fixes: e997ae5f ("drm/msm/a6xx: Mostly implement A7xx gpu_state")
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/640289/
parent 60065f26
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1514,6 +1514,8 @@ static void a6xx_get_indexed_registers(struct msm_gpu *gpu,

	/* Restore the size in the hardware */
	gpu_write(gpu, REG_A6XX_CP_MEM_POOL_SIZE, mempool_size);

	a6xx_state->nr_indexed_regs = count;
}

static void a7xx_get_indexed_registers(struct msm_gpu *gpu,