]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: cedrus: h264: Fix neighbour info buffer size
authorJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 14 Feb 2022 19:08:39 +0000 (20:08 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:57:14 +0000 (11:57 +0200)
commit99381f5847ad59dfa69dc2def93de7f0faef953d
treed525c9753d9f5f84741216cc559c5a52de6225f8
parent1765e49c1427caf272afbcdf6baca98f2af7a758
media: cedrus: h264: Fix neighbour info buffer size

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit fecd363ae2d5042553370b0adf60c47e35c34a83 ]

According to BSP library source, H264 neighbour info buffer size needs
to be 32 kiB for H6. This is similar to H265 decoding, which also needs
double buffer size in comparison to older Cedrus core generations.

Increase buffer size to cover H6 needs. Since increase is not that big
in absolute numbers, it doesn't make sense to complicate logic for older
generations.

Issue was discovered using iommu and cross checked with BSP library
source.

Fixes: 6eb9b758e307 ("media: cedrus: Add H264 decoding support")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 56dcb5480687cd151868d400bd316e03eae89036)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/staging/media/sunxi/cedrus/cedrus_h264.c