drm/amdgpu: Show XGMI node and hive message per device only once
Subsystems (2)
PATCH 1/1 drm/amdgpu: Show XGMI node and hive message per device only once
Reduce the unnecessary repeat node and hive information during XGMI initialization
Change-Id I1c1e4dadf9d771cde53225666b9a10ceca9167c0
Signed-off-by shaoyunl <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3 -4
@@ -91,10 +91,6 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev"XGMI: Set topology failure on device %llx, hive %llx, ret %d" , adev->gmc.xgmi.node_id, adev->gmc.xgmi.hive_id, ret); - else - dev_info(adev->dev, "XGMI: Set topology for node %d, hive 0x%llx.\n", - adev->gmc.xgmi.physical_node_id, - adev->gmc.xgmi.hive_id);return ret; }
@@ -160,6 +156,9 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)break ; } +dev_info (adev->dev,"XGMI: Add node %d, hive 0x%llx.\n" , + adev->gmc.xgmi.physical_node_id, adev->gmc.xgmi.hive_id); +mutex_unlock (&hive->hive_lock); exit:return ret;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1548694952-1002-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 5 lines · Shaoyun
Reduce the unnecessary repeat node and hive information during XGMI initialization
Change-Id I1c1e4dadf9d771cde53225666b9a10ceca9167c0Signed-off-by shaoyunl <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 32 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3
-5@@ -91,10 +91,6 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev"XGMI: Set topology failure on device %llx, hive %llx, ret %d" , adev->gmc.xgmi.node_id, adev->gmc.xgmi.hive_id, ret); - else - dev_info(adev->dev, "XGMI: Set topology for node %d, hive 0x%llx.\n", - adev->gmc.xgmi.physical_node_id, - adev->gmc.xgmi.hive_id);return ret; }@@ -160,6 +156,9 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)break ; } +dev_info (adev->dev,"XGMI: Add node %d, hive 0x%llx.\n" , + adev->gmc.xgmi.physical_node_id, adev->gmc.xgmi.hive_id); +mutex_unlock (&hive->hive_lock); exit:return ret; --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx