[PATCH 8/9] drm: mm: add helper to unwind scan state