drm/amd/display: Print DC_VER at DC init
authorHarry Wentland <harry.wentland@amd.com>
Tue, 21 Nov 2017 18:19:32 +0000 (13:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:55:16 +0000 (10:55 -0500)
This has proven helpful on other OSes to give a quick state of the
DC driver when a bug is reported.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index ccbf10e..8e76219 100644 (file)
@@ -431,9 +431,9 @@ 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!\n");
+               DRM_INFO("Display Core initialized with v%s!\n", DC_VER);
        } else {
-               DRM_INFO("Display Core failed to initialize!\n");
+               DRM_INFO("Display Core failed to initialize with v%s!\n", DC_VER);
                goto error;
        }