]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Add helper funcs for jpeg devcoredump
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Tue, 28 Jan 2025 18:27:03 +0000 (23:57 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:01 +0000 (21:03 -0500)
commitdf996b5effda7d3b4525c78cd3fe375a224e734c
tree47dc08f1489cc360f9b7960a98d73ff8a21aab8c
parentb3dd2903b09c6ea1803af33fd9b90212fb89e4f4
drm/amdgpu: Add helper funcs for jpeg devcoredump

Add devcoredump helper functions that can be reused for all jpeg versions.

V2: (Lijo)
 - add amdgpu_jpeg_reg_dump_init() and amdgpu_jpeg_reg_dump_fini()
 - use reg_list and reg_count from init() to dump and print registers
 - memory allocation and freeing is moved to the init() and fini()

V3: (Lijo)
 - move amdgpu_jpeg_reg_dump_fini() to sw_fini()

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h