diff options
author | Will Deacon <willdeacon@google.com> | 2023-03-29 22:25:00 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 11:53:15 -0400 |
commit | b0a2fe148a70dc805f1e11702a08a7065418a8dd (patch) | |
tree | dd96eae340d934015017a673ef06127c49c7a645 /lib/efi_loader/helloworld.c | |
parent | 37e53db38bdbeb58732e36d1efcdf58f6ce3a138 (diff) |
virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set
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@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/+/1eff171e613ee67dca71dbe97be7282e2db17011
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/helloworld.c')
0 files changed, 0 insertions, 0 deletions