aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch
new file mode 100644
index 00000000..6db944cd
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0385-drm-amd-display-Assign-stream-to-map-before-we-need-.patch
@@ -0,0 +1,46 @@
+From 60de3256b1353fc63c7b5efb3961467a14a5c0b5 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Wed, 3 May 2017 13:58:45 -0400
+Subject: [PATCH 0385/4131] drm/amd/display: Assign stream to map before we
+ need it
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+index 82086a1..c5330f3 100644
+--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
++++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+@@ -230,7 +230,7 @@ bool mod_freesync_add_stream(struct mod_freesync *mod_freesync,
+ struct core_stream *core_stream = NULL;
+ struct core_dc *core_dc = NULL;
+ struct core_freesync *core_freesync = NULL;
+- int persistent_freesync_enable, stream_index = 0;
++ int persistent_freesync_enable = 0;
+ struct persistent_data_flag flag;
+ unsigned int nom_refresh_rate_micro_hz;
+ unsigned long long temp;
+@@ -249,8 +249,6 @@ bool mod_freesync_add_stream(struct mod_freesync *mod_freesync,
+
+ dc_stream_retain(stream);
+
+- stream_index = map_index_from_stream(core_freesync, stream);
+-
+ temp = stream->timing.pix_clk_khz;
+ temp *= 1000ULL * 1000ULL * 1000ULL;
+ temp = div_u64(temp, stream->timing.h_total);
+@@ -260,7 +258,7 @@ bool mod_freesync_add_stream(struct mod_freesync *mod_freesync,
+
+ if (core_freesync->opts.min_refresh_from_edid != 0 &&
+ dc_is_embedded_signal(
+- stream[stream_index].sink->sink_signal)) {
++ stream->sink->sink_signal)) {
+ caps->supported = true;
+ caps->min_refresh_in_micro_hz =
+ core_freesync->opts.min_refresh_from_edid *
+--
+2.7.4
+