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 E8836CA0EDC for ; Thu, 14 Aug 2025 15:18:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 18D9E10E1FA; Thu, 14 Aug 2025 15:18:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="IAe1z4KE"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8AB5810E1FA for ; Thu, 14 Aug 2025 15:18:21 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 54A8A601E0; Thu, 14 Aug 2025 15:18:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD719C4CEED; Thu, 14 Aug 2025 15:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755184700; bh=4p74E7bNCFHspyPHVUwYdRfNg1qoS7STRMQynF0Lho0=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=IAe1z4KEpVoRwonxyQu3SDapDiUfj+I7Y3wzNpOUQtCnn7AcFZxUHBsy6g4xDKwRD DmX3DDIP+F0Y2/QVNt7aBy6vE2Wt8hWaSKi0EJawm5txPLIk/UaYaQ+DJazN1L2vf0 WjV5hQYyhDWB65jj26THxzCzRYpDszyzgK9I4ocTTTGW+0fZ2G7u0bCF7Q9Vx24/L4 fXYb7n1exYqiC8EDVcJqW25Kmy0RA5oZxdzi9ux8pp7mjyhjumr9dzYH4NXmoCgwNP eJ9GJ0Ven8n7uvz0Mra8TV5YzwRaCSz5RrZL6WY4QKm5+cj0mFQgXwsirW3h2MVnCm YN7wcxsljF1vg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 14 Aug 2025 17:18:14 +0200 Message-Id: Subject: Re: [PATCH 1/2] drm_gem: add mutex to drm_gem_object.gpuva Cc: "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Boris Brezillon" , "Daniel Almeida" , "Steven Price" , "Liviu Dudau" , "Rob Clark" , "Rob Herring" , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Trevor Gross" , , , To: "Alice Ryhl" From: "Danilo Krummrich" References: <20250814-gpuva-mutex-in-gem-v1-0-e202cbfe6d77@google.com> <20250814-gpuva-mutex-in-gem-v1-1-e202cbfe6d77@google.com> In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu Aug 14, 2025 at 5:01 PM CEST, Alice Ryhl wrote: > I had wanted to move it below free(), but we can't do that since > free() also performs the kfree() call. Actually, I think it belongs in drm_gem_private_object_fini(), where also c= all dma_resv_fini() for the GEM owned dma-resv lock. Any cleanup should be done from where a driver calls drm_gem_object_release= ().