mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
drm/amdgpu: create multiple clear/move ttm entities
This enables parallelism of operations. Signed-off-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
This commit is contained in:
committed by
Alex Deucher
parent
e4029f7a94
commit
897ee11ec0
@@ -2305,8 +2305,8 @@ void amdgpu_ttm_set_buffer_funcs_status(struct amdgpu_device *adev, bool enable)
|
||||
return;
|
||||
}
|
||||
|
||||
num_clear_entities = 1;
|
||||
num_move_entities = 1;
|
||||
num_clear_entities = MIN(adev->mman.num_buffer_funcs_scheds, TTM_NUM_MOVE_FENCES);
|
||||
num_move_entities = MIN(adev->mman.num_buffer_funcs_scheds, TTM_NUM_MOVE_FENCES);
|
||||
sched = adev->mman.buffer_funcs_scheds[0];
|
||||
r = amdgpu_ttm_buffer_entity_init(&adev->mman.gtt_mgr,
|
||||
&adev->mman.default_entity,
|
||||
|
||||
Reference in New Issue
Block a user