[PATCH 6/6] virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set

Simon Glass sjg at chromium.org
Sat Apr 1 08:32:03 CEST 2023


On Thu, 30 Mar 2023 at 03:27, Ying-Chun Liu (PaulLiu)
<paul.liu at linaro.org> wrote:
>
> From: Will Deacon <willdeacon at google.com>
>
> Devices advertising the VIRTIO_F_IOMMU_PLATFORM feature require
> platform-specific handling to configure their DMA transactions.
>
> When handling virtio descriptors for such a device, use bounce
> buffers to ensure that the underlying buffers are always aligned
> to and padded to PAGE_SIZE in preparation for platform specific
> handling at page granularity.
>
> Signed-off-by: Will Deacon <willdeacon at google.com>
> [ Paul: pick from the Android tree. Rebase to the upstream ]
> Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu at linaro.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Link: https://android.googlesource.com/platform/external/u-boot/+/1eff171e613ee67dca71dbe97be7282e2db17011
> ---
>  drivers/virtio/virtio_ring.c | 48 +++++++++++++++++++++++++++++++++++-
>  1 file changed, 47 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list