[PATCH 2/2] drm/amdgpu/soc15: use atomfirmware for setting bios scratch for reset

zhoucm1 david1.zhou at amd.com
Tue May 9 03:12:41 UTC 2017



On 2017年05月05日 22:27, Alex Deucher wrote:
> Need to use the atomfirmware interface rather than atombios since
> soc15 is atomfirmware based.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
The series is Reviewed-by: Chunming Zhou <david1.zhou at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/soc15.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 79af896..b04f929 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -25,7 +25,7 @@
>   #include <linux/module.h>
>   #include "drmP.h"
>   #include "amdgpu.h"
> -#include "amdgpu_atombios.h"
> +#include "amdgpu_atomfirmware.h"
>   #include "amdgpu_ih.h"
>   #include "amdgpu_uvd.h"
>   #include "amdgpu_vce.h"
> @@ -392,11 +392,11 @@ static void soc15_gpu_pci_config_reset(struct amdgpu_device *adev)
>   
>   static int soc15_asic_reset(struct amdgpu_device *adev)
>   {
> -	amdgpu_atombios_scratch_regs_engine_hung(adev, true);
> +	amdgpu_atomfirmware_scratch_regs_engine_hung(adev, true);
>   
>   	soc15_gpu_pci_config_reset(adev);
>   
> -	amdgpu_atombios_scratch_regs_engine_hung(adev, false);
> +	amdgpu_atomfirmware_scratch_regs_engine_hung(adev, false);
>   
>   	return 0;
>   }



More information about the amd-gfx mailing list