[PATCH] drm/amdgpu: warn if dp aux is still attached on free

2016-10-03 Thread Alex Deucher
On Sun, Oct 2, 2016 at 5:06 PM, Grazvydas Ignotas wrote: > If this happens (and it recently did), we free a structure while part of > it is still in use, which results in non-obvious crashes. The way it's > detached is not trivial (DRM core has to call the connector .destroy > callback and things

[PATCH] drm/amdgpu: warn if dp aux is still attached on free

2016-10-03 Thread Grazvydas Ignotas
If this happens (and it recently did), we free a structure while part of it is still in use, which results in non-obvious crashes. The way it's detached is not trivial (DRM core has to call the connector .destroy callback and things must be torn down in the right order), so better detect it and war