<br><br><br><br><br><div id="spnEditorSign_app">--<br>发自我的网易邮箱手机智能版</div><br/><br/><br/>
<br>
<br>
<br>----- Original Message -----
<br>From: "Daniel Vetter" <daniel@ffwll.ch>
<br>To: chenxb_99091@126.com
<br>Cc: "David Airlie" <airlied@linux.ie>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
<br>Sent: Mon, 25 May 2020 16:34:28 +0200
<br>Subject: Re: [PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4
<br>
<br>>On Sat, May 23, 2020 at 11:49:07AM +0800, chenxb_99091@126.com wrote:
<br>> >From: Xuebing Chen <chenxb_99091@126.com>
<br>>  ><br>>>The <include/drm/drm_crtc.h> provides drm_for_each_plane_mask macro and
<br>>>plane_mask is defined as bitmask of plane indices, such as
<br>>>1<<drm_plane_index(plane). This patch fixes error setting of plane_mask
<br>> >in pan_display_atomic() function.
<br>>  ><br>> >Signed-off->>by: Xuebing Chen <chenxb_99091@126.com>
<br>
<br>>What kernel is this patch against? Latest upstream doesn't have any such
<br>>code anymore ... I'm assuming that Ville fixed this in one of his patches,
<br>>but I can't find the right one just now.
<br>>-Danie<div>This bug is still present in the long-supported versions of kernel 4.4.y,  including the latest kernel 4.4.224,see https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/?h=v4.4.224<br></div><div><br></div><div><br>> >---
<br>> > drivers/gpu/drm/drm_fb_helper.c | 2 +-
<br>>  >1 file changed, 1 insertion(+), 1 deletion(-)
<br>>  ><br>> >diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
<br>> >index e449f22..6a9f7ee 100644
<br>>> --- a/drivers/gpu/drm/drm_fb_helper.c
<br>> >+++ b/drivers/gpu/drm/drm_fb_helper.c
<br>>> @@ -1256,7 +1256,7 @@ retry:
<br>> >    goto fail;
<br>>>   <br>>  >  plane = mode_set->crtc->primary;
<br>>> -            plane_mask |= drm_plane_index(plane);
<br>> >+            plane_mask |= 1 << drm_plane_index(plane);
<br>>>    plane->old_fb = plane->fb;
<br>>  > }
<br>>  > <br>>> -- 
<br>> >2.7.4
<br>>  ><br>>> _______________________________________________
<br>>> dri-devel mailing list
<br>> >dri-devel@lists.freedesktop.org
<br>>> https://lists.freedesktop.org/mailman/listinfo/dri-devel
<br>
<br>-- 
<br>>Daniel Vetter
<br>>Software Engineer, Intel Corporation
<br>>http://blog.ffwll.ch
<br></div><br><br><span title="neteasefooter"><p> </p></span>