]> 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)
commite7d9cfaa6567068b0bcc50a00d4e4caf1cdf412c
tree193192d0c84b24c26f9e01c510dc4e913a289428
parentcf0d35aca5c6f72e2ee7129078b971135c4c19e5
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