drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not set
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not set
Need to guard some things with CONFIG_DRM_AMD_DC_DCN.
Fixes 0c865d1d817b77 ("drm/amd/display: fix link training regression for 1 or 2 lane")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +7 -4
@@ -840,9 +840,11 @@ static void override_lane_settings(const struct link_training_settings *lt_settiuint32_t lane;if (lt_settings->voltage_swing ==NULL && - lt_settings->pre_emphasis ==NULL && - lt_settings->ffe_preset ==NULL && - lt_settings->post_cursor2 ==NULL ) + lt_settings->pre_emphasis ==NULL && +#if defined(CONFIG_DRM_AMD_DC_DCN) + lt_settings->ffe_preset ==NULL && +#endif + lt_settings->post_cursor2 == NULL) return;
@@ -853,9 +855,10 @@ static void override_lane_settings(const struct link_training_settings *lt_setti lane_settings[lane].PRE_EMPHASIS = *lt_settings->pre_emphasis;if (lt_settings->post_cursor2) lane_settings[lane].POST_CURSOR2 = *lt_settings->post_cursor2; - +#if defined(CONFIG_DRM_AMD_DC_DCN )if (lt_settings->ffe_preset) lane_settings[lane].FFE_PRESET = *lt_settings->ffe_preset; +#endif } }
Signature · 1 line
2.31.1
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not set
Need to guard some things with CONFIG_DRM_AMD_DC_DCN.
Fixes 707021dc0e16f6 ("drm/amd/display: Enable dpia in dmub only for DCN31 B0")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -0
@@ -1108,7 +1108,9 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)case CHIP_YELLOW_CARP :if (dc->ctx->asic_id.hw_internal_rev !=YELLOW_CARP_A0 ) { hw_params.dpia_supported = true; +#if defined(CONFIG_DRM_AMD_DC_DCN ) hw_params.disable_dpia = dc->debug.dpia_debug.bits.disable_dpia; +#endif }break ;default :
Signature · 1 line
2.31.1
ping
Quoted 26 lines · Alex Deucher
Need to guard some things with
CONFIG_DRM_AMD_DC_DCN.Fixes 707021dc0e16f6 ("drm/amd/display: Enable dpia in dmub only for DCN31 B0")Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2
-1@@ -1108,7 +1108,9 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)case CHIP_YELLOW_CARP :if (dc->ctx->asic_id.hw_internal_rev !=YELLOW_CARP_A0 ) { hw_params.dpia_supported = true; +#if defined(CONFIG_DRM_AMD_DC_DCN ) hw_params.disable_dpia = dc->debug.dpia_debug.bits.disable_dpia; +#endif }break ;default : --2.31.1
Kazlauskas, Nicholas
Reviewed-byQuoted 8 lines · Alex Deucher
ping
Quoted 5 lines · Alex Deucher
Need to guard some things with
CONFIG_DRM_AMD_DC_DCN.Fixes 707021dc0e16f6 ("drm/amd/display: Enable dpia in dmub only for DCN31 B0")Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Nicholas Kazlauskas <[email protected]>
Though this whole function could be guarded by DCN, DMUB doesn't exist on DCE.
Regards,
Nicholas Kazlauskas
Quoted 21 lines
Quoted 21 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2
-1@@ -1108,7 +1108,9 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)case CHIP_YELLOW_CARP :if (dc->ctx->asic_id.hw_internal_rev !=YELLOW_CARP_A0 ) { hw_params.dpia_supported = true; +#if defined(CONFIG_DRM_AMD_DC_DCN ) hw_params.disable_dpia = dc->debug.dpia_debug.bits.disable_dpia; +#endif }break ;default : --2.31.1
Ping
Quoted 43 lines · Alex Deucher
Need to guard some things with
CONFIG_DRM_AMD_DC_DCN.Fixes 0c865d1d817b77 ("drm/amd/display: fix link training regression for 1 or 2 lane")Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +7
-5@@ -840,9 +840,11 @@ static void override_lane_settings(const struct link_training_settings *lt_settiuint32_t lane;if (lt_settings->voltage_swing ==NULL && - lt_settings->pre_emphasis ==NULL && - lt_settings->ffe_preset ==NULL && - lt_settings->post_cursor2 ==NULL ) + lt_settings->pre_emphasis ==NULL && +#if defined(CONFIG_DRM_AMD_DC_DCN) + lt_settings->ffe_preset ==NULL && +#endif + lt_settings->post_cursor2 == NULL) return;@@ -853,9 +855,10 @@ static void override_lane_settings(const struct link_training_settings *lt_setti lane_settings[lane].PRE_EMPHASIS = *lt_settings->pre_emphasis;if (lt_settings->post_cursor2) lane_settings[lane].POST_CURSOR2 = *lt_settings->post_cursor2; - +#if defined(CONFIG_DRM_AMD_DC_DCN )if (lt_settings->ffe_preset) lane_settings[lane].FFE_PRESET = *lt_settings->ffe_preset; +#endif } } --2.31.1
Kazlauskas, Nicholas
Reviewed-byQuoted 8 lines · Alex Deucher
Ping
Quoted 5 lines · Alex Deucher
Need to guard some things with
CONFIG_DRM_AMD_DC_DCN.Fixes 0c865d1d817b77 ("drm/amd/display: fix link training regression for 1 or 2 lane")Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Nicholas Kazlauskas <[email protected]>
Regards,
Nicholas Kazlauskas
Quoted 38 lines
Quoted 38 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +7
-5@@ -840,9 +840,11 @@ static void override_lane_settings(const struct link_training_settings *lt_settiuint32_t lane;if (lt_settings->voltage_swing ==NULL && - lt_settings->pre_emphasis ==NULL && - lt_settings->ffe_preset ==NULL && - lt_settings->post_cursor2 ==NULL ) + lt_settings->pre_emphasis ==NULL && +#if defined(CONFIG_DRM_AMD_DC_DCN) + lt_settings->ffe_preset ==NULL && +#endif + lt_settings->post_cursor2 == NULL) return;@@ -853,9 +855,10 @@ static void override_lane_settings(const struct link_training_settings *lt_setti lane_settings[lane].PRE_EMPHASIS = *lt_settings->pre_emphasis;if (lt_settings->post_cursor2) lane_settings[lane].POST_CURSOR2 = *lt_settings->post_cursor2; - +#if defined(CONFIG_DRM_AMD_DC_DCN )if (lt_settings->ffe_preset) lane_settings[lane].FFE_PRESET = *lt_settings->ffe_preset; +#endif } } --2.31.1