Stable backport request for linux-4.4.y
From: Xuebing Chen In linux-4.4.y,the provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1 << drm_plane_index(plane). There is an error setting of plane_mask in pan_display_atomic() function. Please backport the following patch to the 4.4.y kernel stable tree: commit 7118fd9bd975a9f3093239d4c0f4e15356b57fab ("drm/fb-helper: Use proper plane mask for fb cleanup") The above patch fixes error setting of plane_mask in pan_display_atomic() function. Cc: sta...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Xuebing Chen
Re:Re:[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4
From: Xuebing Chen On Mon, May 25, 2020 at 04:34:28PM +0200, Daniel Vetter wrote: > On Sat, May 23, 2020 at 11:49:07AM +0800, chenxb_99...@126.com wrote: > > From: Xuebing Chen > > > > The provides drm_for_each_plane_mask macro and > > plane_mask is defined as bitmask of plane indices, such as > > 1< > in pan_display_atomic() function. > > > > Signed-off-by: Xuebing Chen > > What kernel is this patch against? Latest upstream doesn't have any such > code anymore ... I'm assuming that Ville fixed this in one of his patches, > but I can't find the right one just now. This bug is still present in the longterm-supported versions of kernel 4.4.y, including the latest kernel v4.4.224, See https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/?h=v4.4.224 > -Daniel > > > --- > > drivers/gpu/drm/drm_fb_helper.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/drm_fb_helper.c > > b/drivers/gpu/drm/drm_fb_helper.c > > index e449f22..6a9f7ee 100644 > > --- a/drivers/gpu/drm/drm_fb_helper.c > > +++ b/drivers/gpu/drm/drm_fb_helper.c > > @@ -1256,7 +1256,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; > > } > > > > -- > > 2.7.4 > > > > ___ > > dri-devel mailing list > > dri-de...@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch
[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4
From: Xuebing Chen The provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1< --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index e449f22..6a9f7ee 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1256,7 +1256,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; } -- 2.7.4
[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4
From: Xuebing Chen The provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1< --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index e449f22..6a9f7ee 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1256,7 +1256,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; } -- 2.7.4