diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1299-drm-amd-display-fix-optimize_bandwidth-func-pointer-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1299-drm-amd-display-fix-optimize_bandwidth-func-pointer-.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1299-drm-amd-display-fix-optimize_bandwidth-func-pointer-.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1299-drm-amd-display-fix-optimize_bandwidth-func-pointer-.patch new file mode 100644 index 00000000..cdf51da3 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1299-drm-amd-display-fix-optimize_bandwidth-func-pointer-.patch @@ -0,0 +1,50 @@ +From 3bd1258a1dbe949d62683dd5546da807998ddd07 Mon Sep 17 00:00:00 2001 +From: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Date: Tue, 5 Feb 2019 13:55:20 -0500 +Subject: [PATCH 1299/2940] 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 + +Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h | 4 ++++ + drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c | 2 +- + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h +index acd418515346..a6b80fdaa666 100644 +--- a/drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h ++++ b/drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h +@@ -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); +diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c +index a60a90e68d91..c4543178ba20 100644 +--- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c ++++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c +@@ -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; + } + +-- +2.17.1 + |