mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amdgpu: don't try to move pinned BOs
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>
This commit is contained in:
parent
fa7c7939b4
commit
6edc6910ba
@ -409,6 +409,10 @@ static bool amdgpu_cs_try_evict(struct amdgpu_cs_parser *p,
|
|||||||
if (candidate->robj == validated)
|
if (candidate->robj == validated)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* We can't move pinned BOs here */
|
||||||
|
if (bo->pin_count)
|
||||||
|
continue;
|
||||||
|
|
||||||
other = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type);
|
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 */
|
/* Check if this BO is in one of the domains we need space for */
|
||||||
|
Loading…
Reference in New Issue
Block a user