]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: Add new kfd-->kgd interface for gart usage
authorOded Gabbay <oded.gabbay@amd.com>
Sun, 26 Oct 2014 18:45:45 +0000 (20:45 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 9 Jan 2015 20:26:07 +0000 (22:26 +0200)
commit51012362410c9938e429f46e8c02755519850018
treed40d32e0b7bfa8a0f36787adf6f80fb2042b31fd
parentd998c9e18e5f36d6feab7826ef80d22739af569c
drm/amd: Add new kfd-->kgd interface for gart usage

This patch adds two new functions to the kfd-->kgd interface:

init_gtt_mem_allocation, which allocate a large enough buffer on the amdkfd
needs, such as mqds, hpds, kernel queue, fence and runlists. This function
is only called once per GPU device. The size of the allocated buffer is
based on the maximum number of HSA processes and maximum number of queues
per HSA process (two amdkfd kernel module parameters).

free_gtt_mem, which frees a buffer that was allocated on the gart aperture.

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/include/kgd_kfd_interface.h