AR# 71780

2018.3 Zynq UltraScale+ MPSoC: Linux v4l2 mem2mem driver transcode fails when source buffer to mem2mem has different byte alignment restrictions

Description

On Zynq UltraScale+ MPSoC devices, the transcode can fail when the source buffer to the mem2mem driver has different byte alignment restrictions on width and height than expected.

This should be handled in the driver, or all components in the system should have the same alignment. 

The final value can be the higher alignment of all of the components in the system.

Solution

To fix this issue, you will need to apply the attached patch.

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend

Note: To apply a patch to recipes, please refer to (UG1144) or https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips

$ cp 0001-xilinx-v4l-m2m-Fix-source-buffer-alignments.patch <plnx-proj-root>/project-spec/meta-user/recipes-kernel/linux/linux-xlnx

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend

# linux-xlnx_%.bbappend content 

SRC_URI_append = "file://0001-xilinx-v4l-m2m-Fix-source-buffer-alignments.patch"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

Attachments

Associated Attachments

Name File Size File Type
AR71780-patch.zip 1 KB ZIP
AR# 71780
Date 12/10/2018
Status Active
Type General Article
Devices
Tools
IP
Boards & Kits