Commit e53d9665 authored by Mario Limonciello's avatar Mario Limonciello Committed by Alex Deucher

drm/amdgpu: explicitly check for s0ix when evicting resources

This codepath should be running in both s0ix and s3, but only does
currently because s3 and s0ix are both set in the s0ix case.
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Acked-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f38b0d48
...@@ -3957,8 +3957,8 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev) ...@@ -3957,8 +3957,8 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
*/ */
static void amdgpu_device_evict_resources(struct amdgpu_device *adev) static void amdgpu_device_evict_resources(struct amdgpu_device *adev)
{ {
/* No need to evict vram on APUs for suspend to ram */ /* No need to evict vram on APUs for suspend to ram or s2idle */
if (adev->in_s3 && (adev->flags & AMD_IS_APU)) if ((adev->in_s3 || adev->in_s0ix) && (adev->flags & AMD_IS_APU))
return; return;
if (amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM)) if (amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment