drm/amdgpu: Check pmops for desired suspend state
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Fri, 23 Jul 2021 12:38:40 +0000 (18:08 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jul 2021 16:04:19 +0000 (12:04 -0400)
commit91b03fc6b50c7233da3b22f8be6e143f89b2d839
treed7593dd05000212af1c5919c972869e956d02bf5
parentbdb99dbe3ece52c7d6ae88f02030479ea6205e15
drm/amdgpu: Check pmops for desired suspend state

[Why]
User might change the suspend behaviour from OS.

[How]
Check with pm for target suspend state and set s0ix
flag only for s2idle state.

v2: User might change default suspend state, use target state
v3: squash in build fix

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