Patch "drm/vkms: fix xrgb on compute crc" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/vkms: fix xrgb on compute crc

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-vkms-fix-xrgb-on-compute-crc.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e7d04c1c16609f032dd869691e98fc84bb9273e9
Author: Melissa Wen <melissa.srw@xxxxxxxxx>
Date:   Thu Jul 30 17:25:24 2020 -0300

    drm/vkms: fix xrgb on compute crc
    
    [ Upstream commit 0986191186128b10b6bbfa5220fc587ed5725e49 ]
    
    The previous memset operation was not correctly zeroing the alpha
    channel to compute the crc, and as a result, the IGT subtest
    kms_cursor_crc/pipe-A-cursor-alpha-transparent fails.
    
    Fixes: db7f419c06d7c ("drm/vkms: Compute CRC with Cursor Plane")
    
    Signed-off-by: Melissa Wen <melissa.srw@xxxxxxxxx>
    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200730202524.5upzuh4irboru7my@xxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/vkms/vkms_composer.c b/drivers/gpu/drm/vkms/vkms_composer.c
index 4af2f19480f4f..b8b060354667e 100644
--- a/drivers/gpu/drm/vkms/vkms_composer.c
+++ b/drivers/gpu/drm/vkms/vkms_composer.c
@@ -33,7 +33,7 @@ static uint32_t compute_crc(void *vaddr_out, struct vkms_composer *composer)
 				     + (i * composer->pitch)
 				     + (j * composer->cpp);
 			/* XRGB format ignores Alpha channel */
-			memset(vaddr_out + src_offset + 24, 0,  8);
+			bitmap_clear(vaddr_out + src_offset, 24, 8);
 			crc = crc32_le(crc, vaddr_out + src_offset,
 				       sizeof(u32));
 		}



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux