summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2018-03-15 17:27:52 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2018-03-15 17:27:52 -0400
commit0fc8011f89feb8b2c3008583b777d097e1974660 (patch)
tree77c0a44e6e9cefad545fc45141680b3b3b1dc7e1 /drivers/gpu/drm/amd/amdkfd/kfd_crat.c
parent5ec7e02854b3b9b55936c3b44b8acfb85e333f49 (diff)
downloadop-kernel-dev-0fc8011f89feb8b2c3008583b777d097e1974660.zip
op-kernel-dev-0fc8011f89feb8b2c3008583b777d097e1974660.tar.gz
drm/amdkfd: Kmap event page for dGPUs
The events page must be accessible in user mode by the GPU and CPU as well as in kernel mode by the CPU. On dGPUs user mode virtual addresses are managed by the Thunk's GPU memory allocation code. Therefore we can't allocate the memory in kernel mode like we do on APUs. But KFD still needs to map the memory for kernel access. To facilitate this, the Thunk provides the buffer handle of the events page to KFD when creating the first event. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_crat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud