Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbcDOLoF (ORCPT ); Fri, 15 Apr 2016 07:44:05 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:36098 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbcDOLoD convert rfc822-to-8bit (ORCPT ); Fri, 15 Apr 2016 07:44:03 -0400 MIME-Version: 1.0 X-Originating-IP: [2a02:168:56b5:0:ac27:b86c:7764:9429] In-Reply-To: <5710AE61.9040308@amd.com> References: <1460683781-22535-1-git-send-email-gustavo@padovan.org> <1460683781-22535-2-git-send-email-gustavo@padovan.org> <20160415080254.GQ2510@phenom.ffwll.local> <5710AE61.9040308@amd.com> Date: Fri, 15 Apr 2016 13:44:01 +0200 X-Google-Sender-Auth: RhU4Plo1MRH_0G70rvJyXalDLdE Message-ID: Subject: Re: [RFC 1/8] dma-buf/fence: add fence_collection fences From: Daniel Vetter To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Gustavo Padovan , dri-devel , Linux Kernel Mailing List , Daniel Stone , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Riley Andrews , Rob Clark , Greg Hackmann , John Harrison , Laurent Pinchart , Sean Paul , =?UTF-8?Q?St=C3=A9phane_Marchesin?= , m.chehab@samsung.com, Maarten Lankhorst , Gustavo Padovan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 22 On Fri, Apr 15, 2016 at 11:03 AM, Christian König wrote: > Might be that how amdgpu uses the fence context and sequence number is a bit > questionable, but this will completely break it. You mean it tries to qualesce fences in the same context down to just the last one? That's how it's supposed to be done, and fence_collections do break this somewhat. Without fixing up fence_is_later and friends. Sounds like amdgpu is a good use case to make sure the changes in semantics in these functions result in sensible code. In a way a fence_collection is a fence where the timeline never matches with any other timeline (since it's a combiation). And yeah I think fence_collection should probably compress down the fences to 1 per timeline. But then that's just an implementation detail we can fix later on. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch