Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp995968imu; Fri, 9 Nov 2018 09:15:08 -0800 (PST) X-Google-Smtp-Source: AJdET5dO6TPo7vu/4GvR5xYj9Y11+XLOWo51Bk6Tvov5EHVPMgrK4z80JvoPNE5lg2Mc2L4kiQlT X-Received: by 2002:aa7:8348:: with SMTP id z8-v6mr9747323pfm.81.1541783708369; Fri, 09 Nov 2018 09:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541783708; cv=none; d=google.com; s=arc-20160816; b=MGTfdpAHIUYVLT07wJCRSL43MWEVDsG1Vts+6hpo5WP2AudiKsrHRRsvCX41/yLpaU j015YEQ7QQagTYROLRogeXoBbIYUnsmD3sdxESA19IzyJ1iqJqRg6Kv1WEq3zfFzBEMO F2iPt/lkiG/jCiWgwkuLYGkT6zDmR6Mp1zG07MNZ3xS/74p337k6FcKRDFEcrSVNZtbf 0qxKIyze4kd/3YWbUyLVVgsTHm8lhly8p8BNgzJNuuU0SV272i0lrnCOofOZlX+TFrG6 x5ly83bICYWaXtHcw+tCbAbGzo3fOi3N55dio3U6YTUeSezCKoP92IhGh1LpvuA06jQs JQKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=mltgPy+BjrVFHwG7fDQbJ6vMDdpYGc8+8aIO4aBLx3E=; b=0/dsCURln1QadR6Gavto77b/So0Yq+B/nsAyZ37dwLi+HeV83lDYGtowfiaiR4n4fC +Yt6jyVR4v0MyS9xdJ//gTgW0NYRIvG9cjE7cz1nbETrJi1pVXmKQWER65896gaf/iHv lqiFRx6TQy31ZEv65BPM3Wyz7hLkqIvt/z2RB3vkMeSaKmmrWwtu16JkQvex2ixqkf6b EhVChJRkcMUw+vUMga6rHQnQk6kBCPrpOE/q1NeOglQ1u9HoBNebmFR3SXsf+V2wCXHx uAz1onGe7zx764XI2rTbAH9RoDUU8Iey25V42rWGDCa9Zo0MtjUvTg2ge2LIhNP8avTm y+eA== 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 i9-v6si7375278pgd.17.2018.11.09.09.14.34; Fri, 09 Nov 2018 09:15:08 -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 S1728553AbeKJCzZ (ORCPT + 99 others); Fri, 9 Nov 2018 21:55:25 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:43140 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbeKJCzZ (ORCPT ); Fri, 9 Nov 2018 21:55:25 -0500 Received: from [IPv6:2a02:8109:92c0:207d:f07b:cfbc:c44a:965] (unknown [IPv6:2a02:8109:92c0:207d:f07b:cfbc:c44a:965]) (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 8E1222686FF; Fri, 9 Nov 2018 17:13:55 +0000 (GMT) Subject: Re: [PATCH v4 3/4] drm/virtio: add in/out fence support for explicit synchronization To: Gerd Hoffmann , Emil Velikov Cc: Gustavo Padovan , "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel , "open list:VIRTIO GPU DRIVER" , David Airlie , Emil Velikov References: <20181105114152.2088-1-robert.foss@collabora.com> <20181105114152.2088-4-robert.foss@collabora.com> <20181109101354.dc7cv4i4etu3bkhh@sirius.home.kraxel.org> From: Robert Foss Message-ID: Date: Fri, 9 Nov 2018 18:13:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181109101354.dc7cv4i4etu3bkhh@sirius.home.kraxel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Gerd, On 2018-11-09 11:13, Gerd Hoffmann wrote: > On Mon, Nov 05, 2018 at 05:25:05PM +0000, Emil Velikov wrote: >> On Mon, 5 Nov 2018 at 11:42, Robert Foss wrote: >>> >>> When the execbuf call receives an in-fence it will get the dma_fence >>> related to that fence fd and wait on it before submitting the draw call. >>> >>> On the out-fence side we get fence returned by the submitted draw call >>> and attach it to a sync_file and send the sync_file fd to userspace. On >>> error -1 is returned to userspace. >>> >>> Signed-off-by: Gustavo Padovan >>> Signed-off-by: Robert Foss >>> Suggested-by: Rob Herring >>> Reviewed-by: Emil Velikov >>> --- >>> >>> Changes since v3: >>> - Move all in_fence handling to the same VIRTGPU_EXECBUF_FENCE_FD_IN block >> Fwiw my suggestion was to explicitly document whether the IOCTL can >> support, simultaneously, IN and OUT fence. > > Yes, that would be good. Code looks like it is supposed to work, but > explicitly saying so in the commit message would be nice. On it! Will send out a v5. > > Also: should we use separate fields for in/out fds? I'm not sure I understand which fields you're referring to. > > cheers, > Gerd > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >