Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753384AbcDDAOR (ORCPT ); Sun, 3 Apr 2016 20:14:17 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:46948 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbcDDAOP (ORCPT ); Sun, 3 Apr 2016 20:14:15 -0400 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfee68d-f79e86d0000012da-c7-5701b1d4a13f Content-transfer-encoding: 8BIT Message-id: <5701B1D4.3010505@samsung.com> Date: Mon, 04 Apr 2016 09:14:12 +0900 From: Inki Dae User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Rob Clark , Inki Dae Cc: Daniel Vetter , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOl?= =?UTF-8?B?Zw==?= , "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Riley Andrews , Gustavo Padovan , John Harrison Subject: Re: [RFC 0/6] drm/fences: add in-fences to DRM References: <1458758847-21170-1-git-send-email-gustavo@padovan.org> <56F3A2DC.8080507@samsung.com> <56F47D01.7040508@samsung.com> <56F88828.5050304@samsung.com> <56F9E613.1030902@samsung.com> <56FCD5A3.4040700@samsung.com> <56FCF67A.8090109@samsung.com> In-reply-to: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsWyRsSkUPfKRsZwg23XzSze/73PZvG06yKz xcKHd5ktrnx9z2bxaXUru8Wkpw/YLC7vmsNm8XrTX0aL5wt/MDtwemzbvY3V4+/z6ywee78t YPHYOesuu8fiPS+ZPO53H2fy+LxJLoA9issmJTUnsyy1SN8ugStjV982xoLj4hWLJ91kb2Cc INzFyMkhIWAi8bThAQuELSZx4d56ti5GLg4hgRWMEi1L7jLCFB3YtpUVxBYSmMUoMWmnLIjN KyAo8WPyPaBmDg5mAXmJI5eyIUx1iSl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NOVoj5 HewSe/93s4AkOAWCJbYsmMg+gRHoRoTrZiFcNwvhugWMzKsYJVILkguKk9JzjfJSy/WKE3OL S/PS9ZLzczcxgmP/mfQOxsO73A8xCnAwKvHwTnBlCBdiTSwrrsw9xCjBwawkwsu1ijFciDcl sbIqtSg/vqg0J7X4EKMp0HsTmaVEk/OBaSmvJN7Q2MTMyNLI3NDCyNhcSZz38f91YUIC6Ykl qdmpqQWpRTB9TBycUg2M0hnMArU8m1Kuin5W/FJ8/+DdZS+9j+mvVJvySGQ/cxqbZkbdxFd7 2597TVjVFfmT5e4tQ+5cnfUFNd9lXZomu215pNa79ljI6tJ9Rn5trZU3dvf+Wfar8IaOnhO/ S1rVzi3n8pdOMLsyJfD921t8K5nmLpybzSQjtSp40oyWNyuUJk3hnhK4QImlOCPRUIu5qDgR ADHDHd4TAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2955 Lines: 62 2016년 03월 31일 23:10에 Rob Clark 이(가) 쓴 글: > On Thu, Mar 31, 2016 at 7:26 AM, Inki Dae wrote: >> Hi Daniel, >> >> 2016-03-31 19:56 GMT+09:00 Daniel Stone : >>> Hi Inki, >>> >>> On 31 March 2016 at 11:05, Inki Dae wrote: >>>> 2016년 03월 31일 18:35에 Daniel Stone 이(가) 쓴 글: >>>>> On 31 March 2016 at 08:45, Inki Dae wrote: >>>>>> As of now, it seems that this wouldn't be optional but mandatory if explicit fence support is added to the atomic helper framework. This would definitely be duplication and it seems not clear enough even if one of them is just skipped in runtime. >>>>> >>>>> Drivers would have to opt in to explicit fencing support, and part of >>>>> that would be ensuring that the driver does not wait on implicit >>>>> fences when the user has requested explicit fencing be used. >>>>> >>>> >>>> Then, existing drivers would need additional works for explicit fencing support. This wouldn't be really what the drivers have to but should be handled with this patch series because this would affect exising device drivers which use implicit fencing. >>> >>> Well, yes. Anyone implementing their own atomic commit would need to >>> ensure that the commit works properly for fences. The helpers could >>> also add it, but the helpers are not mandatory, and you are not >>> required to use every part of the helper to use one part of the >>> helper. There is no magic wand you can wave that instantly makes it >>> work for every driver >> >> I meant there are already several DRM drivers which work properly for >> implicit fence. So if atomic helper framework of DRM core is >> considered only for the explicit fence, then fencing operation would >> affect the existing DRM drivers. So I hope this trying could consider >> existing implicit fence users. >> > > Note that there would be a new flag on the atomic ioctl to request What is the new flag? And Where I could find the new flag? > explicit fencing, and with an old kernel or a driver that does not > support it, the ioctl would be rejected and an error returned. The > atomic/kms framework would of course continue to support implicit I couldn't find where such exceptions are considered. And as of now, I think implicit fence is implemented by drivers so hided from drm core framework. So how atomic/kms framework knows whether explicit or implicit fence is supported by driver? Otherwise, you mean such things are TODO in the future? There may be some logic I don't understand yet. Thanks, Inki Dae > fencing. And an explicit-fencing userspace would require a > sufficiently new kernel and possibly some minor driver support (above > and beyond 'struct fence' conversion). > > BR, > -R > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >