mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
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 <wangbowen6@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
cf4a9d7241
commit
e3403709f8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user