• Francisco Jerez's avatar
    drm/ttm: Allocate the page pool manager in the heap. · 5870a4d9
    Francisco Jerez authored
    Repeated ttm_page_alloc_init/fini fails noisily because the pool
    manager kobj isn't zeroed out between uses (we could do just that but
    statically allocated kobjects are generally considered a bad thing).
    Move it to kzalloc'ed memory.
    
    Note that this patch drops the refcounting behavior of the pool
    allocator init/fini functions: it would have led to a race condition
    in its current form, and anyway it was never exploited.
    
    This fixes a regression with reloading kms modules at runtime, since
    page allocator was introduced.
    Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    5870a4d9
ttm_page_alloc.c 21.1 KB