Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/a6xx: Fix dumping A650+ debugbus blocks

These should be appended after the existing debugbus blocks, instead of
replacing them.

Fixes: 1e05bba5e2b8 ("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>

authored by

Connor Abbott and committed by
Rob Clark
cc83f71c df0f439e

+6 -6
+6 -6
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
··· 361 361 sizeof(*a6xx_state->debugbus)); 362 362 363 363 if (a6xx_state->debugbus) { 364 - int i; 364 + int i, j; 365 365 366 366 for (i = 0; i < ARRAY_SIZE(a6xx_debugbus_blocks); i++) 367 367 a6xx_get_debugbus_block(gpu, 368 368 a6xx_state, 369 369 &a6xx_debugbus_blocks[i], 370 370 &a6xx_state->debugbus[i]); 371 - 372 - a6xx_state->nr_debugbus = ARRAY_SIZE(a6xx_debugbus_blocks); 373 371 374 372 /* 375 373 * GBIF has same debugbus as of other GPU blocks, fall back to ··· 379 381 &a6xx_gbif_debugbus_block, 380 382 &a6xx_state->debugbus[i]); 381 383 382 - a6xx_state->nr_debugbus += 1; 384 + i++; 383 385 } 384 386 385 387 386 388 if (adreno_is_a650_family(to_adreno_gpu(gpu))) { 387 - for (i = 0; i < ARRAY_SIZE(a650_debugbus_blocks); i++) 389 + for (j = 0; j < ARRAY_SIZE(a650_debugbus_blocks); i++, j++) 388 390 a6xx_get_debugbus_block(gpu, 389 391 a6xx_state, 390 - &a650_debugbus_blocks[i], 392 + &a650_debugbus_blocks[j], 391 393 &a6xx_state->debugbus[i]); 392 394 } 395 + 396 + a6xx_state->nr_debugbus = i; 393 397 } 394 398 } 395 399