aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-11-15 03:46:48 -0500
committerGerd Hoffmann <kraxel@redhat.com>2016-11-15 03:46:48 -0500
commit348a4b6dd77d183ef4ea67673ecf30a09ae3f9d7 (patch)
treeb66369d12996848f56cee04fd6ea268a1106bfd0
parentff996e72a0a1503005b76d0869a46b3a712f327a (diff)
drm/virtio: allocate some extra bufs
virtio-gpu guest driver appearently can run out of buffers. allocate some extra buffers, as quick stopgap for 4.9. analyzing root cause and fixing it properly is TBD. Reported-by: Jiri Slaby <jslaby@suse.cz> Tested-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_vq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_vq.c b/drivers/gpu/drm/virtio/virtgpu_vq.c
index 5a0f8a745b9d..974f9410474b 100644
--- a/drivers/gpu/drm/virtio/virtgpu_vq.c
+++ b/drivers/gpu/drm/virtio/virtgpu_vq.c
@@ -75,7 +75,7 @@ void virtio_gpu_cursor_ack(struct virtqueue *vq)
75int virtio_gpu_alloc_vbufs(struct virtio_gpu_device *vgdev) 75int virtio_gpu_alloc_vbufs(struct virtio_gpu_device *vgdev)
76{ 76{
77 struct virtio_gpu_vbuffer *vbuf; 77 struct virtio_gpu_vbuffer *vbuf;
78 int i, size, count = 0; 78 int i, size, count = 16;
79 void *ptr; 79 void *ptr;
80 80
81 INIT_LIST_HEAD(&vgdev->free_vbufs); 81 INIT_LIST_HEAD(&vgdev->free_vbufs);