search for: radeon_mmap

Displaying 1 result from an estimated 1 matches for "radeon_mmap".

Did you mean: radeon_mman
2018 Apr 15
0
[RFC] Rewrite page fault interception in TTM drivers
...ttm_vm_ops->fault(vmf); + r = ttm_bo_vm_fault(vmf); up_read(&rdev->pm.mclk_lock); return r; } +static const struct vm_operations_struct radeon_ttm_vm_ops = { + .fault = radeon_ttm_fault, + .open = ttm_bo_vm_open, + .close = ttm_bo_vm_close, + .access = ttm_bo_vm_access, +}; + int radeon_mmap(struct file *filp, struct vm_area_struct *vma) { struct drm_file *file_priv; @@ -983,11 +987,6 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma) if (unlikely(r != 0)) { return r; } - if (unlikely(ttm_vm_ops == NULL)) { - ttm_vm_ops = vma->vm_ops; - radeon_ttm_vm_ops =...