Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 3eab0819e51e46d05563bce3bc6a1e94d4b26ee8 https://github.com/OpenAMP/open-amp/commit/3eab0819e51e46d05563bce3bc6a1e94d... Author: Andrew Davis afd@ti.com Date: 2024-04-17 (Wed, 17 Apr 2024)
Changed paths: M lib/virtio_mmio/virtio_mmio_drv.c
Log Message: ----------- virtio-mmio: Use the vmdev IO region for vq_ring.desc
The metal_io_region in the virtqueue struct is for translating the buffer address stored in the virtqueue descriptor table, not the address of the descriptor table itself.
This may have worked previously if the vring descriptors where part of the same IO space as the buffers they point to, but this is not guaranteed to always be the case. Fix that here.
Signed-off-by: Andrew Davis afd@ti.com
Commit: 4db4a08135ab295bd51e09ff44e20bf164d2001d https://github.com/OpenAMP/open-amp/commit/4db4a08135ab295bd51e09ff44e20bf16... Author: Andrew Davis afd@ti.com Date: 2024-04-17 (Wed, 17 Apr 2024)
Changed paths: M lib/include/openamp/virtqueue.h
Log Message: ----------- virtqueue: Fix comment on shm_io and fix type
This should hold a pointer to a metal_io_region, make that the type.
Also fix the comment above this variable. This region holds the address of the message buffers, not the vring descriptor table nor available/used ring data. It is only used for virt-to-phys/phys-to-vert translation on the buffers pointed to by these descriptors.
Signed-off-by: Andrew Davis afd@ti.com
Compare: https://github.com/OpenAMP/open-amp/compare/20ba140e7288...4db4a08135ab
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications