-
- Downloads
media: rkvdec2: Add iommu support
This allows using all available memory.
The IOMMU is part of the decoder core but can be driven by the rockchip
iommu driver as a separate device.
The only issue with this is that the IOMMU hardware is reset when the
decoder is reset because of an error.
In this case, the IOMMU hardware looses all mappings but the mapped buffer
still retain their mapped address, cached in the IOMMU and decoder drivers.
To avoid that, when a decoding error occurs, the iommu_flush_iotlb_all
callback is used on the IOMMU to reconfigure the HW before continuing.
Signed-off-by:
Detlev Casanova <detlev.casanova@collabora.com>
Showing
- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi 22 additions, 0 deletionsarch/arm64/boot/dts/rockchip/rk3588-base.dtsi
- drivers/media/platform/rockchip/rkvdec2/rkvdec2-h264.c 8 additions, 2 deletionsdrivers/media/platform/rockchip/rkvdec2/rkvdec2-h264.c
- drivers/media/platform/rockchip/rkvdec2/rkvdec2-regs.h 1 addition, 0 deletionsdrivers/media/platform/rockchip/rkvdec2/rkvdec2-regs.h
- drivers/media/platform/rockchip/rkvdec2/rkvdec2.c 72 additions, 18 deletionsdrivers/media/platform/rockchip/rkvdec2/rkvdec2.c
- drivers/media/platform/rockchip/rkvdec2/rkvdec2.h 2 additions, 0 deletionsdrivers/media/platform/rockchip/rkvdec2/rkvdec2.h
Loading
Please register or sign in to comment