Skip to contentSkip to conversation

amdkfd: enlarge the hashtable of kfd_process

PATCH In review Zhu Lingshan 2 participants 2 messages Dec 13, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amdkfd: enlarge the hashtable of kfd_process

This commit enlarges the hashtable size of
kfd_process to 256

---
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +1 -1
index 9e5ca0b93b2a..7b2049720c6a 100644
@@ -1004,7 +1004,7 @@ struct kfd_process {
 	struct kfd_runtime_info runtime_info;
 };
 
-#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;
 
Signature · 1 line
2.43.5
maintainer
#1 lore raw
Quoted 2 lines · Zhu Lingshan

This commit enlarges the hashtable size of
kfd_process to 256

That's obvious. Can you state the reason why you're making that change?

Does this change make sense stand-alone, or should it be part of your multi-context patch series?

Regards,
  Felix

Quoted 19 lines
---
  drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +1 -1
index 9e5ca0b93b2a..7b2049720c6a 100644
@@ -1004,7 +1004,7 @@ struct kfd_process {
  	struct kfd_runtime_info runtime_info;
  };
 
-#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;