mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/virtio: implement blob resources: probe for host visible region
The availability of the host visible region means host 3D allocations can be directly mapped in the guest. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200924003214.662-9-gurchetansingh@chromium.org Co-developed-by: Gurchetan Singh <gurchetansingh@chromium.org> Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
@@ -52,6 +52,11 @@ static int virtio_gpu_features(struct seq_file *m, void *data)
|
||||
virtio_add_bool(m, "blob resources", vgdev->has_resource_blob);
|
||||
virtio_add_int(m, "cap sets", vgdev->num_capsets);
|
||||
virtio_add_int(m, "scanouts", vgdev->num_scanouts);
|
||||
if (vgdev->host_visible_region.len) {
|
||||
seq_printf(m, "%-16s : 0x%lx +0x%lx\n", "host visible region",
|
||||
(unsigned long)vgdev->host_visible_region.addr,
|
||||
(unsigned long)vgdev->host_visible_region.len);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user