[PATCH 05/10] drm/radeon: add sync helper function