summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio
Commit message (Collapse)AuthorAgeFilesLines
...
| * virtio-gpu: mark as a render gpuDave Airlie2015-10-162-10/+10
| | | | | | | | | | | | Also add DRM_RENDER_ALLOW to the ioctls. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * virtio-gpu: add basic prime supportDave Airlie2015-10-164-2/+96
| | | | | | | | | | | | | | This is enough to enable DRI3. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * virtio-gpu: add 3d/virgl supportGerd Hoffmann2015-10-168-2/+1089
| | | | | | | | | | | | | | | | Add the bits needed for opengl rendering support: query capabilities, new virtio commands, drm ioctls. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * virtio-gpu: don't free things on ttm_bo_init failureDave Airlie2015-10-161-8/+3
| | | | | | | | | | | | | | ttm_bo_init will call the destroy callback which will do all this, this was causing a double free. Signed-off-by: Dave Airlie <airlied@redhat.com>
| * virtio-gpu: wait for cursor updates finishGerd Hoffmann2015-10-161-0/+8
| | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * virtio-gpu: add & use virtio_gpu_queue_fenced_ctrl_bufferGerd Hoffmann2015-10-162-7/+35
| | | | | | | | | | | | | | | | Add helper function to handle the submission of fenced control requests. Make sure we initialize the fence while holding the virtqueue lock, so requests can't be reordered. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * virtio-gpu: add virtio_gpu_queue_ctrl_buffer_lockedGerd Hoffmann2015-10-161-4/+13
| | | | | | | | | | | | | | | | Add virtio_gpu_queue_ctrl_buffer_locked function, which does the same as virtio_gpu_queue_ctrl_buffer but does not take the virtqueue lock. The caller must hold the lock instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | drm/virtio: use %llu format string form atomic64_tArnd Bergmann2015-10-162-3/+3
|/ | | | | | | | | | | | | | | | | | | | | The virtgpu driver prints the last_seq variable using the %ld or %lu format string, which does not work correctly on all architectures and causes this compiler warning on ARM: drivers/gpu/drm/virtio/virtgpu_fence.c: In function 'virtio_timeline_value_str': drivers/gpu/drm/virtio/virtgpu_fence.c:64:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=] snprintf(str, size, "%lu", atomic64_read(&fence->drv->last_seq)); ^ drivers/gpu/drm/virtio/virtgpu_debugfs.c: In function 'virtio_gpu_debugfs_irq_info': drivers/gpu/drm/virtio/virtgpu_debugfs.c:37:16: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] seq_printf(m, "fence %ld %lld\n", ^ In order to avoid the warnings, this changes the format strings to %llu and adds a cast to u64, which makes it work the same way everywhere. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/virtio: Use new drm_fb_helper functionsArchit Taneja2015-08-061-23/+9
| | | | | | | | | | | | | | | | | Use the newly created wrapper drm_fb_helper functions instead of calling core fbdev functions directly. They also simplify the fb_info creation. v3: - Don't touch remove_conflicting_framebuffers v2: - add missing header for virtgpu_fb.c Cc: David Airlie <airlied@linux.ie> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
* virtio-gpu: add locking for vbuf poolDave Airlie2015-06-162-0/+8
| | | | | Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* drm/virtgpu: initialise fbdev after getting initial display infoDave Airlie2015-06-163-1/+6
| | | | | | | | | | | This should avoid issues with the fbdev path trying to render before we've gotten the display info. Signed-off-by: Dave Airlie <airlied@redhat.com> [ kraxel: wait for display-info reply ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* Add virtio-vga bits.Gerd Hoffmann2015-06-161-20/+24
|
* drm/virtio: remove some dead codeDan Carpenter2015-06-111-2/+0
| | | | | | | | The goto is correct, and we never reach the return statement so just delete the dead code. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* drm/virtio: checking for NULL instead of IS_ERRDan Carpenter2015-06-111-2/+2
| | | | | | | | | virtio_gpu_alloc_object() returns an error pointer, it never returns NULL. Fixes: dc5698e80cf7 ('Add virtio gpu driver.') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* Add virtio gpu driver.Dave Airlie2015-06-0315-0/+3375
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>
OpenPOWER on IntegriCloud