drm/amd/display: don't free stolen console memory during suspend
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 19:40:33 +0000 (15:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 15:06:57 +0000 (11:06 -0400)
commite6b27cf515a7813ca2228a9aec8e61d67fb9fbf0
tree5962e36ff50d98f56105a2b45e3e393ba29d8e20
parent7f80a88dd370777b86ff583f036c558c58c9f84c
drm/amd/display: don't free stolen console memory during suspend

Don't free the memory if we are hitting this as part of suspend.
This way we don't free any memory during suspend; see
amdgpu_bo_free_kernel().  The memory will be freed in the first
non-suspend modeset or when the driver is torn down.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2568
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c