drm/amdgpu: Skip uvd and vce ring test for SRIOV
authorFrank Min <Frank.Min@amd.com>
Mon, 12 Jun 2017 03:02:09 +0000 (11:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2017 18:45:47 +0000 (14:45 -0400)
Since rptr would not be accessed on later secure asics in sriov, remove
the ring test.

Signed-off-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Xiangliang.Yu <Xiangliang.Yu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c

index b692ad4022521a5244f23e846430898a3a3bd9d4..c855366521abc527d6ed9188ae664892aa94d8ad 100644 (file)
@@ -937,9 +937,9 @@ int amdgpu_vce_ring_test_ring(struct amdgpu_ring *ring)
        unsigned i;
        int r, timeout = adev->usec_timeout;
 
-       /* workaround VCE ring test slow issue for sriov*/
+       /* skip ring test for sriov*/
        if (amdgpu_sriov_vf(adev))
-               timeout *= 10;
+               return 0;
 
        r = amdgpu_ring_alloc(ring, 16);
        if (r) {
index fbf7b412a7fb335564fcdb696b9abe0af45f9907..ab447e8e1954916d6901493e12cc0c3195e815e1 100644 (file)
@@ -165,6 +165,9 @@ static int uvd_v7_0_enc_ring_test_ring(struct amdgpu_ring *ring)
        unsigned i;
        int r;
 
+       if (amdgpu_sriov_vf(adev))
+               return 0;
+
        r = amdgpu_ring_alloc(ring, 16);
        if (r) {
                DRM_ERROR("amdgpu: uvd enc failed to lock ring %d (%d).\n",