[PATCH 11/12] drm/amdgpu: remove maximum BO size limitation.
Alex Deucher
alexdeucher at gmail.com
Fri Jun 30 16:49:47 UTC 2017
On Fri, Jun 30, 2017 at 7:22 AM, Christian König
<deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> We can finally remove this now.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
Woot!
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> index 96c4493..2382785 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> @@ -58,17 +58,6 @@ int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size,
> alignment = PAGE_SIZE;
> }
>
> - if (!(initial_domain & (AMDGPU_GEM_DOMAIN_GDS | AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA))) {
> - /* Maximum bo size is the unpinned gtt size since we use the gtt to
> - * handle vram to system pool migrations.
> - */
> - max_size = adev->mc.gtt_size - adev->gart_pin_size;
> - if (size > max_size) {
> - DRM_DEBUG("Allocation size %ldMb bigger than %ldMb limit\n",
> - size >> 20, max_size >> 20);
> - return -ENOMEM;
> - }
> - }
> retry:
> r = amdgpu_bo_create(adev, size, alignment, kernel, initial_domain,
> flags, NULL, NULL, &robj);
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list