]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: update outdated comment
authorJulia Lawall <Julia.Lawall@inria.fr>
Tue, 30 Dec 2025 17:53:53 +0000 (18:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:00:00 +0000 (17:00 -0500)
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 <Julia.Lawall@inria.fr>
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 6585b8b9e7090cf6ec6b7cb4633b00cde2d14974..88fc430b9425ed81cb93fa44dfe9f236327830bc 100644 (file)
@@ -1991,7 +1991,8 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu(
        drm_gem_object_put(&mem->bo->tbo.base);
 
        /*
-        * 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)