drm: add new QXL driver. (v1.4)
authorDave Airlie <airlied@gmail.com>
Mon, 25 Feb 2013 04:47:55 +0000 (14:47 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Apr 2013 03:51:07 +0000 (13:51 +1000)
commitf64122c1f6ade301585569863b4b3b18f6e4e332
tree1eb6629931604584f6fff28c0b9a1c9a3d9024f3
parentafe6804c045fbd69a1b75c681107b5d6df9190de
drm: add new QXL driver. (v1.4)

QXL is a paravirtual graphics device used by the Spice virtual desktop
interface.

The drivers uses GEM and TTM to manage memory, the qxl hw fencing however
is quite different than normal TTM expects, we have to keep track of a number
of non-linear fence ids per bo that we need to have released by the hardware.

The releases are freed from a workqueue that wakes up and processes the
release ring.

releases are suballocated from a BO, there are 3 release categories, drawables,
surfaces and cursor cmds. The hw also has 3 rings for commands, cursor and release handling.

The hardware also have a surface id tracking mechnaism and the driver encapsulates it completely inside the kernel, userspace never sees the actual hw surface
ids.

This requires a newer version of the QXL userspace driver, so shouldn't be
enabled until that has been placed into your distro of choice.

Authors: Dave Airlie, Alon Levy

v1.1: fixup some issues in the ioctl interface with padding
v1.2: add module device table
v1.3: fix nomodeset, fbcon leak, dumb bo create, release ring irq,
      don't try flush release ring (broken hw), fix -modesetting.
v1.4: fbcon cpu usage reduction + suitable accel flags.

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
25 files changed:
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/qxl/Kconfig [new file with mode: 0644]
drivers/gpu/drm/qxl/Makefile [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_cmd.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_dev.h [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_display.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_draw.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_drv.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_drv.h [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_dumb.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_fb.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_fence.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_gem.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_image.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_ioctl.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_irq.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_kms.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_object.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_object.h [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_release.c [new file with mode: 0644]
drivers/gpu/drm/qxl/qxl_ttm.c [new file with mode: 0644]
include/uapi/drm/Kbuild
include/uapi/drm/qxl_drm.h [new file with mode: 0644]