mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 09:36:39 -04:00
drm/amd/pm: Remove remainder of mode2_reset_is_support
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>
This commit is contained in:
committed by
Alex Deucher
parent
da471b8b77
commit
4367ee3ed1
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user