drm/amdgpu: refactor code to split devcoredump code
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 20 Mar 2024 19:23:35 +0000 (00:53 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Mar 2024 19:51:48 +0000 (15:51 -0400)
commit9022f01b9709331c485703e49b3a8b2633513a92
tree3839a259fd86b54e1fc5273077cdf56d893aebab
parentb1edfb91fc70f25aaed1d2ebb507c434220057a8
drm/amdgpu: refactor code to split devcoredump code

Refractor devcoredump code into new files since its
functionality is expanded further and better to slit
and devcoredump to have its own file.

v2: Fix the build failure caught by arm compiler
of implicit function declaration with #ifdef

v3: squash in fix for implicit declaration error

Cc: Ivan Lipski <ivan.lipski@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h