diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4545-drm-amd-display-Added-documentation-for-some-DC-inte.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4545-drm-amd-display-Added-documentation-for-some-DC-inte.patch | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4545-drm-amd-display-Added-documentation-for-some-DC-inte.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4545-drm-amd-display-Added-documentation-for-some-DC-inte.patch new file mode 100644 index 00000000..907b773f --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4545-drm-amd-display-Added-documentation-for-some-DC-inte.patch @@ -0,0 +1,94 @@ +From c430f842b39dc315bc60f2e0e8b4ef7b1ed22270 Mon Sep 17 00:00:00 2001 +From: Yasir Al Shekerchi <YasirAl.Shekerchi@amd.com> +Date: Fri, 4 May 2018 16:53:03 -0400 +Subject: [PATCH 4545/5725] drm/amd/display: Added documentation for some DC + interface functions + +Signed-off-by: Yasir Al Shekerchi <YasirAl.Shekerchi@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 16 ++++++++++++++++ + drivers/gpu/drm/amd/display/dc/core/dc_link.c | 16 ++++++++++++++++ + drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 11 +++++++++++ + 3 files changed, 43 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index 898c801..3243d65 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -169,6 +169,22 @@ static bool create_links( + return false; + } + ++/** ++ ***************************************************************************** ++ * Function: dc_stream_adjust_vmin_vmax ++ * ++ * @brief ++ * Looks up the pipe context of dc_stream_state and updates the ++ * vertical_total_min and vertical_total_max of the DRR, Dynamic Refresh ++ * Rate, which is a power-saving feature that targets reducing panel ++ * refresh rate while the screen is static ++ * ++ * @param [in] dc: dc reference ++ * @param [in] stream: Initial dc stream state ++ * @param [in] adjust: Updated parameters for vertical_total_min and ++ * vertical_total_max ++ ***************************************************************************** ++ */ + bool dc_stream_adjust_vmin_vmax(struct dc *dc, + struct dc_stream_state *stream, + struct dc_crtc_timing_adjust *adjust) +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +index a9485c1..08b7ee5 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +@@ -2433,6 +2433,22 @@ void core_link_set_avmute(struct pipe_ctx *pipe_ctx, bool enable) + core_dc->hwss.set_avmute(pipe_ctx, enable); + } + ++/** ++ ***************************************************************************** ++ * Function: dc_link_enable_hpd_filter ++ * ++ * @brief ++ * If enable is true, programs HPD filter on associated HPD line using ++ * delay_on_disconnect/delay_on_connect values dependent on ++ * link->connector_signal ++ * ++ * If enable is false, programs HPD filter on associated HPD line with no ++ * delays on connect or disconnect ++ * ++ * @param [in] link: pointer to the dc link ++ * @param [in] enable: boolean specifying whether to enable hbd ++ ***************************************************************************** ++ */ + void dc_link_enable_hpd_filter(struct dc_link *link, bool enable) + { + struct gpio *hpd; +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c +index 68a71ad..815dfb5 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c +@@ -84,6 +84,17 @@ struct dc_plane_state *dc_create_plane_state(struct dc *dc) + return plane_state; + } + ++/** ++ ***************************************************************************** ++ * Function: dc_plane_get_status ++ * ++ * @brief ++ * Looks up the pipe context of plane_state and updates the pending status ++ * of the pipe context. Then returns plane_state->status ++ * ++ * @param [in] plane_state: pointer to the plane_state to get the status of ++ ***************************************************************************** ++ */ + const struct dc_plane_status *dc_plane_get_status( + const struct dc_plane_state *plane_state) + { +-- +2.7.4 + |