[PATCH 6.17 281/563] drm/amdgpu: Check vcn state before profile switch