* [PATCH] Revert "drm/i915: Track active streams also for DP SST"
@ 2016-08-05 16:05 ville.syrjala
2016-08-05 16:14 ` Chris Wilson
2016-08-05 16:29 ` ✗ Ro.CI.BAT: failure for " Patchwork
0 siblings, 2 replies; 4+ messages in thread
From: ville.syrjala @ 2016-08-05 16:05 UTC (permalink / raw)
To: intel-gfx
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
This reverts commit f64425a82bdb5c3d7e09ba765716da88a9b00eec.
active_streams will get totally out of whack with SST unless we
sync up with the hw state at readout, obviously! We don't yet
do that, so now the WARNs fire all the time. Let's revert :(
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/intel_ddi.c | 10 ----------
drivers/gpu/drm/i915/intel_dp.c | 8 +-------
drivers/gpu/drm/i915/intel_dp_mst.c | 16 ++++++++--------
drivers/gpu/drm/i915/intel_drv.h | 2 +-
4 files changed, 10 insertions(+), 26 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index b8f729a176ff..c2df4e429b19 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1641,9 +1641,6 @@ static void intel_ddi_pre_enable(struct intel_encoder *intel_encoder)
intel_ddi_init_dp_buf_reg(intel_encoder);
- WARN_ON(intel_dp->active_streams != 0);
- intel_dp->active_streams++;
-
intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON);
intel_dp_start_link_train(intel_dp);
if (port != PORT_A || INTEL_INFO(dev_priv)->gen >= 9)
@@ -1770,13 +1767,6 @@ static void intel_disable_ddi(struct intel_encoder *intel_encoder)
intel_psr_disable(intel_dp);
intel_edp_backlight_off(intel_dp);
}
-
- if (type == INTEL_OUTPUT_DP || type == INTEL_OUTPUT_EDP) {
- struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
-
- intel_dp->active_streams--;
- WARN_ON(intel_dp->active_streams != 0);
- }
}
bool bxt_ddi_phy_is_enabled(struct drm_i915_private *dev_priv,
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 0aadc65ff035..8fe2afa5439e 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2685,9 +2685,6 @@ static void intel_enable_dp(struct intel_encoder *encoder)
lane_mask);
}
- WARN_ON(intel_dp->active_streams != 0);
- intel_dp->active_streams++;
-
intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON);
intel_dp_start_link_train(intel_dp);
intel_dp_stop_link_train(intel_dp);
@@ -3347,9 +3344,6 @@ intel_dp_link_down(struct intel_dp *intel_dp)
DRM_DEBUG_KMS("\n");
- intel_dp->active_streams--;
- WARN_ON(intel_dp->active_streams != 0);
-
if ((IS_GEN7(dev) && port == PORT_A) ||
(HAS_PCH_CPT(dev) && port != PORT_A)) {
DP &= ~DP_LINK_TRAIN_MASK_CPT;
@@ -3851,7 +3845,7 @@ go_again:
if (bret == true) {
/* check link status - esi[10] = 0x200c */
- if (intel_dp->active_streams &&
+ if (intel_dp->active_mst_links &&
!drm_dp_channel_eq_ok(&esi[10], intel_dp->lane_count)) {
DRM_DEBUG_KMS("channel EQ not ok, retraining\n");
intel_dp_start_link_train(intel_dp);
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index 0beca9197a1f..629337dbca3d 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -99,7 +99,7 @@ static void intel_mst_disable_dp(struct intel_encoder *encoder)
struct intel_dp *intel_dp = &intel_dig_port->dp;
int ret;
- DRM_DEBUG_KMS("%d\n", intel_dp->active_streams);
+ DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
drm_dp_mst_reset_vcpi_slots(&intel_dp->mst_mgr, intel_mst->connector->port);
@@ -115,7 +115,7 @@ static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
struct intel_digital_port *intel_dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp;
- DRM_DEBUG_KMS("%d\n", intel_dp->active_streams);
+ DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
/* this can fail */
drm_dp_check_act_status(&intel_dp->mst_mgr);
@@ -124,10 +124,10 @@ static void intel_mst_post_disable_dp(struct intel_encoder *encoder)
drm_dp_mst_deallocate_vcpi(&intel_dp->mst_mgr, intel_mst->connector->port);
- intel_dp->active_streams--;
+ intel_dp->active_mst_links--;
intel_mst->connector = NULL;
- if (intel_dp->active_streams == 0) {
+ if (intel_dp->active_mst_links == 0) {
intel_dig_port->base.post_disable(&intel_dig_port->base);
intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
}
@@ -165,11 +165,11 @@ static void intel_mst_pre_enable_dp(struct intel_encoder *encoder)
*/
found->encoder = encoder;
- DRM_DEBUG_KMS("%d\n", intel_dp->active_streams);
+ DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
intel_mst->connector = found;
- if (intel_dp->active_streams == 0) {
+ if (intel_dp->active_mst_links == 0) {
intel_ddi_clk_select(&intel_dig_port->base, intel_crtc->config);
intel_prepare_dp_ddi_buffers(&intel_dig_port->base);
@@ -193,7 +193,7 @@ static void intel_mst_pre_enable_dp(struct intel_encoder *encoder)
}
- intel_dp->active_streams++;
+ intel_dp->active_mst_links++;
temp = I915_READ(DP_TP_STATUS(port));
I915_WRITE(DP_TP_STATUS(port), temp);
@@ -210,7 +210,7 @@ static void intel_mst_enable_dp(struct intel_encoder *encoder)
enum port port = intel_dig_port->port;
int ret;
- DRM_DEBUG_KMS("%d\n", intel_dp->active_streams);
+ DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
if (intel_wait_for_register(dev_priv,
DP_TP_STATUS(port),
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index e54e6c205f41..1ad2e2c5f580 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -894,7 +894,7 @@ struct intel_dp {
bool can_mst; /* this port supports mst */
bool is_mst;
- int active_streams; /* number of active streams (for SST and MST both) */
+ int active_mst_links;
/* connector directly attached - won't be use for modeset in mst world */
struct intel_connector *attached_connector;
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Revert "drm/i915: Track active streams also for DP SST"
2016-08-05 16:05 [PATCH] Revert "drm/i915: Track active streams also for DP SST" ville.syrjala
@ 2016-08-05 16:14 ` Chris Wilson
2016-08-05 16:30 ` Ville Syrjälä
2016-08-05 16:29 ` ✗ Ro.CI.BAT: failure for " Patchwork
1 sibling, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2016-08-05 16:14 UTC (permalink / raw)
To: ville.syrjala; +Cc: intel-gfx
On Fri, Aug 05, 2016 at 07:05:42PM +0300, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> This reverts commit f64425a82bdb5c3d7e09ba765716da88a9b00eec.
>
> active_streams will get totally out of whack with SST unless we
> sync up with the hw state at readout, obviously! We don't yet
> do that, so now the WARNs fire all the time. Let's revert :(
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=95472#c14
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "drm/i915: Track active streams also for DP SST"
2016-08-05 16:14 ` Chris Wilson
@ 2016-08-05 16:30 ` Ville Syrjälä
0 siblings, 0 replies; 4+ messages in thread
From: Ville Syrjälä @ 2016-08-05 16:30 UTC (permalink / raw)
To: Chris Wilson, intel-gfx
On Fri, Aug 05, 2016 at 05:14:23PM +0100, Chris Wilson wrote:
> On Fri, Aug 05, 2016 at 07:05:42PM +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > This reverts commit f64425a82bdb5c3d7e09ba765716da88a9b00eec.
> >
> > active_streams will get totally out of whack with SST unless we
> > sync up with the hw state at readout, obviously! We don't yet
> > do that, so now the WARNs fire all the time. Let's revert :(
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=95472#c14
> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Thanks. Pushed. And sorry for the noise, folks.
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* ✗ Ro.CI.BAT: failure for Revert "drm/i915: Track active streams also for DP SST"
2016-08-05 16:05 [PATCH] Revert "drm/i915: Track active streams also for DP SST" ville.syrjala
2016-08-05 16:14 ` Chris Wilson
@ 2016-08-05 16:29 ` Patchwork
1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2016-08-05 16:29 UTC (permalink / raw)
To: ville.syrjala; +Cc: intel-gfx
== Series Details ==
Series: Revert "drm/i915: Track active streams also for DP SST"
URL : https://patchwork.freedesktop.org/series/10721/
State : failure
== Summary ==
Series 10721v1 Revert "drm/i915: Track active streams also for DP SST"
http://patchwork.freedesktop.org/api/1.0/series/10721/revisions/1/mbox
Test drv_module_reload_basic:
dmesg-warn -> PASS (ro-hsw-i7-4770r)
dmesg-warn -> PASS (ro-bdw-i7-5600u)
dmesg-warn -> PASS (ro-bdw-i7-5557U)
dmesg-warn -> PASS (ro-bdw-i5-5250u)
skip -> PASS (ro-skl3-i5-6260u)
Test kms_cursor_legacy:
Subgroup basic-flip-vs-cursor-legacy:
fail -> PASS (fi-hsw-i7-4770k)
fail -> PASS (ro-bdw-i5-5250u)
pass -> FAIL (ro-bdw-i7-5600u)
Subgroup basic-flip-vs-cursor-varying-size:
pass -> FAIL (ro-hsw-i7-4770r)
pass -> FAIL (ro-bdw-i5-5250u)
dmesg-fail -> PASS (fi-skl-i7-6700k)
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
fail -> PASS (ro-ivb-i7-3770)
fi-hsw-i7-4770k total:240 pass:218 dwarn:0 dfail:0 fail:0 skip:22
fi-kbl-qkkr total:240 pass:181 dwarn:29 dfail:0 fail:3 skip:27
fi-skl-i5-6260u total:240 pass:220 dwarn:4 dfail:0 fail:2 skip:14
fi-skl-i7-6700k total:240 pass:205 dwarn:4 dfail:1 fail:2 skip:28
fi-snb-i7-2600 total:240 pass:198 dwarn:0 dfail:0 fail:0 skip:42
ro-bdw-i5-5250u total:240 pass:219 dwarn:4 dfail:0 fail:1 skip:16
ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16
ro-bdw-i7-5600u total:240 pass:206 dwarn:0 dfail:0 fail:2 skip:32
ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42
ro-byt-n2820 total:240 pass:197 dwarn:0 dfail:0 fail:3 skip:40
ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26
ro-hsw-i7-4770r total:240 pass:213 dwarn:0 dfail:0 fail:1 skip:26
ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65
ro-ilk1-i5-650 total:235 pass:173 dwarn:0 dfail:0 fail:2 skip:60
ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35
ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31
ro-skl3-i5-6260u total:240 pass:222 dwarn:0 dfail:0 fail:4 skip:14
ro-snb-i7-2620M total:240 pass:198 dwarn:0 dfail:0 fail:1 skip:41
Results at /archive/results/CI_IGT_test/RO_Patchwork_1731/
7b03586 drm-intel-nightly: 2016y-08m-05d-10h-17m-33s UTC integration manifest
783f2ae Revert "drm/i915: Track active streams also for DP SST"
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-05 16:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05 16:05 [PATCH] Revert "drm/i915: Track active streams also for DP SST" ville.syrjala
2016-08-05 16:14 ` Chris Wilson
2016-08-05 16:30 ` Ville Syrjälä
2016-08-05 16:29 ` ✗ Ro.CI.BAT: failure for " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.