HomeFreeBSD

drm/ttm: Fix unmap of buffer object
rS254876Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

drm/ttm: Fix unmap of buffer object

Add a new ttm_bo_release_mmap() function to unmap pages in a
vm_object_t. Pages are freed when the buffer object is later released.

This function is called in ttm_bo_unmap_virtual_locked(), replacing
Linux' unmap_mapping_range(). In particular this is called when a buffer
object is about to be moved, so that its mapping is invalidated.

However, we don't use this function in ttm_bo_vm_dtor(), because the
vm_object_t is already marked as OBJ_DEAD and the pages will be
unmapped.

Approved by: kib@

Details

Provenance
dumbbellAuthored on
Parents
rS254875: ttm: "to_page->valid = VM_PAGE_BITS_ALL" before vm_page_dirty(to_page)
Branches
Unknown
Tags
Unknown

Event Timeline