diff options
author | shaoyunl <shaoyun.liu@amd.com> | 2019-01-28 11:54:35 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-29 15:16:18 -0500 |
commit | 47dd8048a1bf5b2fb96e5abe99b4f1dcd208ea4d (patch) | |
tree | 420a8577843baea66d4797d80945f9325738bad3 /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | |
parent | 193392ed9f6953713957c14045be1e920519870d (diff) |
drm/amdgpu: Show XGMI node and hive message per device only once
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index dac187454b33..0d90672d0e58 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | |||
@@ -91,10 +91,6 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev | |||
91 | "XGMI: Set topology failure on device %llx, hive %llx, ret %d", | 91 | "XGMI: Set topology failure on device %llx, hive %llx, ret %d", |
92 | adev->gmc.xgmi.node_id, | 92 | adev->gmc.xgmi.node_id, |
93 | adev->gmc.xgmi.hive_id, ret); | 93 | adev->gmc.xgmi.hive_id, ret); |
94 | else | ||
95 | dev_info(adev->dev, "XGMI: Set topology for node %d, hive 0x%llx.\n", | ||
96 | adev->gmc.xgmi.physical_node_id, | ||
97 | adev->gmc.xgmi.hive_id); | ||
98 | 94 | ||
99 | return ret; | 95 | return ret; |
100 | } | 96 | } |
@@ -160,6 +156,9 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev) | |||
160 | break; | 156 | break; |
161 | } | 157 | } |
162 | 158 | ||
159 | dev_info(adev->dev, "XGMI: Add node %d, hive 0x%llx.\n", | ||
160 | adev->gmc.xgmi.physical_node_id, adev->gmc.xgmi.hive_id); | ||
161 | |||
163 | mutex_unlock(&hive->hive_lock); | 162 | mutex_unlock(&hive->hive_lock); |
164 | exit: | 163 | exit: |
165 | return ret; | 164 | return ret; |