drm/amdgpu/acpi: unify ATCS handling (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 19 May 2021 19:47:42 +0000 (15:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 22:03:01 +0000 (18:03 -0400)
commit77bf762f8b3011b2d00eb49098071952956da892
tree9c5e5c78bef940f1f8a3e97dbe95fee486c63e21
parentcd11b58ccef87c59918daa7eb0202fb308aa1350
drm/amdgpu/acpi: unify ATCS handling (v3)

Treat it like ATIF and check both the dGPU and APU for
the method.  This is required because ATCS may be hung
off of the APU in ACPI on A+A systems.

v2: add back accidently removed ACPI handle check.
v3: Fix incorrect atif check (Colin)
    Fix uninitialized variable (Colin)

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