From patchwork Fri Sep 17 01:08:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurchetan Singh X-Patchwork-Id: 12500717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5242C433EF for ; Fri, 17 Sep 2021 01:08:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6030061209 for ; Fri, 17 Sep 2021 01:08:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6030061209 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 40BAA6EA5D; Fri, 17 Sep 2021 01:08:46 +0000 (UTC) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by gabe.freedesktop.org (Postfix) with ESMTPS id DEC686EA5D for ; Fri, 17 Sep 2021 01:08:45 +0000 (UTC) Received: by mail-pj1-x102e.google.com with SMTP id m21-20020a17090a859500b00197688449c4so6170168pjn.0 for ; Thu, 16 Sep 2021 18:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G+hDt9SS9+Ivp60C/yPZnAk2pdjFBXPm8T5e37pTLA0=; b=ViYkmRoDM1nJ4ntJj2cXhxlIedvC3kvFVuPdWU5xT4lv91xnuHkCNd9F3+EjXw/ACk 2BJYwJpeWRf/6GVW1HRonkGqx/cSUpkbwgfrIxjR18OFprC8Mktb6JG6cgW6V4JkJM7H y2OqdnFaqorEI1BSZ8S/b8Y72qvjuBqc1crgg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G+hDt9SS9+Ivp60C/yPZnAk2pdjFBXPm8T5e37pTLA0=; b=rboilOKOgXrwKVcV6SfOI68eb4DMwaezSArgSC+07GleOqKE6FNv7KpmcyDVbY4CQC IyFswBnjyd+GbYdTXGJzTUCGNkp7kd64ChbnqpdRz4xyuiUkGQL32EjRAewki8xNsAf8 oEg0UtJ2nIdd4r8840WLZcTJe7t1u0UZ+qYB3WPKQAUlbrVqy8Z1zvlS9a61S7vuULk2 BHA+UDlxat3ZUJj+3m8yXIBX2krcLi8SaIiM9oZmpYYgWfwfBb8svahG2jUMB7cK/oe+ bpv67nI+AmoE36WxF+T1urBEd6QQI/fT4HKu5+CHBgTYpyfVyDdr32ytP9mw/p+7/9qU d4lQ== X-Gm-Message-State: AOAM533FkpDI0Mx7bIF6t3C9zAfvEj3U5uXMGzbt5FaJmbekcHFLFC8N EVjGM+kIDSERwf64+YfWYf8C7jtXT0WvtVhj X-Google-Smtp-Source: ABdhPJyuvU/s0CN/VXf0FgTa0fcHqpv8yxDBXfGyTelyb4Cw/n62gFxe8bAQqt+okqhBBBgiX6M+mA== X-Received: by 2002:a17:90a:2a8d:: with SMTP id j13mr9215642pjd.24.1631840925267; Thu, 16 Sep 2021 18:08:45 -0700 (PDT) Received: from gurchetansingh0.mtv.corp.google.com ([2620:15c:202:201:dc20:9a88:c41:f0dd]) by smtp.gmail.com with ESMTPSA id v4sm4215812pff.11.2021.09.16.18.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 18:08:44 -0700 (PDT) From: Gurchetan Singh To: dri-devel@lists.freedesktop.org, virtio-dev@lists.oasis-open.org Cc: kraxel@redhat.com Subject: [PATCH v2 00/12] Context types Date: Thu, 16 Sep 2021 18:08:30 -0700 Message-Id: <20210917010842.503-1-gurchetansingh@chromium.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Version 2 of context types: https://lists.oasis-open.org/archives/virtio-dev/202108/msg00141.html Changes since RFC: * le32 info --> {u8 ring_idx + u8 padding[3]). * Max rings is now 64. Changes since v1: * Document plan regarding context types + display combinations that need implicit sync in patch 9 commit message. Anthoine Bourgeois (2): drm/virtio: implement context init: probe for feature drm/virtio: implement context init: support init ioctl Gurchetan Singh (10): virtio-gpu api: multiple context types with explicit initialization drm/virtgpu api: create context init feature drm/virtio: implement context init: track valid capabilities in a mask drm/virtio: implement context init: track {ring_idx, emit_fence_info} in virtio_gpu_fence drm/virtio: implement context init: plumb {base_fence_ctx, ring_idx} to virtio_gpu_fence_alloc drm/virtio: implement context init: stop using drv->context when creating fence drm/virtio: implement context init: allocate an array of fence contexts drm/virtio: implement context init: handle VIRTGPU_CONTEXT_PARAM_POLL_RINGS_MASK drm/virtio: implement context init: add virtio_gpu_fence_event drm/virtio: implement context init: advertise feature to userspace drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 + drivers/gpu/drm/virtio/virtgpu_drv.c | 44 ++++- drivers/gpu/drm/virtio/virtgpu_drv.h | 28 +++- drivers/gpu/drm/virtio/virtgpu_fence.c | 30 +++- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 195 +++++++++++++++++++++-- drivers/gpu/drm/virtio/virtgpu_kms.c | 26 ++- drivers/gpu/drm/virtio/virtgpu_plane.c | 3 +- drivers/gpu/drm/virtio/virtgpu_vq.c | 19 +-- include/uapi/drm/virtgpu_drm.h | 27 ++++ include/uapi/linux/virtio_gpu.h | 18 ++- 10 files changed, 355 insertions(+), 36 deletions(-)