[PATCH 5/9] drm/amdgpu: move ring_from_fence to common code