]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit751b4a82a8f8de1254a7b5d30d6c4348ab94dd90
tree9c5e5c78bef940f1f8a3e97dbe95fee486c63e21
parentd431dac82bf905c28550c30c658d33ed90c5c288
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