Re: [PATCH] drm/amd/display: fix issues with driver unload

2023-01-17 Thread Alex Deucher
On Tue, Jan 17, 2023 at 3:55 PM Hamza Mahfooz wrote: > > 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_clea

[PATCH] drm/amd/display: fix issues with driver unload

2023-01-17 Thread Hamza Mahfooz
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() in amdgpu_dm_fini() and instead have it be called from amd