Skip to content

Commit e340370

Browse files
CV-Bowenacassis
authored andcommitted
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>
1 parent cf4a9d7 commit e340370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/virtio/virtio-gpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static int virtio_gpu_probe(FAR struct virtio_device *vdev)
560560
goto err_init_fb;
561561
}
562562

563-
ent.addr = (uintptr_t)priv->fbmem;
563+
ent.addr = up_addrenv_va_to_pa(priv->fbmem);
564564
ent.length = priv->fblen;
565565
ret = virtio_gpu_attach_backing(priv, 1, &ent, 1);
566566
if (ret < 0)

0 commit comments

Comments
 (0)