diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index f6f2ed0830b1..9bcd0eebc6d7 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c @@ -752,8 +752,10 @@ static int vi_asic_reset(struct amdgpu_device *adev)  	int r;  	if (vi_asic_reset_method(adev) == AMD_RESET_METHOD_BACO) { +		dev_info(adev->dev, "BACO reset\n");  		r = amdgpu_dpm_baco_reset(adev);  	} else { +		dev_info(adev->dev, "PCI CONFIG reset\n");  		r = vi_asic_pci_config_reset(adev);  	} @@ -1066,6 +1068,10 @@ static bool vi_need_reset_on_init(struct amdgpu_device *adev)  	return false;  } +static void vi_pre_asic_init(struct amdgpu_device *adev) +{ +} +  static const struct amdgpu_asic_funcs vi_asic_funcs =  {  	.read_disabled_bios = &vi_read_disabled_bios, @@ -1086,6 +1092,7 @@ static const struct amdgpu_asic_funcs vi_asic_funcs =  	.need_reset_on_init = &vi_need_reset_on_init,  	.get_pcie_replay_count = &vi_get_pcie_replay_count,  	.supports_baco = &vi_asic_supports_baco, +	.pre_asic_init = &vi_pre_asic_init,  };  #define CZ_REV_BRISTOL(rev)	 \ @@ -1507,8 +1514,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_MC,  			       pp_support_state,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	if (adev->cg_flags & (AMD_CG_SUPPORT_SDMA_LS | AMD_CG_SUPPORT_SDMA_MGCG)) { @@ -1526,8 +1532,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_SDMA,  			       pp_support_state,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	if (adev->cg_flags & (AMD_CG_SUPPORT_HDP_LS | AMD_CG_SUPPORT_HDP_MGCG)) { @@ -1545,8 +1550,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_HDP,  			       pp_support_state,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	} @@ -1560,8 +1564,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_BIF,  			       PP_STATE_SUPPORT_LS,  			        pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	if (adev->cg_flags & AMD_CG_SUPPORT_BIF_MGCG) {  		if (state == AMD_CG_STATE_UNGATE) @@ -1573,8 +1576,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_BIF,  			       PP_STATE_SUPPORT_CG,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	if (adev->cg_flags & AMD_CG_SUPPORT_DRM_LS) { @@ -1588,8 +1590,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_DRM,  			       PP_STATE_SUPPORT_LS,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	if (adev->cg_flags & AMD_CG_SUPPORT_ROM_MGCG) { @@ -1603,8 +1604,7 @@ static int vi_common_set_clockgating_state_by_smu(void *handle,  			       PP_BLOCK_SYS_ROM,  			       PP_STATE_SUPPORT_CG,  			       pp_state); -		if (adev->powerplay.pp_funcs->set_clockgating_by_smu) -			amdgpu_dpm_set_clockgating_by_smu(adev, msg_id); +		amdgpu_dpm_set_clockgating_by_smu(adev, msg_id);  	}  	return 0;  } |