diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0980-drm-amd-dal-fix-reset-mode-warning-msg.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0980-drm-amd-dal-fix-reset-mode-warning-msg.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0980-drm-amd-dal-fix-reset-mode-warning-msg.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0980-drm-amd-dal-fix-reset-mode-warning-msg.patch new file mode 100644 index 00000000..e273a0ca --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0980-drm-amd-dal-fix-reset-mode-warning-msg.patch @@ -0,0 +1,52 @@ +From 4c2efc45a5b077efd2cf502081993646cda6daeb Mon Sep 17 00:00:00 2001 +From: Mykola Lysenko <Mykola.Lysenko@amd.com> +Date: Thu, 17 Dec 2015 19:27:28 +0800 +Subject: [PATCH 0980/1050] drm/amd/dal: fix reset mode warning msg + +We should call surface programming in case of mode +reset (actual reset or DPMS). Warning was printed +that target is NULL. + +Also removed debug prints for buffers prepare/remove, +that occurs on each pageflip and pollutes log + +Change-Id: I96d6bdf63be5c08bad3057c9cd825afbcc9cb245 +Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com> +Acked-by: Jordan Lazare <Jordan.Lazare@amd.com> +--- + drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c +index df4f412..b1d5f9e 100644 +--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c ++++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c +@@ -1434,7 +1434,6 @@ static int dm_plane_helper_prepare_fb( + + afb = to_amdgpu_framebuffer(fb); + +- DRM_DEBUG_KMS("Pin new framebuffer: %p\n", afb); + obj = afb->obj; + rbo = gem_to_amdgpu_bo(obj); + r = amdgpu_bo_reserve(rbo, false); +@@ -1463,7 +1462,6 @@ static void dm_plane_helper_cleanup_fb( + int r; + + afb = to_amdgpu_framebuffer(fb); +- DRM_DEBUG_KMS("Unpin old framebuffer: %p\n", afb); + rbo = gem_to_amdgpu_bo(afb->obj); + r = amdgpu_bo_reserve(rbo, false); + if (unlikely(r)) { +@@ -2274,7 +2272,8 @@ int amdgpu_dm_atomic_commit( + struct drm_connector *connector; + struct dm_connector_state *dm_state = NULL; + +- if (!fb || !crtc || !crtc->state->planes_changed) ++ if (!fb || !crtc || !crtc->state->planes_changed || ++ !crtc->state->active) + continue; + + if (page_flip_needed( +-- +1.9.1 + |