I don’t mean to read it twice. The solution is to make first read later. I didn’t modify the original code to make code difference less and simple. I guess it should work to remove the original read there. From: Liu, Leo <Leo.Liu@xxxxxxx>
int amdgpu_vce_ring_test_ring(struct amdgpu_ring *ring) uint32_t rptr = amdgpu_ring_get_rptr(ring); unsigned i; Above is original code, rptr is updated when called, and below is your patch, my question is why do you need to get rptr twice? @@ -1084,6 +1084,8 @@ int amdgpu_vce_ring_test_ring(struct amdgpu_ring *ring) if (r) return r; + rptr = amdgpu_ring_get_rptr(ring); + amdgpu_ring_write(ring, VCE_CMD_END); amdgpu_ring_commit(ring); On 5/27/19 12:22 PM, Li, Ching-shih (Louis) wrote:
|
_______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx