drm/i915/psr2: Fix max resolution supported.
Subsystems (2)
Rodrigo Vivi
maintainerPATCH v2 1/2 drm/i915/psr2: Fix max resolution supported.
According to spec:
"PSR2 is supported for pipe active sizes up to 3640 pixels wide and 2304 lines tall."
BSpec: 7713
--- drivers/gpu/drm/i915/intel_psr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_psr.c +3 -3
@@ -523,9 +523,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,return ; } -/* PSR2 is restricted to work with panel resolutions upto 3200x2000 */ -if (adjusted_mode->crtc_hdisplay >3200 || - adjusted_mode->crtc_vdisplay >2000 ) { +/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ +if (adjusted_mode->crtc_hdisplay >3640 || + adjusted_mode->crtc_vdisplay >2304 ) {DRM_DEBUG_KMS ("PSR2 disabled, panel resolution too big\n" );return ; }
Signature · 6 lines
2.13.6 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH v2 2/2 drm/i915/psr: Don't avoid PSR when PSR2 conditions are not met.
We can still use PSR1 when PSR2 conditions are not met.
So, let's split the check in a way that we make sure has_psr gets set independently of PSR2 criteria.
v2: Duh! Handle proper return to avoid breaking PSR2.
v3: (DK):
- better name for psr2 conditions check function
- Don't remove FIXME block and psr2.support check.
- Add a debug message to show us what PSR or PSR2 is getting enabled now we have ways to enabled PSR on PSR2 panels.
- s/PSR2 disabled/PSR2 not enabled
--- drivers/gpu/drm/i915/intel_psr.c | 64 +++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 27 deletions(-)
drivers/gpu/drm/i915/intel_psr.c +37 -27
@@ -446,6 +446,41 @@ static void hsw_psr_activate(struct intel_dp *intel_dp)hsw_activate_psr1 (intel_dp); } +static bool intel_psr2_config_valid (struct intel_dp *intel_dp, +struct intel_crtc_state *crtc_state) +{ +struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (dig_port->base.base.dev); +const struct drm_display_mode *adjusted_mode = + &crtc_state->base.adjusted_mode; + +/* +* FIXME psr2_support is messed up. It's both computed +* dynamically during PSR enable, and extracted from sink +* caps during eDP detection. +*/ +if (!dev_priv->psr.psr2_support) +return false; + +/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ +if (adjusted_mode->crtc_hdisplay >3640 || + adjusted_mode->crtc_vdisplay >2304 ) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel resolution too big\n" ); +return false; + } + +/* +* FIXME:enable psr2 only for y-cordinate psr2 panels +* After gtc implementation , remove this restriction. +*/ +if (!dev_priv->psr.y_cord_support) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel does not support Y coordinate\n" ); +return false; + } + +return true; +} +void intel_psr_compute_config (struct intel_dp *intel_dp,struct intel_crtc_state *crtc_state) {
@@ -513,34 +548,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,return ; } -/* -* FIXME psr2_support is messed up. It's both computed -* dynamically during PSR enable, and extracted from sink -* caps during eDP detection. -*/ -if (!dev_priv->psr.psr2_support) { - crtc_state->has_psr = true; -return ; - } - -/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ -if (adjusted_mode->crtc_hdisplay >3640 || - adjusted_mode->crtc_vdisplay >2304 ) { -DRM_DEBUG_KMS ("PSR2 disabled, panel resolution too big\n" ); -return ; - } - -/* -* FIXME:enable psr2 only for y-cordinate psr2 panels -* After gtc implementation , remove this restriction. -*/ -if (!dev_priv->psr.y_cord_support) { -DRM_DEBUG_KMS ("PSR2 disabled, panel does not support Y coordinate\n" ); -return ; - } - crtc_state->has_psr = true; - crtc_state->has_psr2 = true; + crtc_state->has_psr2 =intel_psr2_config_valid (intel_dp, crtc_state); +DRM_DEBUG_KMS ("Enabling PSR%s\n" , crtc_state->has_psr2 ?"2" :"" ); }static void intel_psr_activate (struct intel_dp *intel_dp)
Signature · 6 lines
2.13.6 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v2 2/2] drm/i915/psr: Don't avoid PSR when PSR2 conditions are not met.
Quoted 14 lines · Rodrigo Vivi
We can still use PSR1 when PSR2 conditions are not met.
So, let's split the check in a way that we make sure
has_psrgets set independently of PSR2 criteria.v2: Duh! Handle proper return to avoid breaking PSR2.
v3: (DK):
- better name for psr2 conditions check function
- Don't remove FIXME block and psr2.support check.
- Add a debug message to show us what PSR or PSR2 is getting enabled now we have ways to enabled PSR on PSR2 panels.
- s/PSR2 disabled/PSR2 not enabled
Quoted 2 lines
Cc Dhinakaran Pandiyan <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>
Quoted 77 lines
--- drivers/gpu/drm/i915/intel_psr.c | 64 +++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 27 deletions(-)drivers/gpu/drm/i915/intel_psr.c +35
-23@@ -446,6 +446,41 @@ static void hsw_psr_activate(struct intel_dp *intel_dp)hsw_activate_psr1 (intel_dp); } +static bool intel_psr2_config_valid (struct intel_dp *intel_dp, +struct intel_crtc_state *crtc_state) +{ +struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (dig_port->base.base.dev); +const struct drm_display_mode *adjusted_mode = + &crtc_state->base.adjusted_mode; + +/* +* FIXME psr2_support is messed up. It's both computed +* dynamically during PSR enable, and extracted from sink +* caps during eDP detection. +*/ +if (!dev_priv->psr.psr2_support) +return false; + +/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ +if (adjusted_mode->crtc_hdisplay >3640 || + adjusted_mode->crtc_vdisplay >2304 ) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel resolution too big\n" ); +return false; + } + +/* +* FIXME:enable psr2 only for y-cordinate psr2 panels +* After gtc implementation , remove this restriction. +*/ +if (!dev_priv->psr.y_cord_support) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel does not support Y coordinate\n" ); +return false; + } + +return true; +} +void intel_psr_compute_config (struct intel_dp *intel_dp,struct intel_crtc_state *crtc_state) {@@ -513,34 +548,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,return ; } -/* -* FIXME psr2_support is messed up. It's both computed -* dynamically during PSR enable, and extracted from sink -* caps during eDP detection. -*/ -if (!dev_priv->psr.psr2_support) { - crtc_state->has_psr = true; -return ; - } - -/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ -if (adjusted_mode->crtc_hdisplay >3640 || - adjusted_mode->crtc_vdisplay >2304 ) { -DRM_DEBUG_KMS ("PSR2 disabled, panel resolution too big\n" ); -return ; - } - -/* -* FIXME:enable psr2 only for y-cordinate psr2 panels -* After gtc implementation , remove this restriction. -*/ -if (!dev_priv->psr.y_cord_support) { -DRM_DEBUG_KMS ("PSR2 disabled, panel does not support Y coordinate\n" );
drivers/gpu/drm/i915/intel_psr.c void intel_psr_compute_config(struct intel_dp *intel_dp, · line 556
Quoted 10 lines
drivers/gpu/drm/i915/intel_psr.c +2
-4-return ; - } - crtc_state->has_psr = true; - crtc_state->has_psr2 = true; + crtc_state->has_psr2 =intel_psr2_config_valid (intel_dp, crtc_state); +DRM_DEBUG_KMS ("Enabling PSR%s\n" , crtc_state->has_psr2 ?"2" :"" ); }static void intel_psr_activate (struct intel_dp *intel_dp)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v2 2/2] drm/i915/psr: Don't avoid PSR when PSR2 conditions are not met.
Quoted 16 lines · Dhinakaran
Quoted 14 lines · Rodrigo Vivi
We can still use PSR1 when PSR2 conditions are not met.
So, let's split the check in a way that we make sure
has_psrgets set independently of PSR2 criteria.v2: Duh! Handle proper return to avoid breaking PSR2.
v3: (DK):
- better name for psr2 conditions check function
- Don't remove FIXME block and psr2.support check.
- Add a debug message to show us what PSR or PSR2 is getting enabled now we have ways to enabled PSR on PSR2 panels.
- s/PSR2 disabled/PSR2 not enabled
Quoted 4 lines
Quoted 2 lines
Cc Dhinakaran Pandiyan <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>Reviewed-by Dhinakaran Pandiyan <[email protected]>
merged, thanks.
Quoted 87 lines
Quoted 87 lines
--- drivers/gpu/drm/i915/intel_psr.c | 64 +++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 27 deletions(-)drivers/gpu/drm/i915/intel_psr.c +37
-27@@ -446,6 +446,41 @@ static void hsw_psr_activate(struct intel_dp *intel_dp)hsw_activate_psr1 (intel_dp); } +static bool intel_psr2_config_valid (struct intel_dp *intel_dp, +struct intel_crtc_state *crtc_state) +{ +struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp); +struct drm_i915_private *dev_priv =to_i915 (dig_port->base.base.dev); +const struct drm_display_mode *adjusted_mode = + &crtc_state->base.adjusted_mode; + +/* +* FIXME psr2_support is messed up. It's both computed +* dynamically during PSR enable, and extracted from sink +* caps during eDP detection. +*/ +if (!dev_priv->psr.psr2_support) +return false; + +/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ +if (adjusted_mode->crtc_hdisplay >3640 || + adjusted_mode->crtc_vdisplay >2304 ) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel resolution too big\n" ); +return false; + } + +/* +* FIXME:enable psr2 only for y-cordinate psr2 panels +* After gtc implementation , remove this restriction. +*/ +if (!dev_priv->psr.y_cord_support) { +DRM_DEBUG_KMS ("PSR2 not enabled, panel does not support Y coordinate\n" ); +return false; + } + +return true; +} +void intel_psr_compute_config (struct intel_dp *intel_dp,struct intel_crtc_state *crtc_state) {@@ -513,34 +548,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,return ; } -/* -* FIXME psr2_support is messed up. It's both computed -* dynamically during PSR enable, and extracted from sink -* caps during eDP detection. -*/ -if (!dev_priv->psr.psr2_support) { - crtc_state->has_psr = true; -return ; - } - -/* PSR2 is restricted to work with panel resolutions up to 3640x2304 */ -if (adjusted_mode->crtc_hdisplay >3640 || - adjusted_mode->crtc_vdisplay >2304 ) { -DRM_DEBUG_KMS ("PSR2 disabled, panel resolution too big\n" ); -return ; - } - -/* -* FIXME:enable psr2 only for y-cordinate psr2 panels -* After gtc implementation , remove this restriction. -*/ -if (!dev_priv->psr.y_cord_support) { -DRM_DEBUG_KMS ("PSR2 disabled, panel does not support Y coordinate\n" ); -return ; - } - crtc_state->has_psr = true; - crtc_state->has_psr2 = true; + crtc_state->has_psr2 =intel_psr2_config_valid (intel_dp, crtc_state); +DRM_DEBUG_KMS ("Enabling PSR%s\n" , crtc_state->has_psr2 ?"2" :"" ); }
Quoted 1 line
drivers/gpu/drm/i915/intel_psr.c void intel_psr_compute_config(struct intel_dp *intel_dp, · line 556
Quoted 1 line
drivers/gpu/drm/i915/intel_psr.c +0
-0static void intel_psr_activate (struct intel_dp *intel_dp)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [v2,1/2] drm/i915/psr2: Fix max resolution supported.
In reply to Rodrigo Vivi== Series Details ==
== Series Details ==
Series: series starting with [v2,1/2] drm/i915/psr2: Fix max resolution supported.
URL : https://patchwork.freedesktop.org/series/39068/
State : success
== Summary ==
Series 39068v1 series starting with [v2,1/2] drm/i915/psr2: Fix max resolution supported.
https://patchwork.freedesktop.org/api/1.0/series/39068/revisions/1/mbox/
---- Known issues:
Test debugfs_test:
Subgroup read_all_entries:
incomplete -> PASS (fi-snb-2520m) fdo#103713 +1fdo#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:414s 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:371s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:487s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:284s 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:479s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:465s 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:401s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:564s 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:412s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:285s 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:386s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:409s 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:421s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:450s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:492s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:447s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:497s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:584s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:422s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:500s 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:487s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:482s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:405s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:430s fi-snb-2520m total:245 pass:211 dwarn:0 dfail:0 fail:0 skip:33 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:392s
af8578c6d4389dd9a51ddccc43b8ce4986e27131 drm-tip: 2018y-02m-27d-20h-28m-22s UTC integration manifest ab5084fb60ff drm/i915/psr: Don't avoid PSR when PSR2 conditions are not met. 01eb17cdf8d6 drm/i915/psr2: Fix max resolution supported.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8179/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for series starting with [v2,1/2] drm/i915/psr2: Fix max resolution supported.
In reply to Rodrigo Vivi== Series Details ==
== Series Details ==
Series: series starting with [v2,1/2] drm/i915/psr2: Fix max resolution supported.
URL : https://patchwork.freedesktop.org/series/39068/
State : failure
== Summary ==
---- Possible new issues:
Test perf_pmu:
Subgroup busy-check-all-vcs0:
pass -> FAIL (shard-snb)---- Known issues:
Test gem_eio:
Subgroup in-flight-contexts:
pass -> INCOMPLETE (shard-apl) fdo#104945
Test kms_flip:
Subgroup 2x-dpms-vs-vblank-race-interruptible:
fail -> PASS (shard-hsw) fdo#103060
Subgroup 2x-flip-vs-expired-vblank:
fail -> PASS (shard-hsw) fdo#102887
Subgroup plain-flip-fb-recreate:
fail -> PASS (shard-hsw) fdo#100368
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-offscren-pri-indfb-draw-mmap-gtt:
skip -> PASS (shard-snb) fdo#101623
Test kms_rotation_crc:
Subgroup sprite-rotation-180:
fail -> PASS (shard-hsw) fdo#103925
Test kms_sysfs_edid_timing:
pass -> WARN (shard-apl) fdo#100047fdo#104945 https://bugs.freedesktop.org/show_bug.cgi?id=104945
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
shard-apl total:3388 pass:1776 dwarn:1 dfail:0 fail:7 skip:1602 time:11830s shard-hsw total:3460 pass:1767 dwarn:1 dfail:0 fail:1 skip:1690 time:11759s shard-snb total:3460 pass:1358 dwarn:1 dfail:0 fail:2 skip:2099 time:6627s
Blacklisted hosts:
shard-kbl total:3388 pass:1900 dwarn:1 dfail:0 fail:8 skip:1478 time:9176s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8179/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx