]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc
authorShirish S <shirish.s@amd.com>
Tue, 4 Jun 2019 15:55:03 +0000 (21:25 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:39:44 +0000 (12:39 -0500)
commit84cc23edcd504229ec3eaca226fcf0f52c8b88b1
tree0d78c918c3c4e675414fe094cfdbdf812c7dc866
parent61c3ea8ecea2c184ff37a4c9b8f09cee2975ce7e
drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc

[What]
readptr read always returns zero, since most likely
these blocks are either power or clock gated.

[How]
fetch rptr after amdgpu_ring_alloc() which informs
the power management code that the block is about to be
used and hence the gating is turned off.

Signed-off-by: Louis Li <Ching-shih.Li@amd.com>
Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c