diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1524-drm-amd-display-add-full-update-commit-hint-struct.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1524-drm-amd-display-add-full-update-commit-hint-struct.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1524-drm-amd-display-add-full-update-commit-hint-struct.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1524-drm-amd-display-add-full-update-commit-hint-struct.patch new file mode 100644 index 00000000..fa7a50ea --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1524-drm-amd-display-add-full-update-commit-hint-struct.patch @@ -0,0 +1,49 @@ +From 0a0db3d76f099bb4a39989e2cbd0356ce10b5731 Mon Sep 17 00:00:00 2001 +From: Jun Lei <Jun.Lei@amd.com> +Date: Tue, 12 Feb 2019 12:09:24 -0500 +Subject: [PATCH 1524/2940] drm/amd/display: add full update commit hint struct + +In some cases we might need to do a full update. Add a commit_hints +struct for future use + +Change-Id: I243c02fa1d1f55b1320d54f8d130b0d7b2b69749 +Signed-off-by: Jun Lei <Jun.Lei@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Signed-off-by: Chaudhary Amit Kumar <Chaudharyamit.Kumar@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++ + drivers/gpu/drm/amd/display/dc/inc/core_types.h | 4 ++++ + 2 files changed, 6 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index a0b7aa588be9..50895892d717 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -1152,6 +1152,8 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c + /* pplib is notified if disp_num changed */ + dc->hwss.optimize_bandwidth(dc, context); + ++ memset(&context->commit_hints, 0, sizeof(context->commit_hints)); ++ + dc_release_state(dc->current_state); + + dc->current_state = context; +diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h +index ca3d08524221..a40ea2251ad5 100644 +--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h ++++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h +@@ -295,6 +295,10 @@ struct dc_state { + + struct clk_mgr *dccg; + ++ struct { ++ bool full_update_needed : 1; ++ } commit_hints; ++ + struct kref refcount; + }; + +-- +2.17.1 + |