From patchwork Tue Jul 12 04:22:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 12914519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E3B44C433EF for ; Tue, 12 Jul 2022 04:23:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D2D611B3FF; Tue, 12 Jul 2022 04:23:14 +0000 (UTC) Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by gabe.freedesktop.org (Postfix) with ESMTPS id 81D0D10E074 for ; Tue, 12 Jul 2022 04:23:10 +0000 (UTC) Received: by mail-pf1-x449.google.com with SMTP id h5-20020a62b405000000b00528c76085e4so1740416pfn.15 for ; Mon, 11 Jul 2022 21:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc:content-transfer-encoding; bh=l0wfKFp1ChJwLpur4LprhadUuGsHQU0cjcxPkM3pYu4=; b=eydKoO5rr2LXznt/oww6+I4+oHMBcV+Dwp7kSgxo9xRjUefqx0WxWfSdeO3AxvGYYj hsbSG89K48k1wHNBwKqVXwB4ofsdmPYEfk7Tk86cLkHc+Ms3I405DLnGYDvAKbkNi4ex U3I3Einb3hgUR0L5bGLbAMK4OpK9znX82Cr5WUWNPlHXK4iGpg+y13GfASX6npa6IDRg v1YUro0KQNVjiENneup57QrtMLdxPCJZgx1WkoMYa61nJIGISoxF/UKZs4uBzEyuMdVV 26/EMVsIfmf4m7JWn+Sc1AXe79CcmcNQPyvFhD4NgRUzPgcH4DmNRUZCmfcZ3zCGOQa8 +mIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc:content-transfer-encoding; bh=l0wfKFp1ChJwLpur4LprhadUuGsHQU0cjcxPkM3pYu4=; b=jVAx0kdmSDjkTWxdC9eTOAX1h6yHFDAOk1azIYKsx2FD0bt2CDye8AFIabRnDjhuxc m1wqRI+d5gP8bACcoLyAJuE4gFlvileVnLZoUd1jb84NdrSCnE3lS1vjStzBMvwEnNO2 JjK0g6xanTeTVIMWLxE+4XoKlYKQ2TGfgN29y2Wb7SCZum2fQq781UA6dfxysOanJxTL WlUuqzLNHuTwYQUDW4meS6yEnnC5J7BI6aF0ckKqlregI45MV35Wu5nVcAOMb2xDIGoN qMqtY4uqOX+bJ5fKYqZqNmZRoGL5/hr7y09CigPlyGPOOEVo0lDdk48302L78P7uVzUF 7XGQ== X-Gm-Message-State: AJIora9ESQp9kL32JC2pRfMdSeEtZ5UnI8Jv3C80GoietzPThHemumtx PW2yc1cKMqau7sDPhtaiYoo5j0y/kSo= X-Google-Smtp-Source: AGRyM1uSdSVTczuhdh9+VldYWcIPNC0HCxNLlu3dXeAxplL3jRHHA4OEjhvR03xbY4z9GwTDsOqdoWRnLtF/ X-Received: from jstultz-noogler2.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:600]) (user=jstultz job=sendgmr) by 2002:a17:90a:de12:b0:1ef:ae83:d225 with SMTP id m18-20020a17090ade1200b001efae83d225mr2026908pjv.207.1657599790067; Mon, 11 Jul 2022 21:23:10 -0700 (PDT) Date: Tue, 12 Jul 2022 04:22:57 +0000 In-Reply-To: <20220712042258.293010-1-jstultz@google.com> Message-Id: <20220712042258.293010-2-jstultz@google.com> Mime-Version: 1.0 References: <20220712042258.293010-1-jstultz@google.com> X-Mailer: git-send-email 2.37.0.144.g8ac04bfd2-goog Subject: [RFC][PATCH 2/3] drm: vgem: Enable SYNCOBJ and SYNCOBJ_TIMELINE on vgem driver From: John Stultz To: LKML 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: Chunming Zhou , Thomas Zimmermann , David Airlie , dri-devel@lists.freedesktop.org, John Stultz , Lionel Landwerlin , Jason Ekstrand , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Allows for basic SYNCOBJ api testing, in environments like VMs where there may not be a supported drm driver. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: Jason Ekstrand Cc: Christian König Cc: Lionel Landwerlin Cc: Chunming Zhou Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: John Stultz --- drivers/gpu/drm/vgem/vgem_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index c5e3e5457737..e5427d7399da 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -109,7 +109,8 @@ static struct drm_gem_object *vgem_gem_create_object(struct drm_device *dev, siz } static const struct drm_driver vgem_driver = { - .driver_features = DRIVER_GEM | DRIVER_RENDER, + .driver_features = DRIVER_GEM | DRIVER_RENDER | + DRIVER_SYNCOBJ | DRIVER_SYNCOBJ_TIMELINE, .open = vgem_open, .postclose = vgem_postclose, .ioctls = vgem_ioctls,