
AMD driver developer Andrey Grodzovsky sent out the second version of this hot device unplug handling for AMDGPU but even with the improvements is still considered a proof of concept state. The hope once these patches are fully vetted is to avoid application crashes and other problems that current can happen when unplugging an "eGPU" or otherwise emulating a GPU unplug/remove event via sysfs.
This new version of the hot unplug handling follows feedback on the original patch proposal, better handling around what happens to the buffer objects when the GPU is disconnected, and other changes. But there still are some issues coming up with this code to be addressed before it could be considered for integrating into a future Linux kernel release.
Those with an external GPU setup can find the "v2" patches via this mailing list thread.
1 Comment