Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp866786pxb; Wed, 3 Nov 2021 13:49:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrPOcXluSNeqqAlBL6bU2/sCPuRM+k8hyQ+Jf8JOMjXJaN2imIcA3JiW4KmL3NeVDR5Nrk X-Received: by 2002:a05:6e02:1048:: with SMTP id p8mr31550970ilj.174.1635972576934; Wed, 03 Nov 2021 13:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635972576; cv=none; d=google.com; s=arc-20160816; b=B12Kx35RwGVuWeuxwRHbFp3JaifHih51m3/rn4BWsftwK0h4XLxvUjX2AJ7ZIpTBlX G1bzOqp8BCrWxBd+1pwEf3Xce7S/NyliNEeuasw1NhzdTiBRnCC712XO1D3uvZHKeMr8 JyQgaADNLFNFjxblHbmWrGbZJ+wXTetV2RbbiN5qHdHmP3hkaM8hm7wSG63nthd9AxGb BuOFJrcPIaNPJyMiSh24wQzqDELM1NeSfCYkRjyIy16bdn6IgB4hYp3dtyGvxZE4nkaT tvDm2BycGMjjElNWRBQ2ALd56PoB5rY0GCX5/wTVdT5IO/udeNWNdbcwoKAKSExpXybD VZXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=UGAhlf3ZgEyyLfYXB7XCQFH44LRuROp3Q7YGAfC2ow4=; b=qM63IbbH/czEgQBkSSA/Sv8HPpqj92psKTG4piVAFYIfrCIlinjmqLzeGi0Aof+EJz FxpvT47L3tvBdylsJrXyJIrlUOLZAoDBIFc0cofzjbRBZ13L77z8hUzxvFAkIFGh5mRz NRssujb6l3AzYkgP/EcWM6jZzqu27lDyHNgFnMh60stDwo6N7XjPp7it1bLx/D405PqG H29l0P6z8f6+fSuvAm1GM6prhc2Onmj68xnLri9iUaqeESHanJl2Ez/628ICQWgzy26F nCv3sHTURk16lc2A+4euuf2HtMt32CSmEL/eEJcY9y91zv2LzRnKSSJdptbIMwUAtrcm hviA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="NG/+fnPP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si6601182ilu.80.2021.11.03.13.49.22; Wed, 03 Nov 2021 13:49:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="NG/+fnPP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbhKCUtu (ORCPT + 99 others); Wed, 3 Nov 2021 16:49:50 -0400 Received: from mout.gmx.net ([212.227.17.21]:58661 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbhKCUts (ORCPT ); Wed, 3 Nov 2021 16:49:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635972423; bh=WOBdEGwwrN4GRQ7dSuVQwrPjh3u25/zRfRLX3CIFDPo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NG/+fnPP0wRfudjUHCOeACDLcQW2bMxCcNXrU71bkK5NLQBWDxo61NihvgU+HYpEa ktxLYU191TXk4p5bAxqYGbgy04te7E/H6UtgNYNmP2VCBhcg6bQByNfZ7VptLfzLk2 GQZZXY2bRiBWhSdMyx4zK6o2H+yt5RvC0X71L6do= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.223.42.226]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M72oB-1mpmkj3pQV-008cbU; Wed, 03 Nov 2021 21:47:02 +0100 Received: by localhost.localdomain (Postfix, from userid 1000) id EE8DA8009A; Wed, 3 Nov 2021 21:47:01 +0100 (CET) From: Sven Joachim To: Karol Herbst Cc: Greg Kroah-Hartman , "Erhard F." , nouveau , LKML , stable@vger.kernel.org, Huang Rui , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [Nouveau] [PATCH 5.10 32/77] drm/ttm: fix memleak in ttm_transfered_destroy References: <20211101082511.254155853@linuxfoundation.org> <20211101082518.624936309@linuxfoundation.org> <871r3x2f0y.fsf@turtle.gmx.de> Date: Wed, 03 Nov 2021 21:47:01 +0100 In-Reply-To: (Karol Herbst's message of "Wed, 3 Nov 2021 21:32:43 +0100") Message-ID: <87tugt0xx6.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:XAluwjzMfZfmdXvp4wQQxSAIvachPCef1CQ8R4ACrlRujjgA2qT 5El/VRyr75du07dX/FgDPXWz6QG/tJZScgi20ZPTkZv9G0FISRCOZUEf2lc3Su2yrtG+0g9 DNrX61TUB89XkPtV1t1coc1p9dxzRK44w06p4u7o+Rrt5PULPZRKHViXVAIdiuo7sii8l3B MRUjOXi5kADf1kvwtHSLg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:aFNoQfnGbkQ=:0jTkXTi4D06SqxY9Ax5SH/ 4C/f6XjDs/XYvIPq7ACtHsM5H/S531O8h3vNYSm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edk2Z2r4PDpvTu0uE6hKT74JxUIoriHbCQDKevN7Mhn1I advggC6wI4Iu2fKEGbPcuy5Hbz+vXxKrNXSVLPGhwDUgjc5UaSjRoqP/wUcj0Kjw5miEE659j tw4HoQ/PNrREAXFIkHJzi0gxr51VUFO88SYLKrQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-03 21:32 +0100, Karol Herbst wrote: > On Wed, Nov 3, 2021 at 9:29 PM Karol Herbst wrote: >> >> On Wed, Nov 3, 2021 at 8:52 PM Sven Joachim wrote: >> > >> > On 2021-11-01 10:17 +0100, Greg Kroah-Hartman wrote: >> > >> > > From: Christian K=F6nig >> > > >> > > commit 0db55f9a1bafbe3dac750ea669de9134922389b5 upstream. >> > > >> > > We need to cleanup the fences for ghost objects as well. >> > > >> > > Signed-off-by: Christian K=F6nig >> > > Reported-by: Erhard F. >> > > Tested-by: Erhard F. >> > > Reviewed-by: Huang Rui >> > > Bug: https://bugzilla.kernel.org/show_bug.cgi?id=3D214029 >> > > Bug: https://bugzilla.kernel.org/show_bug.cgi?id=3D214447 >> > > CC: >> > > Link: https://patchwork.freedesktop.org/patch/msgid/20211020173211.2= 247-1-christian.koenig@amd.com >> > > Signed-off-by: Greg Kroah-Hartman >> > > --- >> > > drivers/gpu/drm/ttm/ttm_bo_util.c | 1 + >> > > 1 file changed, 1 insertion(+) >> > > >> > > --- a/drivers/gpu/drm/ttm/ttm_bo_util.c >> > > +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c >> > > @@ -322,6 +322,7 @@ static void ttm_transfered_destroy(struc >> > > struct ttm_transfer_obj *fbo; >> > > >> > > fbo =3D container_of(bo, struct ttm_transfer_obj, base); >> > > + dma_resv_fini(&fbo->base.base._resv); >> > > ttm_bo_put(fbo->bo); >> > > kfree(fbo); >> > > } >> > >> > Alas, this innocuous looking commit causes one of my systems to lock up >> > as soon as run startx. This happens with the nouveau driver, two other >> > systems with radeon and intel graphics are not affected. Also I only >> > noticed it in 5.10.77. Kernels 5.15 and 5.14.16 are not affected, and= I >> > do not use 5.4 anymore. >> > >> > I am not familiar with nouveau's ttm management and what has changed >> > there between 5.10 and 5.14, but maybe one of their developers can shed >> > a light on this. >> > >> > Cheers, >> > Sven >> > >> >> could be related to 265ec0dd1a0d18f4114f62c0d4a794bb4e729bc1 > > maybe not.. but I did remember there being a few tmm related patches > which only hurt nouveau :/ I guess one could do a git bisect to > figure out what change "fixes" it. Maybe, but since the memory leaks reported by Erhard only started to show up in 5.14 (if I read the bugzilla reports correctly), perhaps the patch should simply be reverted on earlier kernels? > On which GPU do you see this problem? On an old GeForce 8500 GT, the whole PC is rather ancient. Cheers, Sven