diff options
| author | Maarten Lankhorst <[email protected]> | 2021-06-10 07:01:52 +0000 |
|---|---|---|
| committer | Maarten Lankhorst <[email protected]> | 2021-06-11 08:53:25 +0000 |
| commit | cf3e3e86d77970211e0983130e896ae242601003 (patch) | |
| tree | 328ad5fa59ab5807c27b2562ca26a94162cc99d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/vma: Add a driver_private member to vma_node. (diff) | |
| download | kernel-cf3e3e86d77970211e0983130e896ae242601003.tar.gz kernel-cf3e3e86d77970211e0983130e896ae242601003.zip | |
drm/i915: Use ttm mmap handling for ttm bo's.
Use the ttm handlers for servicing page faults, and vm_access.
We do our own validation of read-only access, otherwise use the
ttm handlers as much as possible.
Because the ttm handlers expect the vma_node at vma->base, we slightly
need to massage the mmap handlers to look at vma_node->driver_private
to fetch the bo, if it's NULL, we assume i915's normal mmap_offset uapi
is used.
This is the easiest way to achieve compatibility without changing ttm's
semantics.
Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
