Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5475757pxb; Mon, 7 Feb 2022 02:57:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgKvXpebW2j/WQQaNWBlAZ1BLCXb+HxZOyjt9yCy+NSFeEZC6moFqW50uC261BWjhxFnkY X-Received: by 2002:a17:902:b583:: with SMTP id a3mr15691042pls.77.1644231451589; Mon, 07 Feb 2022 02:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644231451; cv=none; d=google.com; s=arc-20160816; b=doFnsvdTt/6F9Vr35Z1nPX8yLy61eL2RB3VUBDTZA6bOiaeg8HiJxDx+528zhlR0vK Erk/Rv+EoI3U+36chQwSn/cZaqOVyekg9/U8TOx00+8hJcMJxYFkqKFFhLi90sq3DtFO CxSL+y1Soz+aUPCebi5GsIOazNsVGAAIbW7yKAHcLdUBqQtfkTg/LF2DkT89Oz2nUq3Y xF8qy7NLdT7Sb/HrNZoEKZdniOoxfo+dgOvckC4TuYh0uNFBKtEOyk+6g7NbvH/jVUiE VlvxsLuSQKHO4G9eIComzQfPAYpnj1S5Xh/gZJJOsycg8cV6qMZVCcVVvYEVLGwVRRza 5XRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=Lxh39MUIwPoB4L77nmzR+NxgwzKfDafwt/YKb1Z9Oyk=; b=1Je4N9GQ0NhNZvosn9fFfaxRNwCnKlwo731xQ+vtHf5wWBfJoGdSpcwzBree2jDKxS V3k8VB+iS905539cZgc6jonMHtqBgvNVkJxnr+8myqn2AVo9TVvwa7zJtIHJMjnZF9Zd WAQyn/4tmcJEYEFCKQmrgl/TrtuyO9eOOe/aXTSzapvvHlmkhs2YkWsbkKCvrHo5lA3B UWxWHuxhM8KXPZTajupF36WiUThwJLyw2lY9uTW/CZzJK7oQrDQJz09gyESXH7pq41VY 0Ui/7rD1KLkYAOvOl84ofa97kgUVo15qscGd5fYwuczlGh/w8RXETr857oow++SV4t9O NOfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=IumbASqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r142si9212693pgr.622.2022.02.07.02.57.19; Mon, 07 Feb 2022 02:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=IumbASqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378268AbiBEAf5 (ORCPT + 99 others); Fri, 4 Feb 2022 19:35:57 -0500 Received: from linux.microsoft.com ([13.77.154.182]:59586 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238078AbiBEAf4 (ORCPT ); Fri, 4 Feb 2022 19:35:56 -0500 Received: from [192.168.1.17] (unknown [192.182.151.181]) by linux.microsoft.com (Postfix) with ESMTPSA id 1F50820B6C61; Fri, 4 Feb 2022 16:35:56 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1F50820B6C61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1644021356; bh=Lxh39MUIwPoB4L77nmzR+NxgwzKfDafwt/YKb1Z9Oyk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IumbASqLXkb8e1ibpmpHYMvxXZidJ5avumnPKdXaqW1EVALP1PWXs640zZhYUu0pe Iep8qGZJRpsZ3BxAFIzHRdIXowRYphqso9HBcgnuPiKS4S1Em5gr2KXO1ifjDBl0wO ooC33qR8biJi7OiVtyBVNYhh5VHBksZZKQhHimkY= Message-ID: Date: Fri, 4 Feb 2022 16:35:55 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v1 9/9] drivers: hv: dxgkrnl: Implement DXGSYNCFILE Content-Language: en-US To: Daniel Vetter Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, spronovo@microsoft.com, gregkh@linuxfoundation.org, DRI Development , jenatali@microsoft.com References: From: Iouri Tarassov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/17/2022 1:35 AM, Daniel Vetter wrote: > On Mon, Jan 17, 2022 at 9:34 AM Iouri Tarassov > wrote: > > > > > btw another idea I had over the w/e: Another option might be to allow > different backends for sync_file, and then making sure that you cannot > ever mix dma_fence and hv_dxg_fence type sync_file up (in e.g. the > merge ioctl). > > The issue is that fundamentally dma_fence and memory fences (or umf > for userspace memory fences as we tend to call them) aren't > compatible, but some of the interop plans we have is to allow stuffing > either of them into fence container objects like sync_file. So going > that route for wddm monitored fence support too could be a really > future-proof approach, plus it'd allow you to still share the > sync_file interface code. Not that it's going to be much code sharing, > since all the implementation code needs to be distinct. > -Daniel Thanks Daniel! I will remove the patch for dxgsyncfile from the next set of upstream patches. It will be added later after a re-design. Iouri