]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu: Show XGMI node and hive message per device only once
authorshaoyunl <shaoyun.liu@amd.com>
Mon, 28 Jan 2019 16:54:35 +0000 (11:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Jan 2019 20:16:18 +0000 (15:16 -0500)
Reduce the repeated node and hive information during XGMI initialization

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c

index dac187454b3359cd38508f88319b25ebe8f21d45..0d90672d0e58481c5f9805582ac63ef5beb7e828 100644 (file)
@@ -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;