Skip to contentSkip to conversation

drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

PATCH [email protected] 2 participants 2 messages May 27, 2020 – May 29, 2020

lore
Share & tools
lore
#0 lore raw

From: Xuebing Chen <[email protected]>

Quoted 8 lines · Daniel Vetter
Quoted 7 lines · On Sat, May 23, 2020 at 11:49:07AM +0800, [email protected] wrote:

From: Xuebing Chen <[email protected]>

The <include/drm/drm_crtc.h> provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1<<drm_plane_index(plane). This patch fixes error setting of plane_mask in pan_display_atomic() function.

Quoted 5 lines
Quoted 1 line

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

Quoted 31 lines

-Daniel

Quoted 24 lines
---
 drivers/gpu/drm/drm_fb_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_fb_helper.c +1 -1
index e449f22..6a9f7ee 100644
@@ -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;
 	}
 
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#1 lore raw
Quoted 13 lines · On Wed, May 27, 2020 at 09:33:27PM +0800, [email protected] wrote:

From: Xuebing Chen <[email protected]>

Quoted 10 lines · Daniel Vetter
Quoted 8 lines · On Sat, May 23, 2020 at 11:49:07AM +0800, [email protected] wrote:

From: Xuebing Chen <[email protected]>

The <include/drm/drm_crtc.h> provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1<<drm_plane_index(plane). This patch fixes error setting of plane_mask in pan_display_atomic() function.

Quoted 7 lines
Quoted 3 lines

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

See Documentation/process/stable-kernel-rules.rst on how to request a stable backport.

Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel