]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Add virtio gpu driver.
authorDave Airlie <airlied@gmail.com>
Mon, 9 Sep 2013 00:02:56 +0000 (10:02 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 Jun 2015 12:17:38 +0000 (14:17 +0200)
commitdc5698e80cf724770283e10414054662bdf6ccfa
tree9c70288526995f4bb2aa3109e9b49058a2cbdef4
parent16e3247da7f71f8c31f4330f739f6192a00c8b51
Add virtio gpu driver.

This patch adds a kms driver for the virtio gpu.  The xorg modesetting
driver can handle the device just fine, the framebuffer for fbcon is
there too.

Qemu patches for the host side are under review currently.

The pci version of the device comes in two variants: with and without
vga compatibility.  The former has a extra memory bar for the vga
framebuffer, the later is a pure virtio device.  The only concern for
this driver is that in the virtio-vga case we have to kick out the
firmware framebuffer.

Initial revision has only 2d support, 3d (virgl) support requires
some more work on the qemu side and will be added later.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
21 files changed:
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/virtio/Kconfig [new file with mode: 0644]
drivers/gpu/drm/virtio/Makefile [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_display.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_drm_bus.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_drv.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_drv.h [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_fb.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_fence.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_gem.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_kms.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_object.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_plane.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_ttm.c [new file with mode: 0644]
drivers/gpu/drm/virtio/virtgpu_vq.c [new file with mode: 0644]
include/drm/drmP.h
include/uapi/linux/Kbuild
include/uapi/linux/virtio_gpu.h [new file with mode: 0644]
include/uapi/linux/virtio_ids.h