diff options
author | Christian König <christian.koenig@amd.com> | 2016-01-25 11:06:09 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-10 14:17:04 -0500 |
commit | 599f434817c5cdf1af9fd9e7d4bef69bd0c02796 (patch) | |
tree | 71db0e7437836dbb0189818c5b8c2c4315fe386a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | fe6b2ad91fd3578d69ef07f0ba35a28c002034b6 (diff) |
drm/amdgpu: remove nonsense IB size checks
Those are just leftovers from the time we wrote the VM
updates directly to the ring.
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_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 2dd73ca57221..dfbcc64ef9fa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -434,10 +434,6 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev, | |||
434 | /* assume the worst case */ | 434 | /* assume the worst case */ |
435 | ndw += vm->max_pde_used * 6; | 435 | ndw += vm->max_pde_used * 6; |
436 | 436 | ||
437 | /* update too big for an IB */ | ||
438 | if (ndw > 0xfffff) | ||
439 | return -ENOMEM; | ||
440 | |||
441 | ib = kzalloc(sizeof(struct amdgpu_ib), GFP_KERNEL); | 437 | ib = kzalloc(sizeof(struct amdgpu_ib), GFP_KERNEL); |
442 | if (!ib) | 438 | if (!ib) |
443 | return -ENOMEM; | 439 | return -ENOMEM; |
@@ -743,10 +739,6 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev, | |||
743 | ndw += 2 * 10; | 739 | ndw += 2 * 10; |
744 | } | 740 | } |
745 | 741 | ||
746 | /* update too big for an IB */ | ||
747 | if (ndw > 0xfffff) | ||
748 | return -ENOMEM; | ||
749 | |||
750 | ib = kzalloc(sizeof(struct amdgpu_ib), GFP_KERNEL); | 742 | ib = kzalloc(sizeof(struct amdgpu_ib), GFP_KERNEL); |
751 | if (!ib) | 743 | if (!ib) |
752 | return -ENOMEM; | 744 | return -ENOMEM; |