aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2021-04-07 18:46:26 -0400
committerAlex Deucher <[email protected]>2021-04-20 21:45:54 -0400
commitd4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd (patch)
treebfaa36e90fc3535913b6955e6e49a63657f78478 /tools/perf/scripts/python/bin
parentb40a6ab2cf9213923bf8e821ce7fa7f6a0a26990 (diff)
drm/amdkfd: Allow access for mmapping KFD BOs
DRM render node file handles are used for CPU mapping of BOs using mmap by the Thunk. It uses the DRM render node of the GPU where the BO was allocated. DRM allows mmap access automatically when it creates a GEM handle for a BO. KFD BOs don't have GEM handles, so KFD needs to manage access manually. Use drm_vma_node_allow to allow user mode to mmap BOs allocated with kfd_ioctl_alloc_memory_of_gpu through the DRM render node that was used in the kfd_ioctl_acquire_vm call for the same GPU. Signed-off-by: Felix Kuehling <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Philip Yang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions