[PATCH v3 3/3] drm/amd: Drop needless call to evict resources in prepare()
Mario Limonciello
mario.limonciello at amd.com
Fri Nov 22 19:06:26 UTC 2024
As resources are now evicted by the pm notifier chain, there is
no need to also evict them during the pm prepare() callback.
Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
v3:
* New patch
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index be87491d1851..149a2fc8b582 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -4816,11 +4816,6 @@ int amdgpu_device_prepare(struct drm_device *dev)
if (dev->switch_power_state == DRM_SWITCH_POWER_OFF)
return 0;
- /* Evict the majority of BOs before starting suspend sequence */
- r = amdgpu_device_evict_resources(adev);
- if (r)
- goto unprepare;
-
flush_delayed_work(&adev->gfx.gfx_off_delay_work);
for (i = 0; i < adev->num_ip_blocks; i++) {
--
2.34.1
More information about the amd-gfx
mailing list