diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-01-23 16:27:31 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:18:31 -0500 |
commit | f75a9a5d6c770f1e5fb5f076a03ea3c0e3d81923 (patch) | |
tree | 5db32af1aa9630d94d380d675187fc9882785206 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | e7f9ccb43729a2abdd90a67c605ccea7ba82d01f (diff) | |
download | op-kernel-dev-f75a9a5d6c770f1e5fb5f076a03ea3c0e3d81923.zip op-kernel-dev-f75a9a5d6c770f1e5fb5f076a03ea3c0e3d81923.tar.gz |
drm/amdgpu/soc15: don't abuse IP soft reset for adapter reset
The IP soft reset interface is for per IP reset but it was
being abused for adapter reset on soc15 asics. Adjust the
interface to make it explicit.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 04a471b..8dc8b72 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -417,12 +417,7 @@ static int soc15_asic_reset(struct amdgpu_device *adev) pci_save_state(adev->pdev); - for (i = 0; i < AMDGPU_MAX_IP_NUM; i++) { - if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP){ - adev->ip_blocks[i].version->funcs->soft_reset((void *)adev); - break; - } - } + psp_gpu_reset(adev); pci_restore_state(adev->pdev); |