drm/amdgpu: Refactor mode2 reset logic for v11.0.7
authorVictor Zhao <Victor.Zhao@amd.com>
Thu, 13 Oct 2022 07:53:19 +0000 (15:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Oct 2022 02:08:40 +0000 (22:08 -0400)
commita31e62873f11dff12cbeb8e6f864d0c8e5be0869
tree9ee801b8d4288dff24c11ace63cb48ecfea58df9
parenta340847b0214aa9b8fd9839f7b2822ccc607edab
drm/amdgpu: Refactor mode2 reset logic for v11.0.7

- refactor mode2 on v11.0.7 to align with aldebaran
- comment out using mode2 reset as default for now, will introduce
another controller to replace previous reset_level_mask

v2: squash in unused variable removal (Alex)

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c