[PATCH 05/11] drm: mm: add helper to unwind scan state