Am 31.08.2018 um 18:13 schrieb Andrey Grodzovsky: > This at least allows to fail any subsequent IOCTLs with -ENODEV > after the device is gone. > Still this operation is not supported yet in graphic mode > and will lead at least to page faults and other issues. > > Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com> Well it is a start, Reviewed-by: Christian König <christian.koenig at amd.com>. > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > index d7d9a9d..66d14d3 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > @@ -978,8 +978,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) > { > struct drm_device *dev = pci_get_drvdata(pdev); > > - drm_dev_unregister(dev); > - drm_dev_put(dev); > + DRM_INFO("Device removal is currently not supported outside of fbcon\n"); > + drm_dev_unplug(dev); > pci_disable_device(pdev); > pci_set_drvdata(pdev, NULL); > }