[PATCH 5.15 34/42] drm/amdgpu: check atomic flag to differeniate with legacy path