Re: [PATCH v2 2/3] drm/amd: Move evict resources suspend step to prepare()

2023-10-03 Thread Mario Limonciello
/amd: Move evict resources suspend step to prepare() If the system is under high memory pressure, the resources may need to be evicted into swap instead. If the storage backing for swap is offlined during the suspend() step then such a call may fail. So instead move this step into prepare

RE: [PATCH v2 2/3] drm/amd: Move evict resources suspend step to prepare()

2023-10-03 Thread Deucher, Alexander
[AMD Official Use Only - General] > -Original Message- > From: amd-gfx On Behalf Of Mario > Limonciello > Sent: Monday, October 2, 2023 6:45 PM > To: amd-gfx@lists.freedesktop.org > Cc: Wentland, Harry ; Limonciello, Mario > > Subject: [PATCH v2 2/3] drm/a

[PATCH v2 2/3] drm/amd: Move evict resources suspend step to prepare()

2023-10-02 Thread Mario Limonciello
If the system is under high memory pressure, the resources may need to be evicted into swap instead. If the storage backing for swap is offlined during the suspend() step then such a call may fail. So instead move this step into prepare(), while leaving all other steps that put the GPU into a