[PATCH 3/3] drm/amdgpu: wire up the can_remove() callback

Greg Kroah-Hartman gregkh at linuxfoundation.org
Fri Feb 2 23:40:03 UTC 2024


On Fri, Feb 02, 2024 at 05:25:56PM -0500, Hamza Mahfooz wrote:
> Removing an amdgpu device that still has user space references allocated
> to it causes undefined behaviour.

Then fix that please.  There should not be anything special about your
hardware that all of the tens of thousands of other devices can't handle
today.

What happens when I yank your device out of a system with a pci hotplug
bus?  You can't prevent that either, so this should not be any different
at all.

sorry, but please, just fix your driver.

greg k-h


More information about the amd-gfx mailing list