From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2B9EE7716F for ; Wed, 4 Dec 2024 22:20:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 38A3F10E59C; Wed, 4 Dec 2024 22:20:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="XZAo7m8m"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id D066810E59C for ; Wed, 4 Dec 2024 22:20:24 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1AF675C68B7; Wed, 4 Dec 2024 22:19:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD0D5C4CECD; Wed, 4 Dec 2024 22:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733350823; bh=GECUW1zcPqywtdMWXog/qSIekGil/NR9MYAZJMB0SRs=; h=Date:Subject:To:References:From:Cc:In-Reply-To:From; b=XZAo7m8mKOj4oKzZCiRi3AtIgqc5aCiLOZE+WJe8Q16slMp4BZc9DlJ+dnXNaJbB7 +AXBLnYlajNfTpONcG876sNjhoGan8BJpVCBNlhWszl0rsMCzyUiAPpSuFNF4Tkfov 2fX/+KRyYg/AW1tDsGAZzixthCq2xSF4Kn0CrEkWElUjfRsiqnWhzu2wwll1K6oLcp HSq+yfQtyWOWWFzHxg3SC3gtKXxbe+z2KqvmjInj0UqSx0Iw1Y4sPQQtzbaXxcuVsm uh5PvFpniGKqZobxMVtQ4mExEZQjgsvn+gdB6pvKqEaOOiiI1kfBFLrx897ALCtiGy UIsV1IFk+jv1Q== Message-ID: Date: Wed, 4 Dec 2024 23:20:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] [v2] drm/nouveau: retain device pointer in nvkm_gsp_mem object To: Timur Tabi References: <20241030202952.694055-1-ttabi@nvidia.com> From: Danilo Krummrich Cc: bskeggs@nvidia.com, Dave Airlie , nouveau@lists.freedesktop.org Content-Language: en-US In-Reply-To: <20241030202952.694055-1-ttabi@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" On 10/30/24 9:29 PM, Timur Tabi wrote: > Store the struct device pointer used to allocate the DMA buffer in > the nvkm_gsp_mem object. This allows nvkm_gsp_mem_dtor() to release > the buffer without needing the nvkm_gsp. This is needed so that > we can retain DMA buffers even after the nvkm_gsp object is deleted. > > Signed-off-by: Timur Tabi Applied to drm-misc-next, thanks!