]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Set requested plane state DCC params for GFX9
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 2 Jan 2019 20:15:41 +0000 (15:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:48 +0000 (15:04 -0500)
commitcc035f21631180f26b56a0adeb76c5e36cb1e845
treeb85ac6a596aaa041e6a5b147806ec311036828dc
parentffc274912884e8d970d277f18041a4e7345ed0cc
drm/amd/display: Set requested plane state DCC params for GFX9

[Why]
Hardware support for Delta Color Compression (DCC) decompression is
available in DC for GFX9 but there's no way for userspace to enable
the feature.

Enabling the feature can provide improved GFX performance and
power savings in many situations.

[How]
The GFX9 DCC parameters are passed to amdgpu_dm from AMDGPU via the
amdgpu_bo tiling_flags. The plane capability is queried and the
parameters are set accordingly.

The DCC address is given via a 256 byte aligned offset on the
framebuffer address. The DCC address is updated whenever the buffer
address changes.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c