drm/amdgpu: Add amdgpu_asic_funcs.reset_method for Vega20
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 1 Aug 2019 15:44:17 +0000 (11:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:18:44 +0000 (10:18 -0500)
Fixes GPU reset crash.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index e604d46..25c4cf2 100644 (file)
@@ -896,6 +896,7 @@ static const struct amdgpu_asic_funcs vega20_asic_funcs =
        .get_pcie_usage = &soc15_get_pcie_usage,
        .need_reset_on_init = &soc15_need_reset_on_init,
        .get_pcie_replay_count = &soc15_get_pcie_replay_count,
+       .reset_method = &soc15_asic_reset_method
 };
 
 static int soc15_common_early_init(void *handle)