Skip to content

Commit 4180d90

Browse files
cwabbott0gregkh
authored andcommitted
drm/msm/a6xx: Fix dumping A650+ debugbus blocks
[ Upstream commit cc83f71 ] These should be appended after the existing debugbus blocks, instead of replacing them. Fixes: 1e05bba ("drm/msm/a6xx: Update a6xx gpu coredump") Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/714270/ Message-ID: <20260325-drm-msm-a650-debugbus-v1-1-dfbf358890a7@gmail.com> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 279fde8 commit 4180d90

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,16 +361,14 @@ static void a6xx_get_debugbus_blocks(struct msm_gpu *gpu,
361361
sizeof(*a6xx_state->debugbus));
362362

363363
if (a6xx_state->debugbus) {
364-
int i;
364+
int i, j;
365365

366366
for (i = 0; i < ARRAY_SIZE(a6xx_debugbus_blocks); i++)
367367
a6xx_get_debugbus_block(gpu,
368368
a6xx_state,
369369
&a6xx_debugbus_blocks[i],
370370
&a6xx_state->debugbus[i]);
371371

372-
a6xx_state->nr_debugbus = ARRAY_SIZE(a6xx_debugbus_blocks);
373-
374372
/*
375373
* GBIF has same debugbus as of other GPU blocks, fall back to
376374
* default path if GPU uses GBIF, also GBIF uses exactly same
@@ -381,17 +379,19 @@ static void a6xx_get_debugbus_blocks(struct msm_gpu *gpu,
381379
&a6xx_gbif_debugbus_block,
382380
&a6xx_state->debugbus[i]);
383381

384-
a6xx_state->nr_debugbus += 1;
382+
i++;
385383
}
386384

387385

388386
if (adreno_is_a650_family(to_adreno_gpu(gpu))) {
389-
for (i = 0; i < ARRAY_SIZE(a650_debugbus_blocks); i++)
387+
for (j = 0; j < ARRAY_SIZE(a650_debugbus_blocks); i++, j++)
390388
a6xx_get_debugbus_block(gpu,
391389
a6xx_state,
392-
&a650_debugbus_blocks[i],
390+
&a650_debugbus_blocks[j],
393391
&a6xx_state->debugbus[i]);
394392
}
393+
394+
a6xx_state->nr_debugbus = i;
395395
}
396396
}
397397

0 commit comments

Comments
 (0)