diff options
author | Guttula, Suresh <Suresh.Guttula@amd.com> | 2018-11-16 01:50:37 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-26 15:47:34 -0500 |
commit | 8ca606de76a212b8c2b8212f82a13f8201cc3117 (patch) | |
tree | 81f08b2232d824d2fc5d9e31da0c68450686c7bb /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | e5bbf0e9ef0d1875050201eeb0239b040f09ed5b (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 69896f451e8a..4e5d13e41f6a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -692,6 +692,8 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, | |||
692 | buf_sizes[0x1] = dpb_size; | 692 | buf_sizes[0x1] = dpb_size; |
693 | buf_sizes[0x2] = image_size; | 693 | buf_sizes[0x2] = image_size; |
694 | buf_sizes[0x4] = min_ctx_size; | 694 | buf_sizes[0x4] = min_ctx_size; |
695 | /* store image width to adjust nb memory pstate */ | ||
696 | adev->uvd.decode_image_width = width; | ||
695 | return 0; | 697 | return 0; |
696 | } | 698 | } |
697 | 699 | ||