Linux 5.14 to debut later in the summer will allow for hot unplugging of AMD Radeon graphics cards such as when using an external GPU enclosure or passing back a GPU from a virtual machine to the host. Up until now the AMDGPU kernel driver hasn’t cooperated nicely with the Radeon GPU for hot unplug events…
Source: Phoronix – Linux 5.14 To Allow Hot Unplug Of AMD Radeon GPUs