]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38adb594cd263757dd98744ca2104d2c2e24fb41
tree193192d0c84b24c26f9e01c510dc4e913a289428
parente91461bbe31c1c72ed2751749ca2e5ae0a107894
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