]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/pm: always allow ih interrupt from fw
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 28 Feb 2025 09:02:11 +0000 (17:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:01:53 +0000 (13:01 +0100)
commit da552bda987420e877500fdd90bd0172e3bf412b upstream.

always allow ih interrupt from fw on smu v14 based on
the interface requirement

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit a3199eba46c54324193607d9114a1e321292d7a1)
Cc: stable@vger.kernel.org # 6.12.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c

index 452589adaf046847b5f954cdf2697762785670a4..e5f619c979d80e1fac66a266c29bb5ce5801696a 100644 (file)
@@ -1883,16 +1883,6 @@ static int smu_v14_0_allow_ih_interrupt(struct smu_context *smu)
                                    NULL);
 }
 
-static int smu_v14_0_process_pending_interrupt(struct smu_context *smu)
-{
-       int ret = 0;
-
-       if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_ACDC_BIT))
-               ret = smu_v14_0_allow_ih_interrupt(smu);
-
-       return ret;
-}
-
 int smu_v14_0_enable_thermal_alert(struct smu_context *smu)
 {
        int ret = 0;
@@ -1904,7 +1894,7 @@ int smu_v14_0_enable_thermal_alert(struct smu_context *smu)
        if (ret)
                return ret;
 
-       return smu_v14_0_process_pending_interrupt(smu);
+       return smu_v14_0_allow_ih_interrupt(smu);
 }
 
 int smu_v14_0_disable_thermal_alert(struct smu_context *smu)