Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/amd/display: fix optimize_bandwidth func pointer for" failed to apply to 4.20-stable tree

PATCH [email protected] 1 participant 1 message Feb 24, 2019

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.20-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 9f7ddbea2bb826a2147309f735726a8b09950944 Mon Sep 17 00:00:00 2001
From: Bhawanpreet Lakha <[email protected]>
Date: Tue, 5 Feb 2019 13:55:20 -0500
Subject: [PATCH] drm/amd/display: fix optimize_bandwidth func pointer for
dce80

[Why]
optimize_bandwidth was using dce100_prepare_bandwidth this is incorrect

[How]
change it to dce100_optimize_bandwidth

drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h +4 -0
index acd418515346..a6b80fdaa666 100644
@@ -37,6 +37,10 @@ void dce100_prepare_bandwidth(
 		struct dc *dc,
 		struct dc_state *context);
 
+void dce100_optimize_bandwidth(
+		struct dc *dc,
+		struct dc_state *context);
+
 bool dce100_enable_display_power_gating(struct dc *dc, uint8_t controller_id,
 					struct dc_bios *dcb,
 					enum pipe_gating_control power_gating);
drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c +1 -1
index a60a90e68d91..c4543178ba20 100644
@@ -77,6 +77,6 @@ void dce80_hw_sequencer_construct(struct dc *dc)
 	dc->hwss.enable_display_power_gating = dce100_enable_display_power_gating;
 	dc->hwss.pipe_control_lock = dce_pipe_control_lock;
 	dc->hwss.prepare_bandwidth = dce100_prepare_bandwidth;
-	dc->hwss.optimize_bandwidth = dce100_prepare_bandwidth;
+	dc->hwss.optimize_bandwidth = dce100_optimize_bandwidth;
 }