Message ID | 20230329142500.682922-2-paul.liu@linaro.org |
---|---|
State | New |
Headers | show |
Series | virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM set | expand |
On Thu, 30 Mar 2023 at 03:25, Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> wrote: > > From: Will Deacon <willdeacon@google.com> > > If we detect the VIRTIO_F_IOMMU_PLATFORM transport feature for a device, > then expose it in the device features. > > 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/+/9693bd26bfcfe77d6a1295a561420e08c5daf019 > --- > drivers/virtio/virtio-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index de9bc90359..b3fb3dbfad 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -336,7 +336,7 @@ static int virtio_uclass_child_pre_probe(struct udevice *vdev) /* Transport features always preserved to pass to finalize_features */ for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++) if ((device_features & (1ULL << i)) && - (i == VIRTIO_F_VERSION_1)) + (i == VIRTIO_F_VERSION_1 || i == VIRTIO_F_IOMMU_PLATFORM)) __virtio_set_bit(vdev->parent, i); debug("(%s) final negotiated features supported %016llx\n",