aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch
new file mode 100644
index 00000000..a939e4e8
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1670-drm-amdgpu-display-fix-build-when-DCN-KCONFIG-is-not.patch
@@ -0,0 +1,47 @@
+From c53fe52e6ecfdf0053ba37e297378f1ae36e4c01 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 20 Mar 2019 16:15:22 -0500
+Subject: [PATCH 1670/2940] drm/amdgpu/display: fix build when DCN KCONFIG is
+ not set
+
+Leads to an undefined symbol otherwise.
+
+Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+index 4af3545fc414..f7a293902234 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+@@ -29,7 +29,9 @@
+ #include "resource.h"
+ #include "ipp.h"
+ #include "timing_generator.h"
++#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+ #include "dcn10/dcn10_hw_sequencer.h"
++#endif
+
+ #define DC_LOGGER dc->ctx->logger
+
+@@ -199,6 +201,7 @@ struct dc_stream_status *dc_stream_get_status(
+
+ static void delay_cursor_until_vupdate(struct pipe_ctx *pipe_ctx, struct dc *dc)
+ {
++#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+ unsigned int vupdate_line;
+ unsigned int lines_to_vupdate, us_to_vupdate, vpos, nvpos;
+ struct dc_stream_state *stream = pipe_ctx->stream;
+@@ -221,6 +224,7 @@ static void delay_cursor_until_vupdate(struct pipe_ctx *pipe_ctx, struct dc *dc)
+ if (us_to_vupdate < 70)
+ udelay(us_to_vupdate);
+ }
++#endif
+ }
+
+ /**
+--
+2.17.1
+