drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD
authorGuttula, Suresh <Suresh.Guttula@amd.com>
Fri, 16 Nov 2018 06:50:37 +0000 (06:50 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Nov 2018 20:47:34 +0000 (15:47 -0500)
commit8ca606de76a212b8c2b8212f82a13f8201cc3117
tree81f08b2232d824d2fc5d9e31da0c68450686c7bb
parente5bbf0e9ef0d1875050201eeb0239b040f09ed5b
drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD

We observe black lines (underflow) on display when playing a
4K video with UVD. On Disabling Low memory P state this issue is
not seen.
In this patch ,disabling low memory P state only when video
size >= 4k.
Multiple runs of power measurement shows no impact

Signed-off-by: suresh guttula <suresh.guttula@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h