drm/amdgpu: free the pre-OS console framebuffer after the first modeset
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Dec 2020 16:52:00 +0000 (11:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:06:30 +0000 (23:06 -0500)
commit5f6fab247c7f206731df8bbb096b7624facf9d90
tree617ea5bccc427089188fcc6c8bebd746fb3cc3ce
parent35d3f41dd694ce2cbcccf9902c039ffad83e588b
drm/amdgpu: free the pre-OS console framebuffer after the first modeset

Rather than in late_init to avoid race conditions between freeing the
buffers and the initial modeset.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c