Commit 9788d087 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher
Browse files

drm/amd/display: improve the message printed when loading DC



[Why&How]
Change how DC version and hardware version is printed when driver is
loaded.

- Remove exclamation
- Add DC version and hardware version to both success and failure cases
- Add version in between appropriate filler words to make a complete
  statement.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Acked-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b336c681
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1667,10 +1667,11 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
	adev->dm.dc = dc_create(&init_data);

	if (adev->dm.dc) {
		DRM_INFO("Display Core initialized with v%s! %s\n", DC_VER,
		DRM_INFO("Display Core v%s initialized on %s\n", DC_VER,
			 dce_version_to_string(adev->dm.dc->ctx->dce_version));
	} else {
		DRM_INFO("Display Core failed to initialize with v%s!\n", DC_VER);
		DRM_INFO("Display Core v%s failed to initialize on %s\n", DC_VER,
			 dce_version_to_string(adev->dm.dc->ctx->dce_version));
		goto error;
	}