drm/amdgpu: write PTEs directly into the IB.
authorChristian König <christian.koenig@amd.com>
Thu, 11 Aug 2016 12:06:54 +0000 (14:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2016 14:43:44 +0000 (10:43 -0400)
commitb0456f93063ec8629cfeee6d03758f92793d96cb
tree59f9cef61f1d68cf3bb6b4baa70b47ba610d4b6a
parent478feaf6cc420e66c071c0a743b334abfe8f18c9
drm/amdgpu: write PTEs directly into the IB.

Write the PTEs at the end of the IB instead of directly into the SDMA commands.
This can save quite some CPU cycles building the entries.

This doesn't change the DW estimation because PTEs where embedded into the IB
before as well. It just moves them to the end of the IB.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c