Enable DP MST encoders for SKL
Subsystems (2)
cover Enable DP MST encoders for SKL
The programming seems fairly similar to previous platforms, so let's create the DP encoders on SKL as well.
Signature · 17 lines
Damien Damien Lespiau (2): drm/i915: Consolidate DDI clock reading out in a single function drm/i915/skl: Skylake also supports DP MST drivers/gpu/drm/i915/intel_ddi.c | 13 +++++++------ drivers/gpu/drm/i915/intel_dp.c | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/2 drm/i915: Consolidate DDI clock reading out in a single function
2 pieces of code need to read out the DDI clock: the DDI encoder and the MST encoder .get_config() vfuncs.
Until now the SKL read out code was only in the former, so let's move the pre and post SKL logic in intel_ddi_clock_get() and this this one everywhere.
--- drivers/gpu/drm/i915/intel_ddi.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/intel_ddi.c +7 -6
@@ -834,7 +834,12 @@ static void hsw_ddi_clock_get(struct intel_encoder *encoder,void intel_ddi_clock_get (struct intel_encoder *encoder,struct intel_crtc_config *pipe_config) { -hsw_ddi_clock_get (encoder, pipe_config); +struct drm_device *dev = encoder->base.dev; + +if (INTEL_INFO (dev)->gen <=8 ) +hsw_ddi_clock_get (encoder, pipe_config); +else +skl_ddi_clock_get (encoder, pipe_config); } static void
@@ -2029,7 +2034,6 @@ void intel_ddi_get_config(struct intel_encoder *encoder,enum transcoder cpu_transcoder = intel_crtc->config.cpu_transcoder;struct intel_hdmi *intel_hdmi;u32 temp, flags =0 ; -struct drm_device *dev = dev_priv->dev; temp =I915_READ (TRANS_DDI_FUNC_CTL (cpu_transcoder));if (temp &TRANS_DDI_PHSYNC )
@@ -2106,10 +2110,7 @@ void intel_ddi_get_config(struct intel_encoder *encoder, dev_priv->vbt.edp_bpp = pipe_config->pipe_bpp; } -if (INTEL_INFO (dev)->gen <=8 ) -hsw_ddi_clock_get (encoder, pipe_config); -else -skl_ddi_clock_get (encoder, pipe_config); +intel_ddi_clock_get (encoder, pipe_config); }static void intel_ddi_destroy (struct drm_encoder *encoder)
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915/skl: Skylake also supports DP MST
In reply to Damien LespiauI've checked that TRANS_DDI_MODE, DP_TP_CTL MST bits are identical to HSW/BDW on SKL, as well as the long vs short HPD bits. So we have a good chance to be working as well as prevous platforms.
--- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_dp.c +1 -1
@@ -5085,7 +5085,7 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,intel_dp_aux_init (intel_dp, intel_connector);/* init MST on ports that can support it */ -if (IS_HASWELL (dev) ||IS_BROADWELL (dev)) { +if (IS_HASWELL (dev) ||IS_BROADWELL (dev) ||INTEL_INFO (dev)->gen >=9 ) {if (port ==PORT_B || port ==PORT_C || port ==PORT_D ) {intel_dp_mst_encoder_init (intel_dig_port, intel_connector->base.base.id);
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/skl: Skylake also supports DP MST
-------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 364/364 364/364
ILK +3-2 362/366 363/366
SNB 448/450 448/450 IVB 497/498 497/498 BYT -2 289/289 287/289 HSW -1 563/564 562/564 BDW 417/417 417/417 -------------------------------------Detailed------------------------------------- Platform Test drm-intel-nightly Series Applied ILK igt_kms_flip_nonexisting-fb DMESG_WARN(1, M26)PASS(4, M37M26) PASS(1, M26) ILK igt_kms_flip_rcs-flip-vs-panning-interruptible DMESG_WARN(2, M26)PASS(3, M37M26) PASS(1, M26) ILK igt_kms_flip_rcs-wf_vblank-vs-dpms-interruptible DMESG_WARN(1, M26)PASS(3, M26M37) PASS(1, M26) *ILK igt_kms_flip_plain-flip-ts-check-interruptible PASS(2, M26) DMESG_WARN(1, M26) *ILK igt_kms_flip_wf_vblank-ts-check PASS(2, M26) DMESG_WARN(1, M26) *BYT igt_drm_import_export_flink PASS(2, M48M50) DMESG_WARN(1, M50) *BYT igt_drm_vma_limiter_gtt PASS(2, M48M50) TIMEOUT(1, M50) *HSW igt_gem_concurrent_blit_gpu-rcs-overwrite-source-forked PASS(2, M40M19) DMESG_WARN(1, M19)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/skl: Skylake also supports DP MST
In reply to Damien LespiauQuoted 5 lines · Damien Lespiau
I've checked that
TRANS_DDI_MODE,DP_TP_CTLMST bits are identical to HSW/BDW on SKL, as well as the long vs short HPD bits. So we have a good chance to be working as well as prevous platforms.Signed-off-by Damien Lespiau <[email protected]>
Seems like it should work to me, right until you release a gen 9 that doesn't do MST,
but hopefully that won't happen, since 4k might matter even for the atom chipsets.
Quoted 8 lines
drivers/gpu/drm/i915/intel_dp.c +1
-2-if (IS_HASWELL (dev) ||IS_BROADWELL (dev)) { +if (IS_HASWELL (dev) ||IS_BROADWELL (dev) ||INTEL_INFO (dev)->gen >=9 ) {if (port ==PORT_B || port ==PORT_C || port ==PORT_D ) {intel_dp_mst_encoder_init (intel_dig_port, intel_connector->base.base.id); --1.8.3.1
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/skl: Skylake also supports DP MST
In reply to Damien LespiauQuoted 14 lines · Damien Lespiau
I've checked that
TRANS_DDI_MODE,DP_TP_CTLMST bits are identical to HSW/BDW on SKL, as well as the long vs short HPD bits. So we have a good chance to be working as well as prevous platforms.Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_dp.c +0
-0
drivers/gpu/drm/i915/intel_dp.c intel_dp_init_connector(struct intel_digital_port *intel_dig_port, · line 5088
Quoted 5 lines
drivers/gpu/drm/i915/intel_dp.c +1
-1@@ -5085,7 +5085,7 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,intel_dp_aux_init (intel_dp, intel_connector);/* init MST on ports that can support it */ -if (IS_HASWELL (dev) ||IS_BROADWELL (dev)) { +if (IS_HASWELL (dev) ||IS_BROADWELL (dev) ||INTEL_INFO (dev)->gen >=9 ) {
HAS_DDI might be a nice bikeshed here if you're bored. Applied both to dinq.
Thanks, Daniel
Quoted 10 lines
drivers/gpu/drm/i915/intel_dp.c +0
-0if (port ==PORT_B || port ==PORT_C || port ==PORT_D ) {intel_dp_mst_encoder_init (intel_dig_port, intel_connector->base.base.id);Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx