From: Emily Deng Date: Thu, 26 Mar 2020 05:41:57 +0000 (+0800) Subject: drm/amdgpu: No need support vcn decode X-Git-Tag: v5.8-rc1~194^2~15^2~222 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad31da434eb3c41fe291851316267fa73d352bed;p=thirdparty%2Flinux.git drm/amdgpu: No need support vcn decode As no need to support vcn decode feature, so disable the ring for SR-IOV. Signed-off-by: Emily Deng Reviewed-by: Monk Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c index ec8091a661df1..febd4c2b43a23 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c @@ -223,6 +223,10 @@ static int vcn_v2_0_hw_init(void *handle) if (r) goto done; + //Disable vcn decode for sriov + if (amdgpu_sriov_vf(adev)) + ring->sched.ready = false; + for (i = 0; i < adev->vcn.num_enc_rings; ++i) { ring = &adev->vcn.inst->ring_enc[i]; r = amdgpu_ring_test_helper(ring);