drm/amdgpu: fix amdgpu_need_full_reset (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Oct 2016 20:07:03 +0000 (16:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Oct 2016 15:51:04 +0000 (11:51 -0400)
commitda146d3b5262c1866c868b9dec1bd0f834d6ded6
tree193192d0c84b24c26f9e01c510dc4e913a289428
parentaee3960a0ca34f8bf7dbcdb330c4f37a0f94dd8a
drm/amdgpu: fix amdgpu_need_full_reset (v2)

IP types are not an index.  Each asic may have number and
type of IPs.  Properly check the the type rather than
using the type id as an index.

v2: fix all the IPs to not use IP type as an idx as well.

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
drivers/gpu/drm/amd/amdgpu/tonga_ih.c
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
drivers/gpu/drm/amd/include/amd_shared.h