The main purpose of this series is patch 5, which can avoid delaying flips for a frame in some cases. It depends on patch 4 to prevent flips from taking effect too early, which in turn depends on the core DRM patch 2.
Patches 1 & 3 are cleanups I noticed while working on the other patches.
Mario, it would be great if you could run these through your rigorous vblank testing.
[PATCH 1/5] drm: Only handle _DRM_VBLANK_NEXTONMISS once [PATCH 2/5] drm: Keep track of last vblank sequence waited for [PATCH 3/5] drm/amdgpu: Unpin BO if we can't get fences in [PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before [PATCH 5/5] drm/amdgpu: Set MASTER_UPDATE_MODE to 0 again