From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Padovan Subject: Re: [PATCH] dma-buf: avoid scheduling on fence status query v2 Date: Thu, 27 Apr 2017 18:27:48 -0300 Message-ID: <20170427212748.GD2568@joana> References: <20170426144620.3560-1-andresx7@gmail.com> <92c9bc96-cf60-f246-a82e-47653472521e@vodafone.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Return-path: Content-Disposition: inline In-Reply-To: <92c9bc96-cf60-f246-a82e-47653472521e@vodafone.de> Sender: linux-media-owner@vger.kernel.org To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Andres Rodriguez , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-media@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org 2017-04-26 Christian König : > Am 26.04.2017 um 16:46 schrieb Andres Rodriguez: > > When a timeout of zero is specified, the caller is only interested in > > the fence status. > > > > In the current implementation, dma_fence_default_wait will always call > > schedule_timeout() at least once for an unsignaled fence. This adds a > > significant overhead to a fence status query. > > > > Avoid this overhead by returning early if a zero timeout is specified. > > > > v2: move early return after enable_signaling > > > > Signed-off-by: Andres Rodriguez > > Reviewed-by: Christian König pushed to drm-misc-next. Thanks all. Gustavo