diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4640-drm-amd-display-Fix-stale-buffer-object-bo-use.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4640-drm-amd-display-Fix-stale-buffer-object-bo-use.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4640-drm-amd-display-Fix-stale-buffer-object-bo-use.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4640-drm-amd-display-Fix-stale-buffer-object-bo-use.patch new file mode 100644 index 00000000..55f562f6 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4640-drm-amd-display-Fix-stale-buffer-object-bo-use.patch @@ -0,0 +1,48 @@ +From 2756029b9a7e31523a42cb96084da882664346b8 Mon Sep 17 00:00:00 2001 +From: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> +Date: Thu, 7 Jun 2018 11:48:40 +0530 +Subject: [PATCH 4640/5725] drm/amd/display: Fix stale buffer object (bo) use + +Fixes stale buffer object (bo) usage for cursor plane + +Cursor plane's bo operations are handled in DC code. +Currently, atomic_commit() does not handle bo operations +for cursor plane, as a result the bo assigned for cursor +plane in dm_plane_helper_prepare_fb() is not coherent +with the updates to the same made in dc code.This mismatch +leads to "bo" corruption and hence crashes during S3 entry. + +This patch cleans up the code which was added as a hack +for 4.9 version only. + +Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> +Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 ----------- + 1 file changed, 11 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +index c37871a..14d0cce 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +@@ -3253,17 +3253,6 @@ static int dm_plane_helper_prepare_fb(struct drm_plane *plane, + } + } + +- /* It's a hack for s3 since in 4.9 kernel filter out cursor buffer +- * prepare and cleanup in drm_atomic_helper_prepare_planes +- * and drm_atomic_helper_cleanup_planes because fb doens't in s3. +- * IN 4.10 kernel this code should be removed and amdgpu_device_suspend +- * code touching fram buffers should be avoided for DC. +- */ +- if (plane->type == DRM_PLANE_TYPE_CURSOR) { +- struct amdgpu_crtc *acrtc = to_amdgpu_crtc(new_state->crtc); +- +- acrtc->cursor_bo = obj; +- } + return 0; + } + +-- +2.7.4 + |