OSDN Git Service

drm/amdgpu: support atcs method powershift (v4)
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Mon, 10 May 2021 14:00:23 +0000 (19:30 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:36:48 +0000 (22:36 -0400)
commit16eb48c62bd3ff1a523cd1d59591e694bd60277a
treea779441e58e9b5b6243d3013d2209fcad1eccbc7
parent8a81028b4f7afafd138b8f70d3ce4edc75962d08
drm/amdgpu: support atcs method powershift (v4)

add support to handle ATCS method for power shift control.
used to communicate dGPU device state to SBIOS.

V2: use defined acpi func for checking psc support (Lijo)
    fix alignment (Shashank)
V3: rebased on unified ATCS handling (Alex)
V4: rebased on ATPX/ATCS structures global (Alex)

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
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
drivers/gpu/drm/amd/include/amd_acpi.h