• Ben Skeggs's avatar
    drm/nouveau: rework vram init/fini ordering a little · 24f246ac
    Ben Skeggs authored
    Commit "drm/nouveau: add some debug output if nouveau_mm busy at destroy time"
    revealed an issue where vram mm takedown would actually fail due to there
    still being nodes present, causing nouveau to leak a small amount of memory
    on module unload.
    
    This splits TTM/nouveau_mm a bit more cleanly and ensures nouveau_mm fini
    isn't done until all gpuobjs are also destroyed.
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    24f246ac
nouveau_state.c 35.7 KB