Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1980757imu; Sat, 22 Dec 2018 09:24:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN4/fmSP4U1Nu7mzYL2vuUlGMYJpS0P6sMSrv62V4KanbRYpk69HFh2YDI+GinCMprdETN5v X-Received: by 2002:a17:902:8306:: with SMTP id bd6mr7171588plb.217.1545499499614; Sat, 22 Dec 2018 09:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545499499; cv=none; d=google.com; s=arc-20160816; b=DsxeGg3fzhzy+KtPd3s5NuDYpw8tDbJiFq3Gxq58qY0sgUk7QtUQwQEMu+HBKp4Es2 DnP8+bdBjRt7XCmaMErxVSlDarLO4H7TEbZha/PoNFaiTlWjFlPYUDrQiamzP1uEjpfL KAT5HCot3/XtbrmjDdVANwFrwRfA5MIiDKgft69n0Q2qVXKvfH5aYg5CzWQUowFs7g+a RiT6eTZDAQG20cQQylVQJn3VxFmNlrou8q3N8K0wlHZQe+Y1gE0xJYJ9w1fd2CnnaV1p K+c4ZrDlKQ/opvrLmcL5u/XvlmncAxeD8uuKE7Zey9v4c8yurGjkc6Ch1OdbeFNUqy5C TyjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature; bh=8+w9t5OKE0FQ9muwd/s67DyosSXruezMRXngmK6X5VY=; b=AUI36JTWQHxaaOYNCdIHYunjwPPvJX+pZ0VFP2yLjXEVt83uPFRQerlIb1Lz1BFftS 1TveTTOO1KQvnEwB9qwubA1x4AJdn0iig8NADMft1SBjIZgA8DhXn0FdIg/mjzQ07KG4 R5GC2HoIAO6Ai2Jc2rSshukOYDTKnf9NOegz310i5GmK5MjDXkSukI2grL6NCQqYs213 VnMytonlLAquu3L5yAk7U+OKPrVgWzTpap8P+Ov5AU8KUvCaSfL+PxZOxURYqEx790OF lNY4GSZ4oTc6CzU4+vhgbWMH5MVKdjaupy0EPpgjYw+VsT3AYsmRlZ7LodSiMUTDzBog 0KYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fTBomzCP; 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 b27si23959546pgb.107.2018.12.22.09.24.44; Sat, 22 Dec 2018 09:24:59 -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=fTBomzCP; 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 S2391447AbeLUS1H (ORCPT + 99 others); Fri, 21 Dec 2018 13:27:07 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38869 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731951AbeLUS1H (ORCPT ); Fri, 21 Dec 2018 13:27:07 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so6223951wrw.5 for ; Fri, 21 Dec 2018 10:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=8+w9t5OKE0FQ9muwd/s67DyosSXruezMRXngmK6X5VY=; b=fTBomzCP9w77wF7GjosVOBTekzPGdiixyaK+hKfkbMcHPh3fawWx/CrUTFn4unP/+h wUBbDuVc4Hs/xFDpMhzXidbGY5zkEYTupArJ+K72zaoSfcgUK9dkPcmVeGkrJFh5Jzpb clfL8Pp3uOkX/55POJdYDF0Rb+Ss2F7peD00FYBnhRnHljnI/clGm3PIM4fupIYsf0Lj pLZN/b5xqOYdLwFUqsYI++2Hf5WosqP/3XmhZmDFhi/ryyfH6weA/lyc7gL+KmpAt0J/ hmgZNnBQBt3wkY61k8DBibt9sS860+gtHaJ+noF0JGy+d1ulQXmfSJ8fskSd3DgsSJ5m GNgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=8+w9t5OKE0FQ9muwd/s67DyosSXruezMRXngmK6X5VY=; b=kVLf9Z430qikePsCI8l5fG2+ZqghqspwCMxH5KcLOeUPbeg3w4mFGWwuhBMi+Wvn3q FauJTnvqPIqpHxdO7kIuQkIDa4vykoX0zVFrjXVaE/ooREZfRHRDuAquRnEXAA0rn8/R V5VUGazqhMLJMjodPmVSx5p0QCUzRbmu2EsOTBW9ltUH3g5lS1v0LE8oSsFIBvtWcHek /kaPvx6uN5T1qm8hhBaUsoMjxehvYVcx5Q87LnT1JuQtS70VNXeNOZdwFoplVz6ylKku vnzl2Ru9dbA1YuhSvGqLIgIRPgyxhqpFA/3EcoWTfQWGuwQabSo3kzQSJ86s10rUcVDo pRFA== X-Gm-Message-State: AJcUukeZdq1kzIqVwgx8iek6FwIDsYNVEwIhi8ksC+3js1CRSAY3Ahpd uyNWmkoyQ1sgMvqxFOcz7SE= X-Received: by 2002:adf:8b4d:: with SMTP id v13mr3599756wra.282.1545416825308; Fri, 21 Dec 2018 10:27:05 -0800 (PST) Received: from ?IPv6:2a02:908:125b:9a00:a142:2be6:b7be:5a3a? ([2a02:908:125b:9a00:a142:2be6:b7be:5a3a]) by smtp.gmail.com with ESMTPSA id 199sm14765520wmh.21.2018.12.21.10.27.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Dec 2018 10:27:04 -0800 (PST) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH 2/2] drm: Revert syncobj timeline changes. To: Dmitry Osipenko , Eric Anholt , dri-devel@lists.freedesktop.org Cc: Daniel Vetter , linux-kernel@vger.kernel.org, Jason Ekstrand , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20181108160422.17743-1-eric@anholt.net> <20181108160422.17743-3-eric@anholt.net> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Fri, 21 Dec 2018 19:27:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Christian.