drm/amdkfd: Allocate gart memory using new interface
authorOded Gabbay <oded.gabbay@amd.com>
Sun, 26 Oct 2014 07:53:37 +0000 (09:53 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 9 Jan 2015 20:26:09 +0000 (22:26 +0200)
commit73a1da0bb3b32a552817c57dcaebef09bd2f3677
treeb50fbaf1d4984ca46bee3781f5490b2c335d019d
parente18e794e6ba02e94edb386e6fcd4217773cb0ac8
drm/amdkfd: Allocate gart memory using new interface

This patch changes the calls to allocate the gart memory for amdkfd from the
old interface (radeon_sa) to the new one (kfd_gtt_sa)

The new gart sub-allocator is initialized with chunk size equal to 512 bytes.
This is because the KV MQD is 512 Bytes and most of the sub-allocations are
MQDs.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alexey Skidanov <Alexey.skidanov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c