Re: [PATCH v5 1/7] drm/amd: Evict resources during PM ops prepare() callback

2023-10-09 Thread Alex Deucher
On Fri, Oct 6, 2023 at 3:17 PM Mario Limonciello wrote: > > Linux PM core has a prepare() callback run before suspend. > > 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

Re: [PATCH v5 1/7] drm/amd: Evict resources during PM ops prepare() callback

2023-10-09 Thread Christian König
Am 06.10.23 um 20:50 schrieb Mario Limonciello: Linux PM core has a prepare() callback run before suspend. 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

[PATCH v5 1/7] drm/amd: Evict resources during PM ops prepare() callback

2023-10-06 Thread Mario Limonciello
Linux PM core has a prepare() callback run before suspend. 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 move this step into prepare() to mov