OSDN Git Service

drm/amdgpu: handle all fragment sizes v4
authorRoger He <Hongbo.He@amd.com>
Wed, 30 Aug 2017 05:01:19 +0000 (13:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
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 <Hongbo.He@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c