summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
diff options
context:
space:
mode:
authorchong li <chongli2@amd.com>2025-11-07 11:59:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-12-08 13:56:38 -0500
commitc71980a3fc1dd7bf2f3c10b113d917e9f3cd10ae (patch)
tree561877231ac813b983c4ee5cc60a2fe523a0ac07 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
parentec62b7ded978957ec74add4c1feccc986e2baeef (diff)
downloadlinux-next-c71980a3fc1dd7bf2f3c10b113d917e9f3cd10ae.tar.gz
linux-next-c71980a3fc1dd7bf2f3c10b113d917e9f3cd10ae.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
index 8bdfcde2029b..335d733751cb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
@@ -37,7 +37,7 @@
#include "amdgpu_sync.h"
#include "amdgpu_vm.h"
#include "amdgpu_xcp.h"
-
+#include "kfd_topology.h"
extern uint64_t amdgpu_amdkfd_total_mem_size;
enum TLB_FLUSH_TYPE {