@@ -1503,8 +1503,6 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
15031503 case IP_VERSION (3 , 0 , 1 ):
15041504 case IP_VERSION (3 , 1 , 2 ):
15051505 case IP_VERSION (3 , 1 , 3 ):
1506- case IP_VERSION (3 , 1 , 4 ):
1507- case IP_VERSION (3 , 1 , 5 ):
15081506 case IP_VERSION (3 , 1 , 6 ):
15091507 init_data .flags .gpu_vm_support = true;
15101508 break ;
@@ -1730,10 +1728,6 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)
17301728 adev -> dm .vblank_control_workqueue = NULL ;
17311729 }
17321730
1733- for (i = 0 ; i < adev -> dm .display_indexes_num ; i ++ ) {
1734- drm_encoder_cleanup (& adev -> dm .mst_encoders [i ].base );
1735- }
1736-
17371731 amdgpu_dm_destroy_drm_device (& adev -> dm );
17381732
17391733#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY )
@@ -5311,8 +5305,6 @@ static void fill_stream_properties_from_drm_display_mode(
53115305
53125306 timing_out -> aspect_ratio = get_aspect_ratio (mode_in );
53135307
5314- stream -> output_color_space = get_output_color_space (timing_out );
5315-
53165308 stream -> out_transfer_func -> type = TF_TYPE_PREDEFINED ;
53175309 stream -> out_transfer_func -> tf = TRANSFER_FUNCTION_SRGB ;
53185310 if (stream -> signal == SIGNAL_TYPE_HDMI_TYPE_A ) {
@@ -5323,6 +5315,8 @@ static void fill_stream_properties_from_drm_display_mode(
53235315 adjust_colour_depth_from_display_info (timing_out , info );
53245316 }
53255317 }
5318+
5319+ stream -> output_color_space = get_output_color_space (timing_out );
53265320}
53275321
53285322static void fill_audio_info (struct audio_info * audio_info ,
@@ -9530,8 +9524,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
95309524 goto fail ;
95319525 }
95329526
9533- if (dm_old_con_state -> abm_level !=
9534- dm_new_con_state -> abm_level )
9527+ if (dm_old_con_state -> abm_level != dm_new_con_state -> abm_level ||
9528+ dm_old_con_state -> scaling != dm_new_con_state -> scaling )
95359529 new_crtc_state -> connectors_changed = true;
95369530 }
95379531
0 commit comments