Skip to contentSkip to conversation

drm/amdgpu: Show XGMI node and hive message per device only once

PATCH In review Liu, Shaoyun 2 participants 2 messages Jan 28, 2019 1 message not in the archive

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

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
---
 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
index dac18745..0d90672d 100644
@@ -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

Acked-by
#2 lore raw
Quoted 5 lines · Shaoyun

Reduce the unnecessary repeat node and hive information during XGMI initialization

Change-Id I1c1e4dadf9d771cde53225666b9a10ceca9167c0
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
index dac18745..0d90672d 100644
@@ -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