summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>2022-10-27 10:02:17 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-11-04 16:56:42 +0100
commit00c47aa85bb26450edc6059c3d245de062e60b5d (patch)
tree2a989c6aff8802285bd370879d729ac74735b199 /drivers/media/dvb-core
parent5b16db4fbba452aacfbb0bfd9a2c81cd0cd52b30 (diff)
downloadlinux-00c47aa85bb26450edc6059c3d245de062e60b5d.tar.gz
linux-00c47aa85bb26450edc6059c3d245de062e60b5d.tar.bz2
linux-00c47aa85bb26450edc6059c3d245de062e60b5d.zip
media: rkvdec: Add required padding
The addresses of two elements of the segmap[][] member are passed to the hardware which expects 128-bit aligned addresses. However, without this patch offsetof(struct rkvdec_vp9_priv_tbl, segmap[0]) is an odd number (2421) but the hardware just ignores the 5 least significant bits of the address. As a result, the hardware writes the segmentation map to incorrect locations. Inserting 11 bytes of padding corrects this situation by making the said addresses divisible by 16 (i.e. aligned on a 128-bit boundary). Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Fixes: f25709c4ff15 ("media: rkvdec: Add the VP9 backend") Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/dvb-core')
0 files changed, 0 insertions, 0 deletions