All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu: explicitly check for s0ix when evicting resources
@ 2022-01-03 15:23 Mario Limonciello
  2022-01-03 15:23 ` [PATCH 2/2] drm/amdgpu: don't set s3 and s0ix at the same time Mario Limonciello
  2022-01-04 17:14 ` [PATCH 1/2] drm/amdgpu: explicitly check for s0ix when evicting resources Deucher, Alexander
  0 siblings, 2 replies; 7+ messages in thread
From: Mario Limonciello @ 2022-01-03 15:23 UTC (permalink / raw)
  To: amd-gfx; +Cc: Mario Limonciello

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: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index ce93a304292c..412f377f80b1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3956,8 +3956,8 @@ void amdgpu_device_fini_sw(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 */
-	if (adev->in_s3 && (adev->flags & AMD_IS_APU))
+	/* No need to evict vram on APUs for suspend to ram or s2idle */
+	if ((adev->in_s3 || adev->in_s0ix) && (adev->flags & AMD_IS_APU))
 		return;
 
 	if (amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM))
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-04 18:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 15:23 [PATCH 1/2] drm/amdgpu: explicitly check for s0ix when evicting resources Mario Limonciello
2022-01-03 15:23 ` [PATCH 2/2] drm/amdgpu: don't set s3 and s0ix at the same time Mario Limonciello
2022-01-04  2:50   ` Quan, Evan
2022-01-04 17:24   ` Deucher, Alexander
2022-01-04 17:26     ` Limonciello, Mario
2022-01-04 18:47       ` Alex Deucher
2022-01-04 17:14 ` [PATCH 1/2] drm/amdgpu: explicitly check for s0ix when evicting resources Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.