]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:00:04 +0000 (08:00 +0200)
commit4a12cc87a815ea7ba857d0e8b34686ce8477834e
tree10b9fa073b01be464bf6e08648e6142555168b14
parent5d303f97212527788caf03df1802da85f6c08ee9
drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc

commit 517b91f4cde3043d77b2178548473e8545ef07cb upstream.

[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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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