From patchwork Thu Feb 13 23:18:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurchetan Singh X-Patchwork-Id: 11381437 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58EA1139A for ; Thu, 13 Feb 2020 23:18:26 +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 374942082F for ; Thu, 13 Feb 2020 23:18:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JHRcfe2x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 374942082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 002706E424; Thu, 13 Feb 2020 23:18:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by gabe.freedesktop.org (Postfix) with ESMTPS id 025626E34D for ; Thu, 13 Feb 2020 23:18:19 +0000 (UTC) Received: by mail-pj1-x1041.google.com with SMTP id r67so3044665pjb.0 for ; Thu, 13 Feb 2020 15:18:18 -0800 (PST) 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=73/dS5yYBUIlhAx2JNLByQ5Z37ExvWD/9c6Z4fbAvbs=; b=JHRcfe2xQ5iGCsMjyooYusI8N3OcijLJf3Dx+9AU8ZQu0j0ui/eZSa+pLy02BOxci6 IGcB6Omi3y5M85G7I2s8Ua6TMMuLmELDKt54/KPYga3TfBN9OH6n4Brr8u172Nu5p9hT J986Prj0CCtC9f3PhOzYm5VFObLdUSjKyhbuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=73/dS5yYBUIlhAx2JNLByQ5Z37ExvWD/9c6Z4fbAvbs=; b=DhAA80UjBXikF5HDicU0swZ3Xl2Zx1CT0xgONtjYASKyq/7ux+kvftTLun9CWIDnqg pH1/G/h7kR3xR9syDWXU6q/6H/S7VoguxJ5oMewXWoWaicAscyqAGrTCZFysfNPTNa4E zrUbjnd96tNV25h1W/zSS76aTKxPRu5WM8YCUCXt4mqkGqfvHIgTOuydKfmrDlyqsdFm F76o6SZY87ilZm5CeaVCUSfuQfMm4HmbnFox1ejeUqanxZTedllJGpxYcgLOMXJXU47o B243inxs/lEZQGxi6zAtCkHyECePMU8yqLdE63xYOlu/jv74Dgcd5Rta6g6saRiRSr1Z TSEw== X-Gm-Message-State: APjAAAUd1tR2j5DI4vTXuV4pFhqLNXnEbatVcN2DVem36WcrFrfV9kKK An5cfbyLVYS1eMue4wWyvUIoIFLApNw= X-Google-Smtp-Source: APXvYqwiWuYGidfZYxtb4M9C5/+HaA/bP+2EDX7gwW7TZwrp4Lml2Pe3Vrap2Ozhwy0Qmvp8zsrLjg== X-Received: by 2002:a17:902:74cc:: with SMTP id f12mr312671plt.192.1581635896282; Thu, 13 Feb 2020 15:18:16 -0800 (PST) Received: from gurchetansingh0.mtv.corp.google.com ([2620:15c:202:201:bc97:5740:52a7:6875]) by smtp.gmail.com with ESMTPSA id w17sm4253495pfi.56.2020.02.13.15.18.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Feb 2020 15:18:14 -0800 (PST) From: Gurchetan Singh To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/5] *** Delay context create cmd *** Date: Thu, 13 Feb 2020 15:18:00 -0800 Message-Id: <20200213231805.622-1-gurchetansingh@chromium.org> X-Mailer: git-send-email 2.24.1 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: , Cc: Gurchetan Singh , kraxel@redhat.com, jbates@chromium.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Let's delay enqueuing the context creation command until the first 3D ioctl, as we add more context types. This series is based on kraxel's "[PATCH v3 0/4] drm/virtio: rework batching" patches. Gurchetan Singh (5): drm/virtio: use consistent names for drm_files drm/virtio: factor out context create hyercall drm/virtio: track whether or not a context has been initiated drm/virtio: enqueue virtio_gpu_create_context after the first 3D ioctl drm/virtio: add virtio_gpu_context_type drivers/gpu/drm/virtio/virtgpu_drv.h | 1 + drivers/gpu/drm/virtio/virtgpu_ioctl.c | 55 +++++++++++++++++++++----- drivers/gpu/drm/virtio/virtgpu_kms.c | 25 +++--------- 3 files changed, 52 insertions(+), 29 deletions(-)