[PATCH 5/5] media: verisilicon: Flush IOMMU before decoding a frame
Jason Gunthorpe
jgg at ziepe.ca
Tue Jun 17 08:58:22 PDT 2025
On Mon, Jun 16, 2025 at 04:55:53PM +0200, Benjamin Gaignard wrote:
> Flush the IOMMU mapping before decoding a frame to ensure that all memory
> translations are properly applied.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
> ---
> drivers/media/platform/verisilicon/hantro_drv.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
This is a really big red flag.
iommu translations are supposed to be controlled by the iommu driver
and should be flushed as part of the iommu map/unmap flows. It should
never be necessary to do something like this.
Jason
More information about the linux-arm-kernel
mailing list