> -----Original Message-----
> From: Roger.He [mailto:hongbo...@amd.com]
> Sent: Monday, March 27, 2017 9:52 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Deucher, Alexander; He, Hongbo
> Subject: [PATCH 1/2] drm/amd/amdgpu: fix performance drop when VRAM
> pressure
> 
> When VRAM pressue and trigger huge evictions there is performance drop,
> this patch fix it.
> 
> Change-Id: Idcd2db65be69d62bcbd7dfaa3bcf9bc964d6d122
> Signed-off-by: Roger.He <hongbo...@amd.com>
> Reviewed-by: Christian König <christian.koe...@amd.com>

Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index 434c931..d6b2de9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -405,10 +405,8 @@ int amdgpu_bo_create_restricted(struct
> amdgpu_device *adev,
>       if (unlikely(r != 0))
>               return r;
> 
> -     bo->tbo.priority = ilog2(bo->tbo.num_pages);
>       if (kernel)
> -             bo->tbo.priority *= 2;
> -     bo->tbo.priority = min(bo->tbo.priority, TTM_MAX_BO_PRIORITY -
> 1);
> +             bo->tbo.priority = 1;
> 
>       if (flags & AMDGPU_GEM_CREATE_VRAM_CLEARED &&
>           bo->tbo.mem.placement & TTM_PL_FLAG_VRAM) {
> --
> 2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to