]> 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)
commit82dd95bea97b2a2f6d5da3f997c04b7bbc0ad295
tree9c5e5c78bef940f1f8a3e97dbe95fee486c63e21
parentdb05ed4de94ae75b23993f143141c75d65d56967
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