drm/amd/pm: Remove remainder of mode2_reset_is_support
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 7 May 2025 17:01:45 +0000 (18:01 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 May 2025 13:23:14 +0000 (09:23 -0400)
The previous patch removed smu_mode2_reset_is_support()
which was the only function to call through the mode2_reset_is_support()
method pointer.

Remove the remaining functions that were assigned to it
and the pointer itself.

See discussion at:
https://lore.kernel.org/all/DM4PR12MB5165D85BD85BC8FC8BF7A3B48E88A@DM4PR12MB5165.namprd12.prod.outlook.com/

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 504dae6038aa4d699a396723bdb8b63692179202..d47e32ae467181cd338a8e5104f257fe46b5bfc3 100644 (file)
@@ -1232,11 +1232,6 @@ struct pptable_funcs {
         */
        bool (*mode1_reset_is_support)(struct smu_context *smu);
 
-       /**
-        * @mode2_reset_is_support: Check if GPU supports mode2 reset.
-        */
-       bool (*mode2_reset_is_support)(struct smu_context *smu);
-
        /**
         * @link_reset_is_support: Check if GPU supports link reset.
         */
index 19a25fdc2f5b426008cbe067875afd0223361e2f..115e3fa456bcac045f12115e32039ca2ab0aa6f6 100644 (file)
@@ -3089,11 +3089,6 @@ static int sienna_cichlid_stb_get_data_direct(struct smu_context *smu,
        return 0;
 }
 
-static bool sienna_cichlid_is_mode2_reset_supported(struct smu_context *smu)
-{
-       return true;
-}
-
 static int sienna_cichlid_mode2_reset(struct smu_context *smu)
 {
        int ret = 0, index;
@@ -3229,7 +3224,6 @@ static const struct pptable_funcs sienna_cichlid_ppt_funcs = {
        .get_default_config_table_settings = sienna_cichlid_get_default_config_table_settings,
        .set_config_table = sienna_cichlid_set_config_table,
        .get_unique_id = sienna_cichlid_get_unique_id,
-       .mode2_reset_is_support = sienna_cichlid_is_mode2_reset_supported,
        .mode2_reset = sienna_cichlid_mode2_reset,
 };
 
index 5cb3b9bb60898f77862982449797ea0ef098b121..6de653d2ed62b3bb9c8132072b9625e550d0789f 100644 (file)
@@ -1985,11 +1985,6 @@ static bool aldebaran_is_mode1_reset_supported(struct smu_context *smu)
        return true;
 }
 
-static bool aldebaran_is_mode2_reset_supported(struct smu_context *smu)
-{
-       return true;
-}
-
 static int aldebaran_set_mp1_state(struct smu_context *smu,
                                   enum pp_mp1_state mp1_state)
 {
@@ -2095,7 +2090,6 @@ static const struct pptable_funcs aldebaran_ppt_funcs = {
        .set_pp_feature_mask = smu_cmn_set_pp_feature_mask,
        .get_gpu_metrics = aldebaran_get_gpu_metrics,
        .mode1_reset_is_support = aldebaran_is_mode1_reset_supported,
-       .mode2_reset_is_support = aldebaran_is_mode2_reset_supported,
        .smu_handle_passthrough_sbr = aldebaran_smu_handle_passthrough_sbr,
        .mode1_reset = aldebaran_mode1_reset,
        .set_mp1_state = aldebaran_set_mp1_state,
index b6e5da7b06efa1f52239e150b040607ab1446634..7d4ff09be7e834a33eaf64d377e6ce092b3e588c 100644 (file)
@@ -2919,11 +2919,6 @@ static bool smu_v13_0_6_is_mode1_reset_supported(struct smu_context *smu)
        return true;
 }
 
-static bool smu_v13_0_6_is_mode2_reset_supported(struct smu_context *smu)
-{
-       return true;
-}
-
 static inline bool smu_v13_0_6_is_link_reset_supported(struct smu_context *smu)
 {
        struct amdgpu_device *adev = smu->adev;
@@ -3680,7 +3675,6 @@ static const struct pptable_funcs smu_v13_0_6_ppt_funcs = {
        .get_pm_metrics = smu_v13_0_6_get_pm_metrics,
        .get_thermal_temperature_range = smu_v13_0_6_get_thermal_temperature_range,
        .mode1_reset_is_support = smu_v13_0_6_is_mode1_reset_supported,
-       .mode2_reset_is_support = smu_v13_0_6_is_mode2_reset_supported,
        .link_reset_is_support = smu_v13_0_6_is_link_reset_supported,
        .mode1_reset = smu_v13_0_6_mode1_reset,
        .mode2_reset = smu_v13_0_6_mode2_reset,