diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0673-drm-amd-display-Minor-fix-for-dc_link-refactor.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0673-drm-amd-display-Minor-fix-for-dc_link-refactor.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0673-drm-amd-display-Minor-fix-for-dc_link-refactor.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0673-drm-amd-display-Minor-fix-for-dc_link-refactor.patch new file mode 100644 index 00000000..cde6853e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0673-drm-amd-display-Minor-fix-for-dc_link-refactor.patch @@ -0,0 +1,42 @@ +From 440572fcd55902ea743eb2821d38b189828cbecb Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Sat, 22 Jul 2017 20:05:20 -0400 +Subject: [PATCH 0673/4131] drm/amd/display: Minor fix for dc_link refactor + +Signed-off-by: Harry Wentland <harry.wentland@amd.com> +Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +index 7d03f6c..fd2ae18 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +@@ -1550,7 +1550,7 @@ bool dc_link_setup_psr(struct dc_link *link, + + #if defined(CONFIG_DRM_AMD_DC_DCN1_0) + /*skip power down the single pipe since it blocks the cstate*/ +- if (ASIC_REV_IS_RAVEN(ctx->asic_id.hw_internal_rev)) ++ if (ASIC_REV_IS_RAVEN(link->ctx->asic_id.hw_internal_rev)) + psr_context->psr_level.bits.SKIP_SINGLE_OTG_DISABLE = true; + #endif + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +index 32a24e8..4368501 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +@@ -2514,7 +2514,7 @@ bool dc_validate_stream(const struct dc *dc, const struct dc_stream *stream) + struct core_dc *core_dc = DC_TO_CORE(dc); + struct dc_context *dc_ctx = core_dc->ctx; + struct core_stream *core_stream = DC_STREAM_TO_CORE(stream); +- struct core_link *link = core_stream->sink->link; ++ struct dc_link *link = core_stream->sink->link; + struct timing_generator *tg = core_dc->res_pool->timing_generators[0]; + enum dc_status res = DC_OK; + +-- +2.7.4 + |