drm/amdgpu: don't try to move pinned BOs
Subsystems (2)
PATCH 1/1 drm/amdgpu: don't try to move pinned BOs
Never try to move pinned BOs during CS.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +4 -0
@@ -414,6 +414,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 */
Signature · 6 lines
2.11.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20171124104610.20179-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Michel Dänzer
Reviewed-byQuoted 13 lines · Christian König
Never try to move pinned BOs during CS.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c static bool amdgpu_cs_try_evict(struct amdgpu_cs_parser *p, · line 423
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +4
-0@@ -414,6 +414,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 */
Reviewed-by Michel Dänzer <[email protected]>
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx