]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
amdkfd: enlarge the hashtable of kfd_process
authorZhu Lingshan <lingshan.zhu@amd.com>
Thu, 24 Oct 2024 02:32:38 +0000 (10:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:39 +0000 (13:56 -0500)
This commit enlarges the hashtable size of
kfd_process to 256, because of the multiple
contexts feature allowing each application
create multiple kfd_processes

Signed-off-by: Zhu Lingshan <lingshan.zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h

index 76842bb8e78ba2eb6271dd79228087225f9d0daa..ced5a84c43289cecb53b0e060702cfe77cb65e5c 100644 (file)
@@ -1019,7 +1019,7 @@ struct kfd_process {
        bool gpu_page_fault;
 };
 
-#define KFD_PROCESS_TABLE_SIZE 5 /* bits: 32 entries */
+#define KFD_PROCESS_TABLE_SIZE 8 /* bits: 256 entries */
 extern DECLARE_HASHTABLE(kfd_processes_table, KFD_PROCESS_TABLE_SIZE);
 extern struct srcu_struct kfd_processes_srcu;