OSDN Git Service

drm/stm: ltdc: add support for CRC hashing feature
authorRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Fri, 11 Feb 2022 10:46:20 +0000 (11:46 +0100)
committerPhilippe Cornu <philippe.cornu@foss.st.com>
Fri, 25 Feb 2022 13:14:28 +0000 (14:14 +0100)
commit79b44684a14e363d24c299b772f037344ad8c8dc
tree3946fb525376fe8ff5c54eea726192f5dc40a296
parent3b2f68f196a5b23c61777078f5c7d0d19626b5e4
drm/stm: ltdc: add support for CRC hashing feature

This patch adds the CRC hashing feature supported by some recent hardware
versions of the LTDC. This is useful for test suite such as IGT-GPU-tools
[1] where a CRTC output frame can be compared to a test reference frame
thanks to their respective CRC hash.

[1] https://cgit.freedesktop.org/drm/igt-gpu-tools

Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Acked-by: Yannick Fertre <yannick.fertre@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220211104620.421177-1-raphael.gallais-pou@foss.st.com
drivers/gpu/drm/stm/ltdc.c
drivers/gpu/drm/stm/ltdc.h