[PATCH] drm/amdkfd/sriov:Put the pre and post reset in exclusive mode v2

Alex Deucher alexdeucher at gmail.com
Wed Mar 13 17:37:50 UTC 2019


On Wed, Mar 13, 2019 at 6:04 AM wentalou <Wentao.Lou at amd.com> wrote:
>
> add amdgpu_amdkfd_pre_reset and amdgpu_amdkfd_post_reset inside amdgpu_device_reset_sriov.
>
> Change-Id: Icf2839f0b620ce9d47d6414b6c32b9d06672f2ac
> Signed-off-by: Wentao Lou <Wentao.Lou at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 95cd3b7..b6693bd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -3234,6 +3234,8 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
>         if (r)
>                 return r;
>
> +       amdgpu_amdkfd_pre_reset(adev);
> +
>         /* Resume IP prior to SMC */
>         r = amdgpu_device_ip_reinit_early_sriov(adev);
>         if (r)
> @@ -3253,6 +3255,7 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
>
>         amdgpu_irq_gpu_reset_resume_helper(adev);
>         r = amdgpu_ib_ring_tests(adev);
> +       amdgpu_amdkfd_post_reset(adev);
>
>  error:
>         amdgpu_virt_init_data_exchange(adev);
> --
> 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