diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5163-drm-amd-display-HDR-dynamic-meta-should-be-treated-a.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/5163-drm-amd-display-HDR-dynamic-meta-should-be-treated-a.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5163-drm-amd-display-HDR-dynamic-meta-should-be-treated-a.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5163-drm-amd-display-HDR-dynamic-meta-should-be-treated-a.patch new file mode 100644 index 00000000..93695808 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5163-drm-amd-display-HDR-dynamic-meta-should-be-treated-a.patch @@ -0,0 +1,46 @@ +From 055a09f77b51edfc8c149c50c4054ae1a84715d2 Mon Sep 17 00:00:00 2001 +From: Krunoslav Kovac <Krunoslav.Kovac@amd.com> +Date: Fri, 20 Jul 2018 15:44:08 -0400 +Subject: [PATCH 5163/5725] drm/amd/display: HDR dynamic meta should be treated + as stream update + +[Why] +Recently we fixed HDR static meta using AFMT registers to be treated as +fast stream update. +Dynamic meta is still being treated as (full) surface update because it +touches HUBP and it travels with pipe data. +Here we change it to be (fast) stream update. +Note, originally we also wanted to redesign here a bit, but without OS +level support for true dynamic meta, it's left the same. We are simply +using HW that can do dynamic meta to send HDR static meta, I still prefer +keeping it in one static meta type then defining dynamic meta types to +hold the same info. Once we know how OS interfaces look like, we can +do proper design. + +[How] +Move dyn meta update from update_hubp_dpp to commit_planes_do_stream_update + +Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- + 1 file changed, 1 insertion(+), 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 5b079dc..b7e4800 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -1372,7 +1372,7 @@ static void commit_planes_do_stream_update(struct dc *dc, + pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, + pipe_ctx->stream->periodic_fn_vsync_delta); + +- if (stream_update->hdr_static_metadata || ++ if ((stream_update->hdr_static_metadata && !stream->use_dynamic_meta) || + stream_update->vrr_infopacket || + stream_update->vsc_infopacket) { + resource_build_info_frame(pipe_ctx); +-- +2.7.4 + |