]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Add DC Debug mask to disable features for bringup
authorHarry Wentland <harry.wentland@amd.com>
Fri, 1 May 2020 18:23:37 +0000 (14:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 16:37:19 +0000 (12:37 -0400)
commit8a791dabea181607f27aacb89c5e75a2eaaf0586
tree5df517e63209586724831b78f2686f81105bdaa7
parent9f76f7e87871230698901f8e2b459366f36da49a
drm/amd/display: Add DC Debug mask to disable features for bringup

[Why]
At bringup we want to be able to disable various power features.

[How]
These features are already exposed as dc_debug_options and exercised
on other OSes. Create a new dc_debug_mask module parameter and expose
relevant bits, in particular
 * DC_DISABLE_PIPE_SPLIT
 * DC_DISABLE_STUTTER
 * DC_DISABLE_DSC
 * DC_DISABLE_CLOCK_GATING

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