Files
linux/drivers/gpu/drm
Hamza Mahfooz b0b029ee04 drm/amd/display: fix issues with driver unload
[ Upstream commit e433adc60f ]

Currently, we run into a number of WARN()s when attempting to unload the
amdgpu driver (e.g. using "modprobe -r amdgpu"). These all stem from
calling drm_encoder_cleanup() too early. So, to fix this we can stop
calling drm_encoder_cleanup() from amdgpu_dm_fini() and instead have it
be called from amdgpu_dm_encoder_destroy(). Also, we don't need to free
in amdgpu_dm_encoder_destroy() since mst_encoders[] isn't explicitly
allocated by the slab allocator.

Fixes: f74367e492 ("drm/amdgpu/display: create fake mst encoders ahead of time (v4)")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:25 +01:00
..
2022-09-26 09:11:47 +02:00
2022-08-16 12:46:26 +02:00
2022-09-20 09:37:12 +02:00
2022-08-26 14:22:59 +02:00
2022-06-28 07:56:32 +02:00
2022-04-12 09:27:20 +03:00