• Chris Wilson's avatar
    drm: Trim the GEM mmap offset hashtab · 4cb81ac2
    Chris Wilson authored
    Using an order 19 drm_ht for the mmap offsets is a little obscene. That
    means that will a fully populated GTT with every single object mmaped at
    least once in its lifetime, there will be exactly one object in each
    bucket.
    
    Typically systems only have at most a few thousand objects, though you
    may see a KDE desktop hit 50000. And most of those should never be
    mapped... On my systems, just using an order 10 ht would still have an
    average occupancy less than 1, so apply a small safety factor and
    use an order 12 ht, like the other mmap offset ht.
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    4cb81ac2
drm_gem.c 15 KB