Re: [PATCH v4 2/3] drm/amd/display: Destroy DC context while keeping DML

2023-10-05 Thread Mario Limonciello
On 10/5/2023 09:27, Alex Deucher wrote: On Wed, Oct 4, 2023 at 1:37 PM Mario Limonciello wrote: If there is memory pressure at suspend time then dynamically allocating a large structure as part of DC suspend code will fail. Instead re-use the same structure and clear all members except those

Re: [PATCH v4 2/3] drm/amd/display: Destroy DC context while keeping DML

2023-10-05 Thread Alex Deucher
On Wed, Oct 4, 2023 at 1:37 PM Mario Limonciello wrote: > > If there is memory pressure at suspend time then dynamically > allocating a large structure as part of DC suspend code will > fail. > > Instead re-use the same structure and clear all members except > those that should be maintained. > >

[PATCH v4 2/3] drm/amd/display: Destroy DC context while keeping DML

2023-10-04 Thread Mario Limonciello
If there is memory pressure at suspend time then dynamically allocating a large structure as part of DC suspend code will fail. Instead re-use the same structure and clear all members except those that should be maintained. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2362