From nobody Mon Feb 9 08:33:02 2026 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 048A0321F27 for ; Tue, 30 Dec 2025 17:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.104 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767117244; cv=none; b=nPg3U/Smh7xGlAtk7Q7hupxW0bmpCNZAZDxLEIiuKwtK+PCJ4u2bbzjSmPwBAOYnhUUVRJj3F+BJxr9WvlPNGsjHNZO0/NRnXr3cPMgHIZwHbUl+sVJ+rRRxMYcgioO3QkM21ot4uHXkZ4PHPEPBqW3LoUE0LQEeirBDrfBbnN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767117244; c=relaxed/simple; bh=kMKJhDPMFbIsx1PyHoOsFUdelZdpvZLagryJnXtXr6g=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eOZO1+AqYt1RTwbKlwkd2mW4Dp2LEUmVxryWtumytZvvOIJ1OfE9AtUm3WAJ/cZ8pkTr/Pnv/WNt2yaP30hWOKFKJwc/HILy7HEUoAh0gpc8+iBI9Y4uj5FqgGjNOB79IBCuqVbW7FUugSdmZ64GCJKRXDwH+XGb6ROgU8+cIEA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=C40NU8gA; arc=none smtp.client-ip=192.134.164.104 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="C40NU8gA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6dWzj7sv8HrEjyebUNfSk2ME+IZ6ovwMP1uwx2K0bio=; b=C40NU8gAok7TrE7L3hoqM0nBu2Ll8eGa1cElerUIUnHqyRkP+94+RtPc KjopT1dOJHLvSyvGpjOgbz9KOjiprCyKko42nIqD39HjC/YYoOKEIYRQX E7wUZing3UgrM3wZEN7M7q5MXXmx1FnIyuvoZIVAcmwb/w9rmoEyQrPOo o=; X-CSE-ConnectionGUID: bO0t530fSVGx2p8A+D1iLw== X-CSE-MsgGUID: w0eSi0QASMi6Tl8Gdn0uFw== Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=Julia.Lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.21,189,1763420400"; d="scan'208";a="134761890" Received: from i80.paris.inria.fr (HELO i80.paris.inria.fr.) ([128.93.102.196]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2025 18:53:58 +0100 From: Julia Lawall To: Felix Kuehling Cc: yunbolyu@smu.edu.sg, kexinsun@smail.nju.edu.cn, ratnadiraw@smu.edu.sg, xutong.ma@inria.fr, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Simona Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amdgpu: update outdated comment Date: Tue, 30 Dec 2025 18:53:53 +0100 Message-Id: <20251230175353.105289-1-Julia.Lawall@inria.fr> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The function amdgpu_amdkfd_gpuvm_import_dmabuf() was split into import_obj_create() and amdgpu_amdkfd_gpuvm_import_dmabuf_fd() in commit 0188006d7c79 ("drm/amdkfd: Import DMABufs for interop through DRM"). import_obj_create() now does the allocation for the mem variable discussed in the comment. Signed-off-by: Julia Lawall Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu= /drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index b1c24c8fa686..4782265d5e91 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -1987,7 +1987,8 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu( drm_gem_object_put(&mem->bo->tbo.base); =20 /* - * For kgd_mem allocated in amdgpu_amdkfd_gpuvm_import_dmabuf(), + * For kgd_mem allocated in import_obj_create() via + * amdgpu_amdkfd_gpuvm_import_dmabuf_fd(), * explicitly free it here. */ if (!use_release_notifier)