Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1983796imu; Sat, 22 Dec 2018 09:29:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/W+9znz+0omrKOkE1isQLI2pSoBoP7jTGJgQTyTcBr+wvH+3AYv98bNNLZKwyJ/M8xGQnTR X-Received: by 2002:a62:399b:: with SMTP id u27mr7458029pfj.181.1545499761725; Sat, 22 Dec 2018 09:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545499761; cv=none; d=google.com; s=arc-20160816; b=nI2Lb8anUkOqc5lXfvuwXWNbGqMVPLqjBgVBc0gkz2H5OHj7D24xSPXr7ERMKZBpxk /W7Z8g92tU4ZqLg73Z1AEjmoIyRV/B8wDrR+pRrF9w9cm+K8mFNWXYy5fW0KezftVJ/I eVK5U6Q+T8SU/J8m73IWgjmF9jRUgJ1Gn/+goj6+UTmM1ceY9hr+C0RWpDTNKJIPZise Ro8yRhX8sSqne0lFGbrz0QYRYtE02vTy4SvxQ5WQz07APYnvoPHEfSpKn49M5Yy38lzk RjWCzf6bQKoKuMFCeyNi/U0Zacy/l1l6E+WlWznTKII+REfe3BpRiYPRxVJBvgZaHvFv aaag== 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:dkim-signature; bh=SJVdAMn3u/1jD44xLq1y25JgZtRFdtu4vOos6twk9NA=; b=aedf3X7zm+URwr8TKLQlR7fkneCgcmXZozF9WGoxyPwxXdb87HUCjMV7sl8URlQPOR luzBGO0i+9r/0eju1wjvRBaqz0cREaXEJlPjlnOwt7YLNbT6MeLmZaYx76TKPjcmXuIv ejkb/x96KAan/oWobK7ZJGON9x9Cz9Y3fKV4J9voRZ3UAQfGFNPVhCc7rlc29nuaAel0 MbuouRguNzZQAqcSCe/AQBf/patxc51/kktG4R6xeFhiRBwnSHFlShpNL6neU9vxU6ut avVf0YUktVAMJZbljLdqYilXioyu/vFvReLoPEpWBZN350S+nslSrsCKKsK8PeOUZjtX vFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mvg44wIB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si22895655plz.327.2018.12.22.09.29.05; Sat, 22 Dec 2018 09:29:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mvg44wIB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391390AbeLUSfo (ORCPT + 99 others); Fri, 21 Dec 2018 13:35:44 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44354 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731525AbeLUSfn (ORCPT ); Fri, 21 Dec 2018 13:35:43 -0500 Received: by mail-pf1-f194.google.com with SMTP id u6so2957598pfh.11 for ; Fri, 21 Dec 2018 10:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SJVdAMn3u/1jD44xLq1y25JgZtRFdtu4vOos6twk9NA=; b=Mvg44wIB+I3/OaqOoHVYFaB+kPhICqoKgZ/AZ9ZBjF+kuf6XWoFlkblQMBEUo1e0GY AyNcB+lIcF+8LHdxohQqCIUzuTF1sAvJiqdr8H4H+wqp2WqgCDkSnQ3boVX/I5EBB2oP gFIbeYwCuGJPAQVaKi8wSf1RulspsdmWYWDeDRteMjwe2AraHkjvOjiEZnHWVJQVJig0 YZhhT8dnURE2SC69vOa9snMT6NgV423Mg9Xn+nvVyGK/dLnXaskVzBqp69jOQIbkKgPD 8sNGUg3Oq2uNjUtNGU/kQg7P6hE/GARoN1uGP6ir8+AXrz0T+zUgXXN53j7Vj8YdnhV8 mgUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SJVdAMn3u/1jD44xLq1y25JgZtRFdtu4vOos6twk9NA=; b=k20fiaHfKwZnG5cVd8oeLkoLg+JQ3YU14FQR3Cgn2FI3S7XUSmUOLK5MC21xrDIuKZ Lt9wMnJT2JuF56L8ob6JZdbiAgXTKMNTUhWHJPli1S4vwSUgLZjP6mosrmHxXZ58+837 VHx5FFRFK6QAT0RHTWKS/n0b49h5NYKODyP5J+Q74sgTwfSGxaNIeorffcyhyu2ORdtQ sRJFKFmypEHHGvPFVfvfhWpO14mmnaN6d8h9ntXeMurUzlzcjRi4UurZk59lLG1O9060 aTw3LhWWNdTuSKoF+CDxm+3d8qw++iv1J8dIP2ZtBv4wFd8VkC/cOxQo8YLxTfEFvHKp vN+A== X-Gm-Message-State: AJcUukfdwxGEnaDEtPSdeDMo0CwBeAB4eKbROsSWgCUkglXAFBUk4ljH R71i7ebXkIkljOQejzltGfo= X-Received: by 2002:a63:4384:: with SMTP id q126mr3443903pga.160.1545417342435; Fri, 21 Dec 2018 10:35:42 -0800 (PST) Received: from [192.168.2.145] ([94.29.36.169]) by smtp.googlemail.com with ESMTPSA id g190sm28653444pgc.28.2018.12.21.10.35.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Dec 2018 10:35:41 -0800 (PST) Subject: Re: [PATCH 2/2] drm: Revert syncobj timeline changes. To: christian.koenig@amd.com, Eric Anholt , dri-devel@lists.freedesktop.org Cc: Daniel Vetter , linux-kernel@vger.kernel.org, Jason Ekstrand References: <20181108160422.17743-1-eric@anholt.net> <20181108160422.17743-3-eric@anholt.net> From: Dmitry Osipenko Message-ID: <44f25278-fbbd-f95b-c2ab-87834e5d095e@gmail.com> Date: Fri, 21 Dec 2018 21:35:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.12.2018 21:27, Christian König wrote: > Am 19.12.18 um 18:53 schrieb Dmitry Osipenko: >> [SNIP] >>> @@ -931,9 +718,6 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs, >>>         if (flags & DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT) { >>>           for (i = 0; i < count; ++i) { >>> -            if (entries[i].fence) >>> -                continue; >>> - >>>               drm_syncobj_fence_get_or_add_callback(syncobjs[i], >>>                                     &entries[i].fence, >>>                                     &entries[i].syncobj_cb, >> Hello, >> >> The above three removed lines we added in commit 337fe9f5c1e7de ("drm/syncobj: Don't leak fences when WAIT_FOR_SUBMIT is set") that fixed a memleak. Removal of the lines returns the memleak because of disbalanced fence refcounting and it looks like they were removed unintentionally in this patch. > > That was already fixed with 61a98b1b9a8c7 drm/syncobj: remove drm_syncobj_cb and cleanup. > > This cleanup removed all the duplicate checking and is now adding the callback only once. Okay, though that commit is not in linux-next. I assume it will show up eventually.