drm/amdgpu: Add reset control handling to reset workflow
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 16 Mar 2021 12:31:51 +0000 (20:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:46:14 +0000 (16:46 -0400)
commit04442bf70debb197d4ed4e850aa77213e685b352
tree17774997a6f4edbe8aa5675d98f07432578ea57a
parente071dce38f0a3acb2f6d019c6bb7933fd20d3357
drm/amdgpu: Add reset control handling to reset workflow

This prefers reset control based handling if it's implemented
for a particular ASIC. If not, it takes the legacy path. It uses
the legacy method of preparing environment (job, scheduler tasks)
and restoring environment.

v2: remove unused variable (Alex)

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c