[PATCH 2/2] drm/amdgpu: Use mode2 mode to perform GPU RESET for Renoir

Liu, Aaron Aaron.Liu at amd.com
Mon Sep 23 06:30:32 UTC 2019


Reviewed-by: Aaron Liu <aaron.liu at amd.com>

BR,
Aaron Liu

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of chen
> gong
> Sent: Monday, September 23, 2019 2:14 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Gong, Curry <Curry.Gong at amd.com>
> Subject: [PATCH 2/2] drm/amdgpu: Use mode2 mode to perform GPU RESET
> for Renoir
> 
> Signed-off-by: chen gong <curry.gong at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/soc15.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c
> b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 58818761..0f639df9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -514,6 +514,8 @@ static int soc15_asic_baco_reset(struct
> amdgpu_device *adev)
> 
>  static int soc15_mode2_reset(struct amdgpu_device *adev)  {
> +	if (is_support_sw_smu(adev))
> +		return smu_mode2_reset(&adev->smu);
>  	if (!adev->powerplay.pp_funcs ||
>  	    !adev->powerplay.pp_funcs->asic_reset_mode_2)
>  		return -ENOENT;
> @@ -528,6 +530,7 @@ soc15_asic_reset_method(struct amdgpu_device
> *adev)
> 
>  	switch (adev->asic_type) {
>  	case CHIP_RAVEN:
> +	case CHIP_RENOIR:
>  		return AMD_RESET_METHOD_MODE2;
>  	case CHIP_VEGA10:
>  	case CHIP_VEGA12:
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list