aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2024-01-31 07:40:42 +0000
committerAlex Deucher <[email protected]>2024-03-07 20:33:04 +0000
commitd40f6213b52c161fd4634933acbc32103a283363 (patch)
tree698c11d27959f45781bd8d88947b399dd439f27d /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
parentdrm/amdgpu/vpe: add collaborate mode support for VPE (diff)
downloadkernel-d40f6213b52c161fd4634933acbc32103a283363.tar.gz
kernel-d40f6213b52c161fd4634933acbc32103a283363.zip
drm/amdgpu/vpe: don't emit cond exec command under collaborate mode
Not ready now. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 9d2415f26b7c..eea2487d2ea2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
@@ -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));