drm/amdgpu: Rework coredump to use memory dynamically
authorAndré Almeida <andrealmeid@igalia.com>
Fri, 15 Sep 2023 14:37:41 +0000 (16:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 20:24:07 +0000 (16:24 -0400)
commita769178585177a1414255827acb4317ee513773b
treeed37a98fa77e5a430ceb0972a655cfc0977f2308
parentd834af4e8579b8351d0265944b61707f2dfee82d
drm/amdgpu: Rework coredump to use memory dynamically

Instead of storing coredump information inside amdgpu_device struct,
move if to a proper separated struct and allocate it dynamically. This
will make it easier to further expand the logged information.

Signed-off-by: André Almeida <andrealmeid@igalia.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_device.c