OSDN Git Service

drm/amdgpu: No need support vcn decode
authorEmily Deng <Emily.Deng@amd.com>
Thu, 26 Mar 2020 05:41:57 +0000 (13:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:43 +0000 (14:44 -0400)
As no need to support vcn decode feature, so disable the
ring for SR-IOV.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

index ec8091a..febd4c2 100644 (file)
@@ -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);