]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use drm_dev_unplug in PCI .remove
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 30 Aug 2018 15:24:17 +0000 (11:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 2 Sep 2018 15:16:16 +0000 (10:16 -0500)
commitb0e717fb59ad3148bb02e9d62b2609ae39198556
tree65f43bb0a358ba55268605e18dc0f4c2e020f34c
parent881606b9518cd9685bd7a290f7adaff27fcd1ed6
drm/amdgpu: Use drm_dev_unplug in PCI .remove

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@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c