Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp452396imu; Mon, 5 Nov 2018 03:42:52 -0800 (PST) X-Google-Smtp-Source: AJdET5efvPmtnnGH4ajAo9a0rWHY3wnSno4NY4g+OR7PqL62RsCPwtw/x0tt2T2mpSuxn8lm6MUY X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr16507043plo.95.1541418172795; Mon, 05 Nov 2018 03:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541418172; cv=none; d=google.com; s=arc-20160816; b=XTcA3afASG2HQvuTV3clE+qVpCJpns9tmyJc6xm4aUxi/r+surMeyd3sFk/9+JJM/X PeJR5OYMUDRBJeDDnENGtw8PFqKjO6yzaqT7wx5g2HA3OUWwu/io+rlW06echRg6C4cG d6p5JObQi40QAa9UJmV7cvudqQz1Ca28BIbYcXLIE8v8Q9A0208/OwjceJmzW8nhz9WK zyEHjbTRZu4Ug6jNAelA0E5VoDsc++QCQwA1o+wcofdDZcAgX/nqLxDHHd8IALfOJmQ2 Kq7bhp0Zyw23SwBWmuB3VrPlcSjCl1MKqfZRiK62nUwajH0GQSuJ3+mkKKN+XOD4CW+p doww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qqwR72My6AgeeZCA2F9WK/E7wdh18W7jeYHbJTc0x08=; b=MVYGSvy9+RIQ/Zlj4wSnDrbDhwgGgy7xXYttjYAmKsY5FkbQqAPczzAscT7htathtn uvtsrD+0rkhhoomHMcKM2i5p2XzGrGutGMHQoy2LJv/EbF1ITe2KXa8MvYXaTONcaYzo MRnuQ7ElSmnacB2lC7yG45BZYDbZGT0C+GndSKuOZGLG16KSPEFwB2iHEKcAm24+xgAu 8Oiq6UmBf23hRfpUsAQYeJtXpMgJ4egs5bhyjxI7Bl6Uhrz1RDuRxDppEJMzuG3RFSkN VO+ry3uZ3T+PXjE2zw1LmdUb9LZDHP3+zADPUc0tCO8zHnxunZcfdsDYzbOc/vloTqhu RO1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si2850719pgm.420.2018.11.05.03.42.37; Mon, 05 Nov 2018 03:42:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729244AbeKEVB0 (ORCPT + 99 others); Mon, 5 Nov 2018 16:01:26 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48646 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729016AbeKEVBZ (ORCPT ); Mon, 5 Nov 2018 16:01:25 -0500 Received: from localhost.localdomain (unknown [IPv6:2a02:8109:92c0:207d:59be:d485:5b1c:9e22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robertfoss) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id D0D2B261F9E; Mon, 5 Nov 2018 11:42:04 +0000 (GMT) From: Robert Foss To: airlied@linux.ie, kraxel@redhat.com, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Rob Herring , Gustavo Padovan , Emil Velikov Cc: Robert Foss Subject: [PATCH v4 0/4] virgl: fence fd support Date: Mon, 5 Nov 2018 12:41:48 +0100 Message-Id: <20181105114152.2088-1-robert.foss@collabora.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series implements fence support for drm/virtio and has been tested using qemu, kmscube and the below branches. Rob Herring solved a reference counting issue and suggested a context check for the execbuf ioctl, his changes have been included in the below commits to keep the tree working at all commits. The linux series can be found here: https://gitlab.collabora.com/robertfoss/linux/commits/virtio_fences_v4 As for mesa, the branch can be found here: https://gitlab.collabora.com/robertfoss/mesa/commits/virtio_fences_v3 Changes since v3: - Rebased on drm-misc-next - drm/virtio: add virtio_gpu_alloc_fence() - Gerd: Clarified and extended commit message - Emil: Fixed whitespace issue - Emil: Changed label name from fail_fence to fail_backoff - Emil: Remove special case for !fence->drv in virtio_gpu_fence_cleanup() - drm/virtio: add uapi for in and out explicit fences - Emil: Added r-b - Emil: Move fence_fd assignment to after sanity checks - drm/virtio: add in-fences support for explicit synchronization - Move all in_fence handling to the same VIRTGPU_EXECBUF_FENCE_FD_IN block - Emil: Make sure to always call dma_fence_put() - Emil: Added r-b - drm/virtio: add out-fences support for explicit synchronization - Emil: Combine with in-fences patch - drm/virtio: bump driver version after explicit synchronization addition - Emil: Added r-b Changes since v2: - drm/virtio: add virtio_gpu_alloc_fence() - Forward port and fix compilation issues - drm/virtio: add uapi for in and out explicit fences - Check exbuf->flags for unsupported flags - drm/virtio: add in-fences support for explicit synchronization Gustavo Padovan (1): drm/virtio: bump driver version after explicit synchronization addition Robert Foss (3): drm/virtio: add virtio_gpu_alloc_fence() drm/virtio: add uapi for in and out explicit fences drm/virtio: add in/out fence support for explicit synchronization drivers/gpu/drm/virtio/virtgpu_drv.h | 8 +- drivers/gpu/drm/virtio/virtgpu_fence.c | 29 +++++-- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 108 +++++++++++++++++++++---- drivers/gpu/drm/virtio/virtgpu_plane.c | 46 +++++++++-- drivers/gpu/drm/virtio/virtgpu_vq.c | 2 +- include/uapi/drm/virtgpu_drm.h | 13 ++- 6 files changed, 173 insertions(+), 33 deletions(-) -- 2.17.1