diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1089-drm-amd-display-Remove-mpc-from-bios-left-over-keep-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1089-drm-amd-display-Remove-mpc-from-bios-left-over-keep-.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1089-drm-amd-display-Remove-mpc-from-bios-left-over-keep-.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1089-drm-amd-display-Remove-mpc-from-bios-left-over-keep-.patch new file mode 100644 index 00000000..a92418a8 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1089-drm-amd-display-Remove-mpc-from-bios-left-over-keep-.patch @@ -0,0 +1,42 @@ +From b31adff8e8d54767550ed24480639a59abee3e4d Mon Sep 17 00:00:00 2001 +From: Yongqiang Sun <yongqiang.sun@amd.com> +Date: Tue, 22 Aug 2017 15:03:06 -0400 +Subject: [PATCH 1089/4131] drm/amd/display: Remove mpc from bios left over, + keep double buffer disabled. + +Change-Id: Ife3ff042c9f70a6e8c08f0e5a395117de04eed14 +Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <Harry.Wentland@amd.com> +Acked-by: Tim Writer <Tim.Writer@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c +index 52f2f2d..707aab0 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c +@@ -127,10 +127,18 @@ static void mpc10_mpcc_remove( + for (z_idx = 0; z_idx < opp->mpc_tree.num_pipes; z_idx++) + if (opp->mpc_tree.dpp[z_idx] == dpp_id) + break; ++ + if (z_idx == opp->mpc_tree.num_pipes) { +- ASSERT(0); ++ /* In case of resume from S3/S4, remove mpcc from bios left over */ ++ REG_SET(MPCC_OPP_ID[dpp_id], 0, ++ MPCC_OPP_ID, 0xf); ++ REG_SET(MPCC_TOP_SEL[dpp_id], 0, ++ MPCC_TOP_SEL, 0xf); ++ REG_SET(MPCC_BOT_SEL[dpp_id], 0, ++ MPCC_BOT_SEL, 0xf); + return; + } ++ + mpcc_id = opp->mpc_tree.mpcc[z_idx]; + + REG_SET(MPCC_OPP_ID[mpcc_id], 0, +-- +2.7.4 + |