lkml.org 
[lkml]   [2018]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for 4.14 072/100] drm/amdgpu: don't try to move pinned BOs
    Date
    From: Christian König <christian.koenig@amd.com>

    [ Upstream commit 6edc6910ba4cd6eab309263539c8f09b8ad772bf ]

    Never try to move pinned BOs during CS.

    Signed-off-by: Christian König <christian.koenig@amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    ---
    drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
    index 60d8bedb694d..b5aa8e6f8e0b 100644
    --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
    +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
    @@ -403,6 +403,10 @@ static bool amdgpu_cs_try_evict(struct amdgpu_cs_parser *p,
    if (candidate->robj == validated)
    break;

    + /* We can't move pinned BOs here */
    + if (bo->pin_count)
    + continue;
    +
    other = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type);

    /* Check if this BO is in one of the domains we need space for */
    --
    2.11.0
    \
     
     \ /
      Last update: 2018-01-24 05:52    [W:4.307 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site