]> git.dujemihanovic.xyz Git - u-boot.git/commit
virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM
authorWill Deacon <willdeacon@google.com>
Wed, 29 Mar 2023 14:24:59 +0000 (22:24 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 15:53:15 +0000 (11:53 -0400)
commit37e53db38bdbeb58732e36d1efcdf58f6ce3a138
tree002470ae9aa56f198e0ab28dfceb4929f9b155b7
parenta15d67e01abee6f091a4bcde22fd5e0649590944
virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM

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@google.com>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/3e052749e7c50c4c1a6014e645ae3b9be3710c07
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_ring.c
include/virtio_ring.h