diff options
author | wentalou <Wentao.Lou@amd.com> | 2019-01-02 02:56:27 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:49 -0500 |
commit | 0aaeefccb4d717b001d64a75ac1141914e928869 (patch) | |
tree | 98a0f6155087336ededc614443a6244044116ac3 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 7df7e505e82a2b39e80159234f8556e1e46f9341 (diff) |
drm/amdgpu: distinguish early and late re-init log in sriov
distinguish ip_reinit_early_sriov and ip_reinit_late_sriov
by different log RE-INIT-early and RE-INIT-late
Signed-off-by: Wentao Lou <Wentao.Lou@amd.com>
Reviewed-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_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 7ff3a28fc903..03b73c562bc8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2133,7 +2133,7 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev) | |||
2133 | continue; | 2133 | continue; |
2134 | 2134 | ||
2135 | r = block->version->funcs->hw_init(adev); | 2135 | r = block->version->funcs->hw_init(adev); |
2136 | DRM_INFO("RE-INIT: %s %s\n", block->version->funcs->name, r?"failed":"succeeded"); | 2136 | DRM_INFO("RE-INIT-early: %s %s\n", block->version->funcs->name, r?"failed":"succeeded"); |
2137 | if (r) | 2137 | if (r) |
2138 | return r; | 2138 | return r; |
2139 | } | 2139 | } |
@@ -2167,7 +2167,7 @@ static int amdgpu_device_ip_reinit_late_sriov(struct amdgpu_device *adev) | |||
2167 | continue; | 2167 | continue; |
2168 | 2168 | ||
2169 | r = block->version->funcs->hw_init(adev); | 2169 | r = block->version->funcs->hw_init(adev); |
2170 | DRM_INFO("RE-INIT: %s %s\n", block->version->funcs->name, r?"failed":"succeeded"); | 2170 | DRM_INFO("RE-INIT-late: %s %s\n", block->version->funcs->name, r?"failed":"succeeded"); |
2171 | if (r) | 2171 | if (r) |
2172 | return r; | 2172 | return r; |
2173 | } | 2173 | } |