drm/amdgpu: handle all fragment sizes v4
authorRoger He <[email protected]>
Wed, 30 Aug 2017 05:01:19 +0000 (13:01 +0800)
committerAlex Deucher <[email protected]>
Fri, 1 Sep 2017 16:49:32 +0000 (12:49 -0400)
commit6849d47cabc36e8f2697043f8c81e7719876dfd3
tree2401a9f580a77eb6c28ec97b79e81ea5f1208076
parent2b9bdfa70faf8c00969f91d3c4548a0df6071b90
drm/amdgpu: handle all fragment sizes v4

This can improve performance for some cases.

v2 (chk): handle all sizes, simplify the patch quite a bit
v3 (chk): adjust dw estimation as well
v4 (chk): use single loop, make end mask 64bit

Signed-off-by: Roger He <[email protected]>
Signed-off-by: Christian König <[email protected]>
Tested-by: Roger He <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c