diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-05-05 10:23:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-11 12:31:26 -0400 |
commit | 822b2cef4d9ffe680b880ec39734ad8a1d178b02 (patch) | |
tree | 74c362f7f5086287e2bb9e5db23f3f264da88f82 /drivers/gpu/drm/amd/amdgpu | |
parent | 88a907d67c03e80a71c49681bbccf3bfebe74ab4 (diff) |
drm/amd/amdgpu: Added more named DRM info messages for debugging
Signed-off-by: Tom St Denis <tom.stdenis@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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 5889c897b6ab..bb8b149786d7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1219,7 +1219,7 @@ static int amdgpu_init(struct amdgpu_device *adev) | |||
1219 | continue; | 1219 | continue; |
1220 | r = adev->ip_blocks[i].funcs->sw_init((void *)adev); | 1220 | r = adev->ip_blocks[i].funcs->sw_init((void *)adev); |
1221 | if (r) { | 1221 | if (r) { |
1222 | DRM_ERROR("sw_init %d failed %d\n", i, r); | 1222 | DRM_ERROR("sw_init of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1223 | return r; | 1223 | return r; |
1224 | } | 1224 | } |
1225 | adev->ip_block_status[i].sw = true; | 1225 | adev->ip_block_status[i].sw = true; |
@@ -1252,7 +1252,7 @@ static int amdgpu_init(struct amdgpu_device *adev) | |||
1252 | continue; | 1252 | continue; |
1253 | r = adev->ip_blocks[i].funcs->hw_init((void *)adev); | 1253 | r = adev->ip_blocks[i].funcs->hw_init((void *)adev); |
1254 | if (r) { | 1254 | if (r) { |
1255 | DRM_ERROR("hw_init %d failed %d\n", i, r); | 1255 | DRM_ERROR("hw_init of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1256 | return r; | 1256 | return r; |
1257 | } | 1257 | } |
1258 | adev->ip_block_status[i].hw = true; | 1258 | adev->ip_block_status[i].hw = true; |
@@ -1272,13 +1272,13 @@ static int amdgpu_late_init(struct amdgpu_device *adev) | |||
1272 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, | 1272 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, |
1273 | AMD_CG_STATE_GATE); | 1273 | AMD_CG_STATE_GATE); |
1274 | if (r) { | 1274 | if (r) { |
1275 | DRM_ERROR("set_clockgating_state(gate) %d failed %d\n", i, r); | 1275 | DRM_ERROR("set_clockgating_state(gate) of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1276 | return r; | 1276 | return r; |
1277 | } | 1277 | } |
1278 | if (adev->ip_blocks[i].funcs->late_init) { | 1278 | if (adev->ip_blocks[i].funcs->late_init) { |
1279 | r = adev->ip_blocks[i].funcs->late_init((void *)adev); | 1279 | r = adev->ip_blocks[i].funcs->late_init((void *)adev); |
1280 | if (r) { | 1280 | if (r) { |
1281 | DRM_ERROR("late_init %d failed %d\n", i, r); | 1281 | DRM_ERROR("late_init of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1282 | return r; | 1282 | return r; |
1283 | } | 1283 | } |
1284 | } | 1284 | } |
@@ -1302,13 +1302,13 @@ static int amdgpu_fini(struct amdgpu_device *adev) | |||
1302 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, | 1302 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, |
1303 | AMD_CG_STATE_UNGATE); | 1303 | AMD_CG_STATE_UNGATE); |
1304 | if (r) { | 1304 | if (r) { |
1305 | DRM_ERROR("set_clockgating_state(ungate) %d failed %d\n", i, r); | 1305 | DRM_ERROR("set_clockgating_state(ungate) of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1306 | return r; | 1306 | return r; |
1307 | } | 1307 | } |
1308 | r = adev->ip_blocks[i].funcs->hw_fini((void *)adev); | 1308 | r = adev->ip_blocks[i].funcs->hw_fini((void *)adev); |
1309 | /* XXX handle errors */ | 1309 | /* XXX handle errors */ |
1310 | if (r) { | 1310 | if (r) { |
1311 | DRM_DEBUG("hw_fini %d failed %d\n", i, r); | 1311 | DRM_DEBUG("hw_fini of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1312 | } | 1312 | } |
1313 | adev->ip_block_status[i].hw = false; | 1313 | adev->ip_block_status[i].hw = false; |
1314 | } | 1314 | } |
@@ -1319,7 +1319,7 @@ static int amdgpu_fini(struct amdgpu_device *adev) | |||
1319 | r = adev->ip_blocks[i].funcs->sw_fini((void *)adev); | 1319 | r = adev->ip_blocks[i].funcs->sw_fini((void *)adev); |
1320 | /* XXX handle errors */ | 1320 | /* XXX handle errors */ |
1321 | if (r) { | 1321 | if (r) { |
1322 | DRM_DEBUG("sw_fini %d failed %d\n", i, r); | 1322 | DRM_DEBUG("sw_fini of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1323 | } | 1323 | } |
1324 | adev->ip_block_status[i].sw = false; | 1324 | adev->ip_block_status[i].sw = false; |
1325 | adev->ip_block_status[i].valid = false; | 1325 | adev->ip_block_status[i].valid = false; |
@@ -1347,14 +1347,14 @@ static int amdgpu_suspend(struct amdgpu_device *adev) | |||
1347 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, | 1347 | r = adev->ip_blocks[i].funcs->set_clockgating_state((void *)adev, |
1348 | AMD_CG_STATE_UNGATE); | 1348 | AMD_CG_STATE_UNGATE); |
1349 | if (r) { | 1349 | if (r) { |
1350 | DRM_ERROR("set_clockgating_state(ungate) %d failed %d\n", i, r); | 1350 | DRM_ERROR("set_clockgating_state(ungate) of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1351 | } | 1351 | } |
1352 | } | 1352 | } |
1353 | /* XXX handle errors */ | 1353 | /* XXX handle errors */ |
1354 | r = adev->ip_blocks[i].funcs->suspend(adev); | 1354 | r = adev->ip_blocks[i].funcs->suspend(adev); |
1355 | /* XXX handle errors */ | 1355 | /* XXX handle errors */ |
1356 | if (r) { | 1356 | if (r) { |
1357 | DRM_ERROR("suspend %d failed %d\n", i, r); | 1357 | DRM_ERROR("suspend of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1358 | } | 1358 | } |
1359 | } | 1359 | } |
1360 | 1360 | ||
@@ -1370,7 +1370,7 @@ static int amdgpu_resume(struct amdgpu_device *adev) | |||
1370 | continue; | 1370 | continue; |
1371 | r = adev->ip_blocks[i].funcs->resume(adev); | 1371 | r = adev->ip_blocks[i].funcs->resume(adev); |
1372 | if (r) { | 1372 | if (r) { |
1373 | DRM_ERROR("resume %d failed %d\n", i, r); | 1373 | DRM_ERROR("resume of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1374 | return r; | 1374 | return r; |
1375 | } | 1375 | } |
1376 | } | 1376 | } |