drm/amdgpu/vpe: don't emit cond exec command under collaborate mode
authorLang Yu <Lang.Yu@amd.com>
Wed, 31 Jan 2024 07:40:42 +0000 (15:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Mar 2024 20:33:04 +0000 (15:33 -0500)
Not ready now.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c

index 9d2415f26b7c2d0e43e9a59a515fc310b9289884..eea2487d2ea24c1e58996b8a5fee8c20ce3ea860 100644 (file)
@@ -571,6 +571,9 @@ static unsigned int vpe_ring_init_cond_exec(struct amdgpu_ring *ring,
 {
        unsigned int ret;
 
+       if (ring->adev->vpe.collaborate_mode)
+               return ~0;
+
        amdgpu_ring_write(ring, VPE_CMD_HEADER(VPE_CMD_OPCODE_COND_EXE, 0));
        amdgpu_ring_write(ring, lower_32_bits(addr));
        amdgpu_ring_write(ring, upper_32_bits(addr));