aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2019-06-06 08:53:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-11 12:45:24 -0500
commitc3e50f89006cca9c422c9b3cf83c6dd84bc91f52 (patch)
treeded6ffd1afec6852ce9e552d6be86cf3d8702def /drivers/gpu/drm/amd/display/amdgpu_dm
parentdrm/amdgpu: Add module parameter for specifying default ABM level (diff)
downloadlinux-dev-c3e50f89006cca9c422c9b3cf83c6dd84bc91f52.tar.xz
linux-dev-c3e50f89006cca9c422c9b3cf83c6dd84bc91f52.zip
drm/amd/display: Set default ABM level to module parameter
[Why] The module parameter to specify the default ABM level is now defined, so hook it up in DM. [How] On connector reset specify the default level. DC will program this as part of the modeset since it gets passed onto the stream in dm_update_crtc_state. It's only set for eDP connectors, but it doesn't matter if this is specified for connectors or hardware that doesn't support ABM. It's DC's responsibility to check that ABM can be set or adjusted, and DC does check that the DMCU firmware is running and if there's backlight control available. Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: David Francis <david.francis@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index f09407162d41..6c709f922f66 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3738,6 +3738,9 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector)
state->underscan_vborder = 0;
state->base.max_requested_bpc = 8;
+ if (connector->connector_type == DRM_MODE_CONNECTOR_eDP)
+ state->abm_level = amdgpu_dm_abm_level;
+
__drm_atomic_helper_connector_reset(connector, &state->base);
}
}