diff options
author | Christian König <christian.koenig@amd.com> | 2017-05-11 10:21:20 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 18:17:58 -0400 |
commit | 05ec3eda8b213ccc7df9645119c06f4d34a6fe2c (patch) | |
tree | 5e7e5cccdf596427f032ee1000a37a4c3dad4c24 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | a340c7bcf1ea01f8bee82d62b521f0c5e4653425 (diff) |
drm/amdgpu: cleanup VM manager init/fini
VM is mandatory for all hw amdgpu supports. So remove the leftovers
to make it optionally.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 7d1bb44c0136..621f739103a6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -569,9 +569,6 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, | |||
569 | uint64_t va_flags; | 569 | uint64_t va_flags; |
570 | int r = 0; | 570 | int r = 0; |
571 | 571 | ||
572 | if (!adev->vm_manager.enabled) | ||
573 | return -ENOTTY; | ||
574 | |||
575 | if (args->va_address < AMDGPU_VA_RESERVED_SIZE) { | 572 | if (args->va_address < AMDGPU_VA_RESERVED_SIZE) { |
576 | dev_err(&dev->pdev->dev, | 573 | dev_err(&dev->pdev->dev, |
577 | "va_address 0x%lX is in reserved area 0x%X\n", | 574 | "va_address 0x%lX is in reserved area 0x%X\n", |