Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/vcn: set no_user_fence for VCN v2.5 enc/dec rings

VCN encoder and decoder rings do not support 64-bit user fence writes,
reject CS submissions with user fences.

Fixes: 28c17d72072b ("drm/amdgpu: add VCN2.5 basic supports")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit efc9dd5590894109bce9a0bfe1fa5592dd6b20b1)

authored by

Yinjie Yao and committed by
Alex Deucher
4f317863 8d80b293

+2
+2
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
··· 1778 1778 static const struct amdgpu_ring_funcs vcn_v2_5_dec_ring_vm_funcs = { 1779 1779 .type = AMDGPU_RING_TYPE_VCN_DEC, 1780 1780 .align_mask = 0xf, 1781 + .no_user_fence = true, 1781 1782 .secure_submission_supported = true, 1782 1783 .get_rptr = vcn_v2_5_dec_ring_get_rptr, 1783 1784 .get_wptr = vcn_v2_5_dec_ring_get_wptr, ··· 1880 1879 .type = AMDGPU_RING_TYPE_VCN_ENC, 1881 1880 .align_mask = 0x3f, 1882 1881 .nop = VCN_ENC_CMD_NO_OP, 1882 + .no_user_fence = true, 1883 1883 .get_rptr = vcn_v2_5_enc_ring_get_rptr, 1884 1884 .get_wptr = vcn_v2_5_enc_ring_get_wptr, 1885 1885 .set_wptr = vcn_v2_5_enc_ring_set_wptr,