[PATCH 5/6] virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM

Simon Glass sjg at chromium.org
Sat Apr 1 08:32:08 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>
>
> In preparation for bouncing virtio data for devices advertising the
> VIRTIO_F_IOMMU_PLATFORM feature, allocate an array of bounce buffer
> structures in the vring, one per descriptor.
>
> 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/+/3e052749e7c50c4c1a6014e645ae3b9be3710c07
> ---
>  drivers/virtio/virtio_ring.c | 25 ++++++++++++++++++++-----
>  include/virtio_ring.h        |  5 ++++-
>  2 files changed, 24 insertions(+), 6 deletions(-)

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


More information about the U-Boot mailing list