drm/amdgpu: Fix ecc irq enable/disable unpaired
authorStanley.Yang <Stanley.Yang@amd.com>
Fri, 15 Dec 2023 08:13:23 +0000 (16:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:30:49 +0000 (10:30 -0500)
commita32c6f7f5737cc7e31cd7ad5133f0d96fca12ea6
treea9d6a28f7483313cf225d320bc852e218227cce4
parentc71930300fb20d447d19cda2c85037a24a1504ad
drm/amdgpu: Fix ecc irq enable/disable unpaired

The ecc_irq is disabled while GPU mode2 reset suspending process,
but not be enabled during GPU mode2 reset resume process.

Changed from V1:
only do sdma/gfx ras_late_init in aldebaran_mode2_restore_ip
delete amdgpu_ras_late_resume function

Changed from V2:
check umc ras supported before put ecc_irq

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aldebaran.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c