[PATCH 4/4] drm/amdkfd: Patch memory parameters for all CPU nodes
Oak Zeng
Oak.Zeng at amd.com
Tue Jun 1 19:07:37 UTC 2021
There can be more than one CPU nodes. Patch memory width
and clock info for all CPU nodes, instead of only the first
one.
Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index 9be66ba..e982829 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -1073,10 +1073,10 @@ int kfd_topology_init(void)
if (cpu_only_node) {
/* Add additional information to CPU only node created above */
down_write(&topology_lock);
- kdev = list_first_entry(&topology_device_list,
- struct kfd_topology_device, list);
+ list_for_each_entry(kdev, &topology_device_list, list) {
+ kfd_add_non_crat_information(kdev);
+ }
up_write(&topology_lock);
- kfd_add_non_crat_information(kdev);
}
err:
--
2.7.4
More information about the amd-gfx
mailing list