drm/amdgpu: save the reset dump register value for devcoredump
authorSomalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Thu, 2 Jun 2022 07:24:58 +0000 (12:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:41:12 +0000 (14:41 -0400)
commit651d7ee63f338b82d18273c30e9ea804ae174342
treebd650b91016831570262d25f783faa851daf0893
parent6d1044a070b2eef0be45f3b99274a6cebee25053
drm/amdgpu: save the reset dump register value for devcoredump

Allocate memory for register value and use the same values for devcoredump.
v1 -> v2: Change krealloc_array() to kmalloc_array()
v2 -> v3: Fix alignment

Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Reviewed-by: Shashank Sharma <Shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c