This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e3403709f8f virtio/virtio-gpu: fbmem should transfer to pa
e3403709f8f is described below
commit e3403709f8f4f8b52bf811a7894fac0c410dc4f9
Author: Bowen Wang <[email protected]>
AuthorDate: Fri May 9 18:08:04 2025 +0800
virtio/virtio-gpu: fbmem should transfer to pa
When using the virtio-gpu-pci device, we need to use physical address
Signed-off-by: Bowen Wang <[email protected]>
---
drivers/virtio/virtio-gpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/virtio/virtio-gpu.c b/drivers/virtio/virtio-gpu.c
index 1c8c404fe43..1a6dd94cde6 100644
--- a/drivers/virtio/virtio-gpu.c
+++ b/drivers/virtio/virtio-gpu.c
@@ -560,7 +560,7 @@ static int virtio_gpu_probe(FAR struct virtio_device *vdev)
goto err_init_fb;
}
- ent.addr = (uintptr_t)priv->fbmem;
+ ent.addr = up_addrenv_va_to_pa(priv->fbmem);
ent.length = priv->fblen;
ret = virtio_gpu_attach_backing(priv, 1, &ent, 1);
if (ret < 0)