drm/i915/psr: New power domain for AUX IO.
Subsystems (2)
PATCH 1/6 drm/i915/psr: New power domain for AUX IO.
From: "Dhinakaran Pandiyan" <[email protected]>
PSR on CNL requires AUX IO wells to be kept on and the existing AUX domain for AUX-A enables DC_OFF well too. This is not required, so add a new AUX_IO_A domain for AUX-A to allow DC states to remain enabled. Other AUX channels re-use the existing AUX domains.
v4: Reword comment (Rodrigo and Ville)
Rename _get and _put functions to include aux_io substring(Rodrigo) Remove unnecessary diff that got included.
v3: Extract aux domain selection into a function (Ville)
v2: Add AUX IO domain only for AUX-A
Rebased on top of Ville's AUX series.
--- drivers/gpu/drm/i915/intel_display.h | 1 + drivers/gpu/drm/i915/intel_psr.c | 41 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ 3 files changed, 45 insertions(+)
drivers/gpu/drm/i915/intel_display.h +1 -0
@@ -186,6 +186,7 @@ enum intel_display_power_domain {POWER_DOMAIN_AUX_C ,POWER_DOMAIN_AUX_D ,POWER_DOMAIN_AUX_F , +POWER_DOMAIN_AUX_IO_A ,POWER_DOMAIN_GMBUS ,POWER_DOMAIN_MODESET , POWER_DOMAIN_GT_IRQ,
drivers/gpu/drm/i915/intel_psr.c +41 -0
59 lines not on this page · raw message
drivers/gpu/drm/i915/intel_runtime_pm.c +3 -0
@@ -130,6 +130,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)return "AUX_D" ;case POWER_DOMAIN_AUX_F :return "AUX_F" ; +case POWER_DOMAIN_AUX_IO_A : +return "AUX_IO_A" ;case POWER_DOMAIN_GMBUS :return "GMBUS" ;case POWER_DOMAIN_INIT :
@@ -1853,6 +1855,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_A_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_A) | \ + BIT_ULL(POWER_DOMAIN_AUX_IO_A) | \ BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_B_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_B) | \
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/6 drm/i915/frontbuffer: Mark frontbuffer flush and invalidate with might_sleep()
From: "Dhinakaran Pandiyan" <[email protected]>
Frontbuffer flush and invalidate call psr, fbc and drrs functions that use mutexes but they can be called in atomic contexts in the fbdev path. The point where the spinlocks are acquired is up in the call stack that is not entirely easy to spot, so annotate with might_sleep().
--- drivers/gpu/drm/i915/intel_frontbuffer.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_frontbuffer.c +2 -0
@@ -79,6 +79,7 @@ void __intel_fb_obj_invalidate(struct drm_i915_gem_object *obj,spin_unlock (&dev_priv->fb_tracking.lock); } +might_sleep ();intel_psr_invalidate (dev_priv, frontbuffer_bits);intel_edp_drrs_invalidate (dev_priv, frontbuffer_bits);intel_fbc_invalidate (dev_priv, frontbuffer_bits, origin);
@@ -108,6 +109,7 @@ static void intel_frontbuffer_flush(struct drm_i915_private *dev_priv,if (!frontbuffer_bits)return ; +might_sleep ();intel_edp_drrs_flush (dev_priv, frontbuffer_bits);intel_psr_flush (dev_priv, frontbuffer_bits, origin);intel_fbc_flush (dev_priv, frontbuffer_bits, origin);
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/6 drm/i915/psr: Extract PSR DPCD initialization and move it to intel_psr.c
In reply to Dhinakaran PandiyanFrom: "Dhinakaran Pandiyan" <[email protected]>
intel_edp_init_dpcd() is cluttered with PSR specific DPCD checks and intel_dp.c is huge.
No functional change intended.
v2: Rebased.
--- drivers/gpu/drm/i915/intel_dp.c | 64 +------------------------------------ drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_psr.c | 68 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 63 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +1 -63
@@ -3206,35 +3206,6 @@ intel_dp_get_link_status(struct intel_dp *intel_dp, uint8_t link_status[DP_LINK_ DP_LINK_STATUS_SIZE) == DP_LINK_STATUS_SIZE; } -static bool intel_dp_get_y_cord_status (struct intel_dp *intel_dp) -{ -uint8_t psr_caps =0 ; - -if (drm_dp_dpcd_readb (&intel_dp->aux,DP_PSR_CAPS , &psr_caps) !=1 ) -return false; -return psr_caps &DP_PSR2_SU_Y_COORDINATE_REQUIRED ; -} - -static bool intel_dp_get_colorimetry_status (struct intel_dp *intel_dp) -{ -uint8_t dprx =0 ; - -if (drm_dp_dpcd_readb (&intel_dp->aux,DP_DPRX_FEATURE_ENUMERATION_LIST , - &dprx) !=1 ) -return false; -return dprx &DP_VSC_SDP_EXT_FOR_COLORIMETRY_SUPPORTED ; -} - -static bool intel_dp_get_alpm_status (struct intel_dp *intel_dp) -{ -uint8_t alpm_caps =0 ; - -if (drm_dp_dpcd_readb (&intel_dp->aux,DP_RECEIVER_ALPM_CAP , - &alpm_caps) !=1 ) -return false; -return alpm_caps &DP_ALPM_CAP ; -} -/* These are source-specific values. */ uint8_t intel_dp_voltage_max (struct intel_dp *intel_dp)
@@ -3785,40 +3756,7 @@ intel_edp_init_dpcd(struct intel_dp *intel_dp) dev_priv->no_aux_handshake = intel_dp->dpcd[DP_MAX_DOWNSPREAD ] &DP_NO_AUX_HANDSHAKE_LINK_TRAINING ; -/* Check if the panel supports PSR */ -drm_dp_dpcd_read (&intel_dp->aux,DP_PSR_SUPPORT , - intel_dp->psr_dpcd, -sizeof (intel_dp->psr_dpcd)); -if (intel_dp->psr_dpcd[0 ] &DP_PSR_IS_SUPPORTED ) { - dev_priv->psr.sink_support = true; -DRM_DEBUG_KMS ("Detected EDP PSR Panel.\n" ); - } - -if (INTEL_GEN (dev_priv) >=9 && - (intel_dp->psr_dpcd[0 ] &DP_PSR2_IS_SUPPORTED )) { -uint8_t frame_sync_cap; - - dev_priv->psr.sink_support = true; -if (drm_dp_dpcd_readb (&intel_dp->aux, -DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP , - &frame_sync_cap) !=1 ) - frame_sync_cap =0 ; - dev_priv->psr.aux_frame_sync = frame_sync_cap ? true : false; -/* PSR2 needs frame sync as well */ - dev_priv->psr.psr2_support = dev_priv->psr.aux_frame_sync; -DRM_DEBUG_KMS ("PSR2 %s on sink" , - dev_priv->psr.psr2_support ?"supported" :"not supported" ); - -if (dev_priv->psr.psr2_support) { - dev_priv->psr.y_cord_support = -intel_dp_get_y_cord_status (intel_dp); - dev_priv->psr.colorimetry_support = -intel_dp_get_colorimetry_status (intel_dp); - dev_priv->psr.alpm = -intel_dp_get_alpm_status (intel_dp); - } - - } +intel_psr_init_dpcd (intel_dp);/* * Read the eDP display control registers.
drivers/gpu/drm/i915/intel_drv.h +1 -0
@@ -1866,6 +1866,7 @@ bool is_hdcp_supported(struct drm_i915_private *dev_priv, enum port port);/* intel_psr.c */ #define CAN_PSR (dev_priv) (HAS_PSR(dev_priv) && dev_priv->psr.sink_support) +void intel_psr_init_dpcd (struct intel_dp *intel_dp);void intel_psr_enable (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state); void intel_psr_disable(struct intel_dp *intel_dp,
drivers/gpu/drm/i915/intel_psr.c +68 -0
74 lines not on this page · raw message
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/6 drm/i915/psr: Check for the specific AUX_FRAME_SYNC cap bit.
In reply to Dhinakaran PandiyanFrom: "Dhinakaran Pandiyan" <[email protected]>
The cap check should be specifically for bit 0 instead of any bit.
--- drivers/gpu/drm/i915/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_psr.c +1 -1
@@ -144,7 +144,7 @@ void intel_psr_init_dpcd(struct intel_dp *intel_dp) DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP, &frame_sync_cap) != 1) frame_sync_cap =0 ; - dev_priv->psr.aux_frame_sync = frame_sync_cap ? true : false; + dev_priv->psr.aux_frame_sync = frame_sync_cap &DP_AUX_FRAME_SYNC_CAP ;/* PSR2 needs frame sync as well */ dev_priv->psr.psr2_support = dev_priv->psr.aux_frame_sync; DRM_DEBUG_KMS("PSR2 %s on sink",
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/6 drm/i915/dp: Remove redundant sleep after AUX transaction length check.
In reply to Dhinakaran PandiyanFrom: "Dhinakaran Pandiyan" <[email protected]>
The core already takes care of the delay before retrying. The delay now changes to (500, 600)us instead of (500 + 1000, 600 + 1500)us.
--- drivers/gpu/drm/i915/intel_dp.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +0 -8
@@ -1227,14 +1227,6 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,if (recv_bytes ==0 || recv_bytes >20 ) {DRM_DEBUG_KMS ("Forbidden recv_bytes = %d on aux transaction\n" , recv_bytes); -/* -* FIXME: This patch was created on top of a series that -* organize the retries at drm level. There EBUSY should -* also take care for 1ms wait before retrying. -* That aux retries re-org is still needed and after that is -* merged we remove this sleep from here. -*/ -usleep_range (1000 ,1500 ); ret = -EBUSY ; goto out; }
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/6 drm/i915/dp: Move comment about hw timeout to the right place.
In reply to Dhinakaran PandiyanFrom: "Dhinakaran Pandiyan" <[email protected]>
No functional change.
--- drivers/gpu/drm/i915/intel_dp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +3 -3
@@ -1174,14 +1174,14 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,DP_AUX_CH_CTL_TIME_OUT_ERROR | DP_AUX_CH_CTL_RECEIVE_ERROR); -if (status &DP_AUX_CH_CTL_TIME_OUT_ERROR ) -continue ; -/* DP CTS 1.2 Core Rev 1.1, 4.2.1.1 & 4.2.1.2 * 400us delay required for errors and timeouts * Timeout errors from the HW already meet this * requirement so skip to next iteration */ +if (status &DP_AUX_CH_CTL_TIME_OUT_ERROR ) +continue ; +if (status &DP_AUX_CH_CTL_RECEIVE_ERROR ) {usleep_range (400 ,500 );continue ;
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
In reply to Dhinakaran Pandiyan== Series Details ==
== Series Details ==
Series: series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
URL : https://patchwork.freedesktop.org/series/38892/
State : warning
== Summary ==
Series 38892v1 series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
https://patchwork.freedesktop.org/api/1.0/series/38892/revisions/1/mbox/
Test kms_chamelium:
Subgroup dp-edid-read:
fail -> PASS (fi-kbl-7500u) fdo#102505
Subgroup common-hpd-after-suspend:
pass -> DMESG-WARN (fi-skl-6700k2)
Test kms_force_connector_basic:
Subgroup force-connector-state:
skip -> PASS (fi-snb-2520m)
Subgroup force-edid:
skip -> PASS (fi-snb-2520m)
Subgroup force-load-detect:
skip -> PASS (fi-snb-2520m)
Subgroup prune-stale-modes:
skip -> PASS (fi-snb-2520m)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-c:
incomplete -> PASS (fi-bxt-dsi) fdo#103927fdo#102505 https://bugs.freedesktop.org/show_bug.cgi?id=102505
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:416s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:422s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:372s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:483s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:285s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:476s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:481s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:462s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:452s fi-cfl-8700k total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:395s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:561s fi-cnl-y3 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:572s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:413s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:282s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:507s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:384s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:407s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:454s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:411s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:447s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:493s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:448s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:493s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:590s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:428s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:497s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:516s fi-skl-6700k2 total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:482s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:479s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:410s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:427s fi-snb-2520m total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:510s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:387s
316ba650abe6c1e8ac2f812ff21eee5771546ba1 drm-tip: 2018y-02m-23d-16h-41m-52s UTC integration manifest 4b1e8f46a5ea drm/i915/dp: Move comment about hw timeout to the right place. 690a3b160e7f drm/i915/dp: Remove redundant sleep after AUX transaction length check. eba885892c9b drm/i915/psr: Check for the specific AUX_FRAME_SYNC cap bit. 35774af3a8e7 drm/i915/psr: Extract PSR DPCD initialization and move it to intel_psr.c b38d36c230a3 drm/i915/frontbuffer: Mark frontbuffer flush and invalidate with might_sleep() 2555970971c7 drm/i915/psr: New power domain for AUX IO.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8148/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 14 lines · Dhinakaran Pandiyan
From: "Dhinakaran Pandiyan" <[email protected]>
PSR on CNL requires AUX IO wells to be kept on and the existing AUX domain for AUX-A enables
DC_OFFwell too. This is not required, so add a newAUX_IO_Adomain for AUX-A to allow DC states to remain enabled. Other AUX channels re-use the existing AUX domains.v4: Reword comment (Rodrigo and Ville)
Rename_getand_putfunctions to includeaux_iosubstring(Rodrigo) Remove unnecessary diff that got included.
v3: Extract aux domain selection into a function (Ville)
v2: Add AUX IO domain only for AUX-A
Rebased on top of Ville's AUX series.
Quoted 6 lines
Cc Imre Deak <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Ville Syrjälä <[email protected]>Suggested-by Imre Deak <[email protected]>Signed-off-by Dhinakaran Pandiyan <[email protected]>Reviewed-by Rodrigo Vivi <[email protected]>
Quoted 112 lines
--- drivers/gpu/drm/i915/intel_display.h | 1 + drivers/gpu/drm/i915/intel_psr.c | 41 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ 3 files changed, 45 insertions(+)drivers/gpu/drm/i915/intel_display.h +1
-0@@ -186,6 +186,7 @@ enum intel_display_power_domain {POWER_DOMAIN_AUX_C ,POWER_DOMAIN_AUX_D ,POWER_DOMAIN_AUX_F , +POWER_DOMAIN_AUX_IO_A ,POWER_DOMAIN_GMBUS ,POWER_DOMAIN_MODESET , POWER_DOMAIN_GT_IRQ,drivers/gpu/drm/i915/intel_psr.c +41
-0@@ -56,6 +56,43 @@#include "intel_drv.h" #include "i915_drv.h" +static inline enum intel_display_power_domain +psr_aux_domain (struct intel_dp *intel_dp) +{ +/* CNL HW requires corresponding AUX IOs to be powered up for PSR. +* However, for non-A AUX ports the corresponding non-EDP transcoders +* would have already enabled power well 2 and DC_OFF. This means we can +* acquire a wider POWER_DOMAIN_AUX_{B,C,D,F} reference instead of a +* specific AUX_IO reference without powering up any extra wells. +* Note that PSR is enabled only on Port A even though this function +* returns the correct domain for other ports too. +*/ +return intel_dp->aux_ch ==AUX_CH_A ?POWER_DOMAIN_AUX_IO_A : + intel_dp->aux_power_domain; +} + +static void psr_aux_io_power_get (struct intel_dp *intel_dp) +{ +struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (intel_dig_port->base.base.dev); + +if (INTEL_GEN (dev_priv) <10 ) +return ; + +intel_display_power_get (dev_priv,psr_aux_domain (intel_dp)); +} + +static void psr_aux_io_power_put (struct intel_dp *intel_dp) +{ +struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (intel_dig_port->base.base.dev); + +if (INTEL_GEN (dev_priv) <10 ) +return ; + +intel_display_power_put (dev_priv,psr_aux_domain (intel_dp)); +} +static bool vlv_is_psr_active_on_pipe (struct drm_device *dev,int pipe) {struct drm_i915_private *dev_priv =to_i915 (dev);@@ -459,6 +496,8 @@ static void hsw_psr_enable_source(struct intel_dp *intel_dp,enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 chicken; +psr_aux_io_power_get (intel_dp); +if (dev_priv->psr.psr2_support) { chicken =PSR2_VSC_ENABLE_PROG_HEADER ;if (dev_priv->psr.y_cord_support)@@ -617,6 +656,8 @@ static void hsw_psr_disable(struct intel_dp *intel_dp,else WARN_ON (I915_READ (EDP_PSR_CTL ) &EDP_PSR_ENABLE ); } + +psr_aux_io_power_put (intel_dp); }/** drivers/gpu/drm/i915/intel_runtime_pm.c +3
-0@@ -130,6 +130,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)return "AUX_D" ;case POWER_DOMAIN_AUX_F :return "AUX_F" ; +case POWER_DOMAIN_AUX_IO_A : +return "AUX_IO_A" ;case POWER_DOMAIN_GMBUS :return "GMBUS" ;case POWER_DOMAIN_INIT :@@ -1853,6 +1855,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_A_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_A) | \ + BIT_ULL(POWER_DOMAIN_AUX_IO_A) | \ BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_B_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_B) | \Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerQuoted 15 lines · Nathan Ciobanu
Quoted 14 lines · Dhinakaran Pandiyan
From: "Dhinakaran Pandiyan" <[email protected]>
PSR on CNL requires AUX IO wells to be kept on and the existing AUX domain for AUX-A enables
DC_OFFwell too. This is not required, so add a newAUX_IO_Adomain for AUX-A to allow DC states to remain enabled. Other AUX channels re-use the existing AUX domains.v4: Reword comment (Rodrigo and Ville)
Rename_getand_putfunctions to includeaux_iosubstring(Rodrigo) Remove unnecessary diff that got included.
v3: Extract aux domain selection into a function (Ville)
v2: Add AUX IO domain only for AUX-A
Rebased on top of Ville's AUX series.
Quoted 7 lines
Quoted 6 lines
Cc Imre Deak <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Ville Syrjälä <[email protected]>Suggested-by Imre Deak <[email protected]>Signed-off-by Dhinakaran Pandiyan <[email protected]>Reviewed-by Rodrigo Vivi <[email protected]>Tested-by Nathan Ciobanu <[email protected]>
ops. I'm sorry for leaving this out. I end up merging the patches before seeing this here.
all 6 patches merged on dinq now. Thanks for the patches and reviews.
Quoted 108 lines
Quoted 108 lines
--- drivers/gpu/drm/i915/intel_display.h | 1 + drivers/gpu/drm/i915/intel_psr.c | 41 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ 3 files changed, 45 insertions(+)drivers/gpu/drm/i915/intel_display.h +1
-0@@ -186,6 +186,7 @@ enum intel_display_power_domain {POWER_DOMAIN_AUX_C ,POWER_DOMAIN_AUX_D ,POWER_DOMAIN_AUX_F , +POWER_DOMAIN_AUX_IO_A ,POWER_DOMAIN_GMBUS ,POWER_DOMAIN_MODESET , POWER_DOMAIN_GT_IRQ,drivers/gpu/drm/i915/intel_psr.c +41
-0@@ -56,6 +56,43 @@#include "intel_drv.h" #include "i915_drv.h" +static inline enum intel_display_power_domain +psr_aux_domain (struct intel_dp *intel_dp) +{ +/* CNL HW requires corresponding AUX IOs to be powered up for PSR. +* However, for non-A AUX ports the corresponding non-EDP transcoders +* would have already enabled power well 2 and DC_OFF. This means we can +* acquire a wider POWER_DOMAIN_AUX_{B,C,D,F} reference instead of a +* specific AUX_IO reference without powering up any extra wells. +* Note that PSR is enabled only on Port A even though this function +* returns the correct domain for other ports too. +*/ +return intel_dp->aux_ch ==AUX_CH_A ?POWER_DOMAIN_AUX_IO_A : + intel_dp->aux_power_domain; +} + +static void psr_aux_io_power_get (struct intel_dp *intel_dp) +{ +struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (intel_dig_port->base.base.dev); + +if (INTEL_GEN (dev_priv) <10 ) +return ; + +intel_display_power_get (dev_priv,psr_aux_domain (intel_dp)); +} + +static void psr_aux_io_power_put (struct intel_dp *intel_dp) +{ +struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (intel_dig_port->base.base.dev); + +if (INTEL_GEN (dev_priv) <10 ) +return ; + +intel_display_power_put (dev_priv,psr_aux_domain (intel_dp)); +} +static bool vlv_is_psr_active_on_pipe (struct drm_device *dev,int pipe) {struct drm_i915_private *dev_priv =to_i915 (dev);@@ -459,6 +496,8 @@ static void hsw_psr_enable_source(struct intel_dp *intel_dp,enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;u32 chicken; +psr_aux_io_power_get (intel_dp); +if (dev_priv->psr.psr2_support) { chicken =PSR2_VSC_ENABLE_PROG_HEADER ;if (dev_priv->psr.y_cord_support)@@ -617,6 +656,8 @@ static void hsw_psr_disable(struct intel_dp *intel_dp,else WARN_ON (I915_READ (EDP_PSR_CTL ) &EDP_PSR_ENABLE ); } + +psr_aux_io_power_put (intel_dp); }/** drivers/gpu/drm/i915/intel_runtime_pm.c +3
-0@@ -130,6 +130,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)return "AUX_D" ;case POWER_DOMAIN_AUX_F :return "AUX_F" ; +case POWER_DOMAIN_AUX_IO_A : +return "AUX_IO_A" ;case POWER_DOMAIN_GMBUS :return "GMBUS" ;case POWER_DOMAIN_INIT :@@ -1853,6 +1855,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_A_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_A) | \ + BIT_ULL(POWER_DOMAIN_AUX_IO_A) | \ BIT_ULL(POWER_DOMAIN_INIT))#define CNL_DISPLAY_AUX_B_POWER_DOMAINS ( \ BIT_ULL(POWER_DOMAIN_AUX_B) | \Signature · 1 line
2.14.1
Quoted 8 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
In reply to Dhinakaran Pandiyan== Series Details ==
== Series Details ==
Series: series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
URL : https://patchwork.freedesktop.org/series/38892/
State : success
== Summary ==
Series 38892v1 series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
https://patchwork.freedesktop.org/api/1.0/series/38892/revisions/1/mbox/
---- Known issues:
Test kms_chamelium:
Subgroup dp-edid-read:
fail -> PASS (fi-kbl-7500u) fdo#102505
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (fi-snb-2520m) fdo#103713fdo#102505 https://bugs.freedesktop.org/show_bug.cgi?id=102505
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:413s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:423s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:372s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:486s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:282s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:474s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:483s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:463s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:453s fi-cfl-8700k total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:393s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:559s fi-cnl-y3 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:569s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:414s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:282s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:505s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:386s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:419s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:452s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:408s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:451s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:489s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:449s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:493s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:582s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:418s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:504s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:515s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:492s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:472s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:407s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:428s fi-snb-2520m total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:524s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:390s
f78296fbab2b98b4ccb32ab3a0fae05b47836b15 drm-tip: 2018y-02m-27d-16h-24m-05s UTC integration manifest 92801cf8f384 drm/i915/dp: Move comment about hw timeout to the right place. ee0c3fb15978 drm/i915/dp: Remove redundant sleep after AUX transaction length check. 8693a1aeeeb9 drm/i915/psr: Check for the specific AUX_FRAME_SYNC cap bit. 8e5d79ad53b9 drm/i915/psr: Extract PSR DPCD initialization and move it to intel_psr.c e5fcf5bdc1ec drm/i915/frontbuffer: Mark frontbuffer flush and invalidate with might_sleep() 7cecfb4fc7e6 drm/i915/psr: New power domain for AUX IO.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8175/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
In reply to Dhinakaran Pandiyan== Series Details ==
== Series Details ==
Series: series starting with [CI,1/6] drm/i915/psr: New power domain for AUX IO.
URL : https://patchwork.freedesktop.org/series/38892/
State : success
== Summary ==
---- Known issues:
Test kms_flip:
Subgroup 2x-plain-flip-fb-recreate-interruptible:
pass -> FAIL (shard-hsw) fdo#100368
Subgroup blocking-wf_vblank:
fail -> PASS (shard-hsw) fdo#103928
Test kms_rotation_crc:
Subgroup sprite-rotation-180:
fail -> PASS (shard-hsw) fdo#103925
Test kms_sysfs_edid_timing:
warn -> PASS (shard-apl) fdo#100047
Test kms_vblank:
Subgroup pipe-b-accuracy-idle:
pass -> FAIL (shard-hsw) fdo#102583
Test perf:
Subgroup buffer-fill:
fail -> PASS (shard-apl) fdo#103755
Subgroup enable-disable:
fail -> PASS (shard-apl) fdo#103715fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#102583 https://bugs.freedesktop.org/show_bug.cgi?id=102583
fdo#103755 https://bugs.freedesktop.org/show_bug.cgi?id=103755
fdo#103715 https://bugs.freedesktop.org/show_bug.cgi?id=103715
shard-apl total:3460 pass:1820 dwarn:1 dfail:0 fail:7 skip:1632 time:12122s shard-hsw total:3460 pass:1765 dwarn:1 dfail:0 fail:3 skip:1690 time:11758s shard-snb total:3460 pass:1359 dwarn:1 dfail:0 fail:1 skip:2099 time:6560s
Blacklisted hosts:
shard-kbl total:3393 pass:1910 dwarn:1 dfail:0 fail:7 skip:1474 time:9304s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8175/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx