[DragonFlyBSD - Bug #2928] (New) Patch from later Linux drm: drm/fb-helper: Use proper plane mask for fb cleanup
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Fri Jul 22 09:24:31 PDT 2016
Issue #2928 has been reported by davshao.
----------------------------------------
Bug #2928: Patch from later Linux drm: drm/fb-helper: Use proper plane mask for fb cleanup
http://bugs.dragonflybsd.org/issues/2928
* Author: davshao
* Status: New
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
Thanks for the update to Linux 4.4 drm. There is a subtle bug
in the usage of drm_plane_index() in function pan_display_atomic()
of drm_fb_helper.c, found by Matt Roper. For reference:
https://patchwork.kernel.org/patch/7889051/
Please apply the following patch:
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 69cbab5..1e103c4 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -1251,7 +1251,7 @@ retry:
goto fail;
plane = mode_set->crtc->primary;
- plane_mask |= drm_plane_index(plane);
+ plane_mask |= (1 << drm_plane_index(plane));
plane->old_fb = plane->fb;
}
---Files--------------------------------
drm-fb-helper-Use-proper-plane-mask-for-fb-cleanup.patch (392 Bytes)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list