]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: reduce the full gpu access time in amdgpu_device_init.
authorchong li <chongli2@amd.com>
Fri, 7 Nov 2025 03:59:28 +0000 (11:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:38 +0000 (13:56 -0500)
commitc71980a3fc1dd7bf2f3c10b113d917e9f3cd10ae
tree561877231ac813b983c4ee5cc60a2fe523a0ac07
parentec62b7ded978957ec74add4c1feccc986e2baeef
drm/amdgpu: reduce the full gpu access time in amdgpu_device_init.

[Why]
function "devm_memremap_pages" in function "kgd2kfd_init_zone_device",
sometimes cost too much time.

[How]
move the function "kgd2kfd_init_zone_device"
after release full gpu access(amdgpu_virt_release_full_gpu).

v2:
improve the coding style.

Signed-off-by: chong li <chongli2@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h