]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06f8776b51a786191968a8d043bfc00a56130b3e
treeb50fbaf1d4984ca46bee3781f5490b2c335d019d
parenta9f8a474ab5c15f3e355c16025d285e6f6afe74a
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