• Thomas Hellstrom (VMware)'s avatar
    drm: Add a drm_get_unmapped_area() helper · b1823416
    Thomas Hellstrom (VMware) authored
    Unaligned virtual addresses makes it unlikely that huge page-table entries
    can be used.
    So align virtual buffer object address huge page boundaries to the
    underlying physical address huge page boundaries taking buffer object
    sizes into account to determine when it might be possible to use huge
    page-table entries.
    
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
    Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
    Cc: Ralph Campbell <rcampbell@nvidia.com>
    Cc: "Jérôme Glisse" <jglisse@redhat.com>
    Cc: "Christian König" <christian.koenig@amd.com>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarThomas Hellstrom (VMware) <thomas_os@shipmail.org>
    Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
    Acked-by: default avatarChristian König <christian.koenig@amd.com>
    b1823416
drm_file.h 11.1 KB