Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: Correct the topology message for APUs

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) <superm1@kernel.org>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Limonciello (AMD) and committed by
Alex Deucher
5847cf1a 31dc58ad

+5 -10
+5 -10
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
··· 931 931 dev = list_last_entry(&topology_device_list, 932 932 struct kfd_topology_device, list); 933 933 if (dev) { 934 - if (dev->node_props.cpu_cores_count && 935 - dev->node_props.simd_count) { 936 - pr_info("Topology: Add APU node [0x%0x:0x%0x]\n", 937 - dev->node_props.device_id, 938 - dev->node_props.vendor_id); 939 - } else if (dev->node_props.cpu_cores_count) 934 + if (dev->node_props.cpu_cores_count) 940 935 pr_info("Topology: Add CPU node\n"); 941 - else if (dev->node_props.simd_count) 942 - pr_info("Topology: Add dGPU node [0x%0x:0x%0x]\n", 943 - dev->node_props.device_id, 944 - dev->node_props.vendor_id); 936 + else 937 + pr_info("Topology: Add GPU node [0x%0x:0x%0x]\n", 938 + dev->node_props.vendor_id, 939 + dev->node_props.device_id); 945 940 } 946 941 up_read(&topology_lock); 947 942 }