Re: [PATCH v5 3/7] drm/amd: Split up UVD suspend into prepare and suspend steps

2023-10-09 Thread Alex Deucher
On Fri, Oct 6, 2023 at 3:07 PM Mario Limonciello wrote: > > amdgpu_uvd_suspend() allocates memory and copies objects into that > allocated memory. This fails under memory pressure. Instead move > majority of this code into a prepare step when swap can still be > allocated. > > Signed-off-by: Mar

[PATCH v5 3/7] drm/amd: Split up UVD suspend into prepare and suspend steps

2023-10-06 Thread Mario Limonciello
amdgpu_uvd_suspend() allocates memory and copies objects into that allocated memory. This fails under memory pressure. Instead move majority of this code into a prepare step when swap can still be allocated. Signed-off-by: Mario Limonciello --- v4->v5: * New patch --- drivers/gpu/drm/amd/amdg