drm/amdgpu: reposition the gpu reset checking for reuse
authorTim Huang <tim.huang@amd.com>
Wed, 15 Mar 2023 07:52:09 +0000 (15:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:28 +0000 (12:49 +0200)
commit75e10d7fb97906ddb641c7b09773a91693570f63
tree92988f0a2ad829b93857bb55831a8be9c36f386e
parent9f7e1dd835ec834fb147a7725419497f0b0d83a7
drm/amdgpu: reposition the gpu reset checking for reuse

commit aaee0ce460b954e08b6e630d7e54b2abb672feb8 upstream.

Move the amdgpu_acpi_should_gpu_reset out of
CONFIG_SUSPEND to share it with hibernate case.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c