]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/vcn: Share vcn_v2_0_dec_ring_test_ring to vcn2.5
authorJames Zhu <James.Zhu@amd.com>
Mon, 20 Jan 2020 20:43:04 +0000 (15:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jan 2020 21:46:44 +0000 (16:46 -0500)
Share vcn_v2_0_dec_ring_test_ring to vcn2.5 to support
vcn software ring.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.h
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c

index b8dc136d2a016dfd7f6ebcce39b1d69d0cf6a787..4f7216788f11341860260374bb955b8c4933557f 100644 (file)
@@ -1624,7 +1624,7 @@ static int vcn_v2_0_process_interrupt(struct amdgpu_device *adev,
        return 0;
 }
 
-static int vcn_v2_0_dec_ring_test_ring(struct amdgpu_ring *ring)
+int vcn_v2_0_dec_ring_test_ring(struct amdgpu_ring *ring)
 {
        struct amdgpu_device *adev = ring->adev;
        uint32_t tmp = 0;
index ef749b02ded9eba74d1ef5944a95aa3886e20eb4..6c9de18824284973d57581440c79608b32ad4c94 100644 (file)
@@ -37,6 +37,7 @@ extern void vcn_v2_0_dec_ring_emit_vm_flush(struct amdgpu_ring *ring,
                                unsigned vmid, uint64_t pd_addr);
 extern void vcn_v2_0_dec_ring_emit_wreg(struct amdgpu_ring *ring,
                                uint32_t reg, uint32_t val);
+extern int vcn_v2_0_dec_ring_test_ring(struct amdgpu_ring *ring);
 
 extern void vcn_v2_0_enc_ring_insert_end(struct amdgpu_ring *ring);
 extern void vcn_v2_0_enc_ring_emit_fence(struct amdgpu_ring *ring, u64 addr,
index 6970d3a1ae6f35c5f73755a081d9f5aad48ca42a..d8455b62567dcb95349f0f6bf2dc1892f651af44 100644 (file)
@@ -1488,7 +1488,7 @@ static const struct amdgpu_ring_funcs vcn_v2_5_dec_ring_vm_funcs = {
        .emit_ib = vcn_v2_0_dec_ring_emit_ib,
        .emit_fence = vcn_v2_0_dec_ring_emit_fence,
        .emit_vm_flush = vcn_v2_0_dec_ring_emit_vm_flush,
-       .test_ring = amdgpu_vcn_dec_ring_test_ring,
+       .test_ring = vcn_v2_0_dec_ring_test_ring,
        .test_ib = amdgpu_vcn_dec_ring_test_ib,
        .insert_nop = vcn_v2_0_dec_ring_insert_nop,
        .insert_start = vcn_v2_0_dec_ring_insert_start,