drm/i915: Disable DRRS when PSR is enabled
Subsystems (2)
PATCH v2 1/1 drm/i915: Disable DRRS when PSR is enabled
Some platforms donot support PSR and DRRS simultaneously. Visual artifacts and flickering were reported on BDW HP Spectre x360 Convertible. Deferring to PSR when both PSR and DRRS are supported by the panel.
V2: Minor code-style changes suggested by Rodrigo
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101111
--- drivers/gpu/drm/i915/intel_dp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +5 -5
@@ -5467,11 +5467,6 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -/* -* FIXME: This needs proper synchronization with psr state for some -* platforms that cannot have PSR and DRRS enabled at the same time. -*/ - dig_port =dp_to_dig_port (intel_dp); encoder = &dig_port->base; intel_crtc =to_intel_crtc (encoder->base.crtc);
@@ -5555,6 +5550,11 @@ void intel_edp_drrs_enable(struct intel_dp *intel_dp,return ; } +if (dev_priv->psr.enabled) { +DRM_DEBUG_KMS ("PSR enabled. Disabling DRRS.\n" ); +return ; + } +mutex_lock (&dev_priv->drrs.mutex);if (WARN_ON (dev_priv->drrs.dp)) {DRM_ERROR ("DRRS already enabled\n" );
Signature · 6 lines
2.9.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Disable DRRS when PSR is enabled (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915: Disable DRRS when PSR is enabled (rev2)
URL : https://patchwork.freedesktop.org/series/29577/
State : success
== Summary ==
Series 29577v2 drm/i915: Disable DRRS when PSR is enabled
https://patchwork.freedesktop.org/api/1.0/series/29577/revisions/2/mbox/
Test gem_exec_flush:
Subgroup basic-batch-kernel-default-uc:
pass -> FAIL (fi-snb-2600) fdo#100007
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-varying-size:
fail -> PASS (fi-hsw-4770) fdo#102402 +1fdo#100007 https://bugs.freedesktop.org/show_bug.cgi?id=100007
fdo#102402 https://bugs.freedesktop.org/show_bug.cgi?id=102402
fi-bdw-5557u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:453s fi-bdw-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:443s fi-blb-e6850 total:288 pass:224 dwarn:1 dfail:0 fail:0 skip:63 time:364s fi-bsw-n3050 total:288 pass:243 dwarn:0 dfail:0 fail:0 skip:45 time:556s fi-bwr-2160 total:288 pass:184 dwarn:0 dfail:0 fail:0 skip:104 time:253s fi-bxt-j4205 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:525s fi-byt-j1900 total:288 pass:254 dwarn:1 dfail:0 fail:0 skip:33 time:522s fi-byt-n2820 total:288 pass:250 dwarn:1 dfail:0 fail:0 skip:37 time:518s fi-elk-e7500 total:288 pass:230 dwarn:0 dfail:0 fail:0 skip:58 time:437s fi-glk-2a total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:619s fi-hsw-4770 total:288 pass:263 dwarn:0 dfail:0 fail:0 skip:25 time:456s fi-hsw-4770r total:288 pass:263 dwarn:0 dfail:0 fail:0 skip:25 time:423s fi-ilk-650 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:430s fi-ivb-3520m total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:508s fi-ivb-3770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:476s fi-kbl-7500u total:288 pass:264 dwarn:1 dfail:0 fail:0 skip:23 time:517s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:599s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:598s fi-pnv-d510 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:526s fi-skl-6260u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:469s fi-skl-6700k total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:535s fi-skl-6770hq total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:486s fi-skl-gvtdvm total:288 pass:266 dwarn:0 dfail:0 fail:0 skip:22 time:446s fi-skl-x1585l total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:489s fi-snb-2520m total:288 pass:251 dwarn:0 dfail:0 fail:0 skip:37 time:552s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:2 skip:38 time:407s
ccf4ca2d93383fe1a234aba83df9c21400216433 drm-tip: 2017y-08m-31d-18h-37m-46s UTC integration manifest cba2ebe39662 drm/i915: Disable DRRS when PSR is enabled
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_5553/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: warning for drm/i915: Disable DRRS when PSR is enabled (rev2)
In reply to Radhakrishna Sripada== Series Details ==
== Series Details ==
Series: drm/i915: Disable DRRS when PSR is enabled (rev2)
URL : https://patchwork.freedesktop.org/series/29577/
State : warning
== Summary ==
Test kms_setmode:
Subgroup basic:
fail -> PASS (shard-hsw) fdo#99912
Test perf:
Subgroup polling:
fail -> PASS (shard-hsw) fdo#102252 +1
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-primscrn-spr-indfb-move:
pass -> SKIP (shard-hsw)
Test kms_chv_cursor_fail:
Subgroup pipe-C-256x256-right-edge:
pass -> SKIP (shard-hsw)
Subgroup pipe-C-128x128-top-edge:
pass -> SKIP (shard-hsw)
Test pm_rpm:
Subgroup legacy-planes:
pass -> SKIP (shard-hsw)
Test kms_plane:
Subgroup plane-position-hole-dpms-pipe-A-planes:
pass -> SKIP (shard-hsw)
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-legacy:
pass -> SKIP (shard-hsw)fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
shard-hsw total:2265 pass:1229 dwarn:0 dfail:0 fail:14 skip:1022 time:9618s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_5553/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Radhakrishna Sripada
Some platforms donot support PSR and DRRS simultaneously.
I could not verify which platforms support PSR + DRRS and which don't. But, seems safe to have DRRS disabled for all platforms when PSR is enabled.
Quoted 34 lines
Visual artifacts and flickering were reported on BDW HP Spectre x360 Convertible. Deferring to PSR when both PSR and DRRS are supported by the panel.
V2: Minor code-style changes suggested by Rodrigo
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101111
Cc Nicholas Stommel <[email protected]>Cc Dhinakaran Pandiyan <[email protected]>Cc Jani Nikula <[email protected]>Cc Clinton Taylor <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Radhakrishna Sripada <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_dp.c +0
-5@@ -5467,11 +5467,6 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -/* -* FIXME: This needs proper synchronization with psr state for some -* platforms that cannot have PSR and DRRS enabled at the same time. -*/ - dig_port =dp_to_dig_port (intel_dp); encoder = &dig_port->base; intel_crtc =to_intel_crtc (encoder->base.crtc);
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5556
Quoted 7 lines
drivers/gpu/drm/i915/intel_dp.c +4
-0@@ -5555,6 +5550,11 @@ void intel_edp_drrs_enable(struct intel_dp *intel_dp,return ; } +if (dev_priv->psr.enabled) { +DRM_DEBUG_KMS ("PSR enabled. Disabling DRRS.\n" ); +return ; + }
So every time a flush/invalidate happens, we end up taking the drrs.mutex and then returning because dev_priv->drrs.dp is NULL. That seems unnecessary. Have your considered drrs.type = DRRS_NOT_SUPPORTED?
And this solution relies on the ordering that psr_enable() is done before drrs_enable(), we need a comment in enable_ddi to make a note of that. A WARN_ON in psr_enable() if drrs is already enabled might work too.
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5560
Quoted 4 lines
drivers/gpu/drm/i915/intel_dp.c +1
-0+mutex_lock (&dev_priv->drrs.mutex);if (WARN_ON (dev_priv->drrs.dp)) {DRM_ERROR ("DRRS already enabled\n" );
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 46 lines · Dhinakaran
Quoted 1 line · Radhakrishna Sripada
Some platforms donot support PSR and DRRS simultaneously.
I could not verify which platforms support PSR + DRRS and which don't. But, seems safe to have DRRS disabled for all platforms when PSR is enabled.
Quoted 37 lines
Visual artifacts and flickering were reported on BDW HP Spectre x360 Convertible. Deferring to PSR when both PSR and DRRS are supported by the panel.
V2: Minor code-style changes suggested by Rodrigo
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101111
Cc Nicholas Stommel <[email protected]>Cc Dhinakaran Pandiyan <[email protected]>Cc Jani Nikula <[email protected]>Cc Clinton Taylor <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Radhakrishna Sripada <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_dp.c +0
-5@@ -5467,11 +5467,6 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -/* -* FIXME: This needs proper synchronization with psr state for some -* platforms that cannot have PSR and DRRS enabled at the same time. -*/ - dig_port =dp_to_dig_port (intel_dp); encoder = &dig_port->base; intel_crtc =to_intel_crtc (encoder->base.crtc);@@ -5555,6 +5550,11 @@ void intel_edp_drrs_enable(struct intel_dp *intel_dp,return ; }
Quoted 8 lines
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5556
Quoted 4 lines
drivers/gpu/drm/i915/intel_dp.c +4
-0+if (dev_priv->psr.enabled) { +DRM_DEBUG_KMS ("PSR enabled. Disabling DRRS.\n" ); +return ; + }So every time a flush/invalidate happens, we end up taking the drrs.mutex and then returning because
dev_priv->drrs.dpis NULL. That seems unnecessary. Have your considered drrs.type =DRRS_NOT_SUPPORTED?
That would prevent DRRS testing by disabling PSR via module parameter. I think this is fine. Although the debug message is misleading; it's "not enabling DRRS", not "disabling DRRS". There's a difference.
Side note, dev_priv->drrs.type is redundant and could be replaced with direct use of dev_priv->vbt.drrs_type.
Quoted 4 lines
And this solution relies on the ordering that
psr_enable()is done beforedrrs_enable(), we need a comment inenable_ddito make a note of that. AWARN_ONinpsr_enable()if drrs is already enabled might work too.
I think a WARN_ON would be fine.
BR,
Jani.
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c +1
-0+mutex_lock (&dev_priv->drrs.mutex);if (WARN_ON (dev_priv->drrs.dp)) {DRM_ERROR ("DRRS already enabled\n" );
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 56 lines · Jani Nikula
Quoted 46 lines · Dhinakaran
Quoted 1 line · Radhakrishna Sripada
Some platforms donot support PSR and DRRS simultaneously.
I could not verify which platforms support PSR + DRRS and which don't. But, seems safe to have DRRS disabled for all platforms when PSR is enabled.
Quoted 37 lines
Visual artifacts and flickering were reported on BDW HP Spectre x360 Convertible. Deferring to PSR when both PSR and DRRS are supported by the panel.
V2: Minor code-style changes suggested by Rodrigo
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101111
Cc Nicholas Stommel <[email protected]>Cc Dhinakaran Pandiyan <[email protected]>Cc Jani Nikula <[email protected]>Cc Clinton Taylor <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Radhakrishna Sripada <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_dp.c +0
-5@@ -5467,11 +5467,6 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -/* -* FIXME: This needs proper synchronization with psr state for some -* platforms that cannot have PSR and DRRS enabled at the same time. -*/ - dig_port =dp_to_dig_port (intel_dp); encoder = &dig_port->base; intel_crtc =to_intel_crtc (encoder->base.crtc);@@ -5555,6 +5550,11 @@ void intel_edp_drrs_enable(struct intel_dp *intel_dp,return ; }Quoted 8 lines
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5556
Quoted 4 lines
drivers/gpu/drm/i915/intel_dp.c +4
-0+if (dev_priv->psr.enabled) { +DRM_DEBUG_KMS ("PSR enabled. Disabling DRRS.\n" ); +return ; + }So every time a flush/invalidate happens, we end up taking the drrs.mutex and then returning because
dev_priv->drrs.dpis NULL. That seems unnecessary. Have your considered drrs.type =DRRS_NOT_SUPPORTED?
Quoted 2 lines
That would prevent DRRS testing by disabling PSR via module parameter. I think this is fine.
I mean, I think the change in this patch is fine, preventing DRRS testing is not fine.
Quoted 22 lines
Although the debug message is misleading; it's "not enabling DRRS", not "disabling DRRS". There's a difference.
Side note,
dev_priv->drrs.typeis redundant and could be replaced with direct use ofdev_priv->vbt.drrs_type.Quoted 4 lines
And this solution relies on the ordering that
psr_enable()is done beforedrrs_enable(), we need a comment inenable_ddito make a note of that. AWARN_ONinpsr_enable()if drrs is already enabled might work too.I think a
WARN_ONwould be fine.BR,
Jani.Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c +1
-0+mutex_lock (&dev_priv->drrs.mutex);if (WARN_ON (dev_priv->drrs.dp)) {DRM_ERROR ("DRRS already enabled\n" );
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 73 lines
-----Original Message-----
From: Nikula, Jani
Sent: Tuesday, September 12, 2017 7:18 AM
To: Pandiyan, Dhinakaran <[email protected]>; Sripada, Radhakrishna <[email protected]>
Cc: [email protected]; Vivi, Rodrigo <[email protected]>; [email protected]
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: Disable DRRS when PSR is enabledQuoted 1 line · Jani Nikula
On Sat, 09 Sep 2017, "Pandiyan, Dhinakaran"
Quoted 26 lines · <[email protected]> wrote:
Quoted 26 lines · Radhakrishna Sripada
Quoted 1 line
Some platforms donot support PSR and DRRS simultaneously.
I could not verify which platforms support PSR + DRRS and which don't. But, seems safe to have DRRS disabled for all platforms when PSR is enabled.
Quoted 17 lines
Visual artifacts and flickering were reported on BDW HP Spectre x360 Convertible. Deferring to PSR when both PSR and DRRS are supported by the panel.
V2: Minor code-style changes suggested by Rodrigo
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101111
Cc Nicholas Stommel <[email protected]>Cc Dhinakaran Pandiyan <[email protected]>Cc Jani Nikula <[email protected]>Cc Clinton Taylor <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Radhakrishna Sripada <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c static void intel_dp_set_drrs_state(struct
Quoted 6 lines
(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_dp.cindex887953c0f495..aa5a69301257100644drivers/gpu/drm/i915/intel_dp.c +0
-0@@ -5467,11 +5467,6 @@ static void intel_dp_set_drrs_state(struct
drm_i915_private*dev_priv,Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c +0
-3return ; } -/* -* FIXME: This needs proper synchronization with psr state for some -* platforms that cannot have PSR and DRRS enabled at the same time.
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c +0
-2-*/ - dig_port =dp_to_dig_port (intel_dp); encoder = &dig_port->base; intel_crtc =to_intel_crtc (encoder->base.crtc);@@ -5555,6 +5550,11 @@ void intel_edp_drrs_enable(struct intel_dp
*intel_dp,Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5556
Quoted 7 lines
drivers/gpu/drm/i915/intel_dp.c +4
-0return ; } +if (dev_priv->psr.enabled) { +DRM_DEBUG_KMS ("PSR enabled. Disabling DRRS.\n" ); +return ; + }So every time a flush/invalidate happens, we end up taking the drrs.mutex and then returning because
dev_priv->drrs.dpis NULL. That seems unnecessary. Have your considered drrs.type =
Quoted 21 lines
DRRS_NOT_SUPPORTED?Quoted 3 lines
That would prevent DRRS testing by disabling PSR via module parameter. I think this is fine.
I mean, I think the change in this patch is fine, preventing DRRS testing is not fine.
Quoted 12 lines
Although the debug message is misleading; it's "not enabling DRRS", not "disabling DRRS". There's a difference.
Side note,
dev_priv->drrs.typeis redundant and could be replaced with direct use ofdev_priv->vbt.drrs_type.Quoted 4 lines
And this solution relies on the ordering that
psr_enable()is done beforedrrs_enable(), we need a comment inenable_ddito make a note of that. AWARN_ONinpsr_enable()if drrs is already enabled might work too.I think a
WARN_ONwould be fine.
I will add a WARN_ON() and send a v3 of the patch.
-Radhakrishna
Quoted 6 lines
Quoted 6 lines
BR,
Jani.Quoted 2 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/intel_dp.c void intel_edp_drrs_enable(struct intel_dp *intel_dp, · line 5560
Quoted 4 lines
drivers/gpu/drm/i915/intel_dp.c +1
-0+mutex_lock (&dev_priv->drrs.mutex);if (WARN_ON (dev_priv->drrs.dp)) {DRM_ERROR ("DRRS already enabled\n" );--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx