On Thu, 30 Mar 2023 at 03:27, Ying-Chun Liu (PaulLiu) <paul....@linaro.org> wrote: > > From: Will Deacon <willdea...@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 <willdea...@google.com> > [ Paul: pick from the Android tree. Rebase to the upstream ] > Signed-off-by: Ying-Chun Liu (PaulLiu) <paul....@linaro.org> > Cc: Bin Meng <bmeng...@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 <s...@chromium.org>