At bootup on a Strix machine the following message comes up:
```
amdgpu: Topology: Add dGPU node [0x150e:0x1002]
```

This is an APU though. Clarify the messaging by only offer a
"CPU node" or "GPU node" message. Also set the message as
VID:DID instead which is how other messages work.

Signed-off-by: Mario Limonciello (AMD) <[email protected]>
---
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c 
b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index a0990dd2378c1..2b8455d23ed19 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -931,17 +931,12 @@ static void kfd_debug_print_topology(void)
        dev = list_last_entry(&topology_device_list,
                        struct kfd_topology_device, list);
        if (dev) {
-               if (dev->node_props.cpu_cores_count &&
-                               dev->node_props.simd_count) {
-                       pr_info("Topology: Add APU node [0x%0x:0x%0x]\n",
-                               dev->node_props.device_id,
-                               dev->node_props.vendor_id);
-               } else if (dev->node_props.cpu_cores_count)
+               if (dev->node_props.cpu_cores_count)
                        pr_info("Topology: Add CPU node\n");
-               else if (dev->node_props.simd_count)
-                       pr_info("Topology: Add dGPU node [0x%0x:0x%0x]\n",
-                               dev->node_props.device_id,
-                               dev->node_props.vendor_id);
+               else
+                       pr_info("Topology: Add GPU node [0x%0x:0x%0x]\n",
+                               dev->node_props.vendor_id,
+                               dev->node_props.device_id);
        }
        up_read(&topology_lock);
 }
-- 
2.43.0

Reply via email to