diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0530-drm-amd-display-fix-non-dcn-compilation.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0530-drm-amd-display-fix-non-dcn-compilation.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0530-drm-amd-display-fix-non-dcn-compilation.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0530-drm-amd-display-fix-non-dcn-compilation.patch new file mode 100644 index 00000000..9e0694b1 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0530-drm-amd-display-fix-non-dcn-compilation.patch @@ -0,0 +1,31 @@ +From d9498f89bf0c4ca9e2244b93d97ea5cc15109d46 Mon Sep 17 00:00:00 2001 +From: Roman Li <Roman.Li@amd.com> +Date: Mon, 19 Jun 2017 16:50:39 -0400 +Subject: [PATCH 0530/4131] drm/amd/display: fix non-dcn compilation + +Signed-off-by: Roman Li <Roman.Li@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index a4cc6ea..18fde50 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -970,8 +970,11 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc) + } + + /* 3rd param should be true, temp w/a for RV*/ ++#if defined(CONFIG_DRM_AMD_DC_DCN1_0) + core_dc->hwss.set_bandwidth(core_dc, context, core_dc->ctx->dce_version != DCN_VERSION_1_0); +- ++#else ++ core_dc->hwss.set_bandwidth(core_dc, context, true); ++#endif + return true; + } + +-- +2.7.4 + |