drm/i915: Make legacy cursor updates more unsynced
Subsystems (2)
PATCH 1/1 drm/i915: Make legacy cursor updates more unsynced
From: Ville Syrjälä <[email protected]>
We're clearing the legacy_cursor_update flag before calling drm_atomic_helper_setup_commit() which means the helper will wait for the flip to complete before cleaning up the framebuffers. That's not what we want for the legacy cursor, so let's clear the flag after setting up the commit.
Also toss in a FIXME about solving these problems in a nicer way using the fabled vblank workers.
--- drivers/gpu/drm/i915/intel_display.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +12 -4
@@ -13024,6 +13024,10 @@ static int intel_atomic_commit(struct drm_device *dev,struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ; + ret =drm_atomic_helper_setup_commit (state, nonblock); +if (ret) +return ret; +/* * The intel_legacy_cursor_update() fast path takes care * of avoiding the vblank waits for simple cursor
@@ -13031,14 +13035,18 @@ static int intel_atomic_commit(struct drm_device *dev,* we want to perform the vblank waits so that watermark * updates happen during the correct frames. Gen9+ have * double buffered watermarks and so shouldn't need this. +* +* Do this after drm_atomic_helper_setup_commit() because +* we still want to skip the fb cleanup waits from the +* atomic helper. Although that does risk yanking the +* mapping from under the display engine. +* +* FIXME doing watermarks and fb cleanup from a vblank worker +* (assuming we had any) would solve these problems. */ if (INTEL_GEN (dev_priv) <9 ) state->legacy_cursor_update = false; - ret =drm_atomic_helper_setup_commit (state, nonblock); -if (ret) -return ret; -drm_atomic_state_get (state);i915_sw_fence_init (&intel_state->commit_ready, intel_atomic_commit_ready);
Signature · 6 lines
2.10.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for drm/i915: Make legacy cursor updates more unsynced
== Series Details ==
== Series Details ==
Series: drm/i915: Make legacy cursor updates more unsynced
URL : https://patchwork.freedesktop.org/series/22031/
State : warning
== Summary ==
Series 22031v1 drm/i915: Make legacy cursor updates more unsynced
https://patchwork.freedesktop.org/api/1.0/series/22031/revisions/1/mbox/
Test gem_exec_suspend:
Subgroup basic-s3:
incomplete -> PASS (fi-skl-6260u)
Test kms_force_connector_basic:
Subgroup force-connector-state:
pass -> SKIP (fi-ivb-3520m)
Subgroup force-edid:
pass -> SKIP (fi-ivb-3520m)
Subgroup force-load-detect:
pass -> SKIP (fi-ivb-3520m)
Subgroup prune-stale-modes:
pass -> SKIP (fi-ivb-3520m)fi-bdw-5557u total:278 pass:267 dwarn:0 dfail:0 fail:0 skip:11 time: 461s fi-bdw-gvtdvm total:278 pass:256 dwarn:8 dfail:0 fail:0 skip:14 time: 456s fi-bsw-n3050 total:278 pass:239 dwarn:0 dfail:0 fail:0 skip:39 time: 591s fi-bxt-j4205 total:278 pass:259 dwarn:0 dfail:0 fail:0 skip:19 time: 536s fi-bxt-t5700 total:278 pass:258 dwarn:0 dfail:0 fail:0 skip:20 time: 577s fi-byt-j1900 total:278 pass:251 dwarn:0 dfail:0 fail:0 skip:27 time: 504s fi-byt-n2820 total:278 pass:247 dwarn:0 dfail:0 fail:0 skip:31 time: 507s fi-hsw-4770 total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 433s fi-hsw-4770r total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 430s fi-ilk-650 total:278 pass:228 dwarn:0 dfail:0 fail:0 skip:50 time: 437s fi-ivb-3520m total:278 pass:256 dwarn:0 dfail:0 fail:0 skip:22 time: 506s fi-ivb-3770 total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 489s fi-kbl-7500u total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 484s fi-kbl-7560u total:278 pass:267 dwarn:1 dfail:0 fail:0 skip:10 time: 592s fi-skl-6260u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 479s fi-skl-6700hq total:278 pass:261 dwarn:0 dfail:0 fail:0 skip:17 time: 608s fi-skl-6700k total:278 pass:256 dwarn:4 dfail:0 fail:0 skip:18 time: 488s fi-skl-6770hq total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 519s fi-skl-gvtdvm total:278 pass:265 dwarn:0 dfail:0 fail:0 skip:13 time: 469s fi-snb-2520m total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time: 552s fi-snb-2600 total:278 pass:249 dwarn:0 dfail:0 fail:0 skip:29 time: 426s
dabd992961047cf26698036f563aa86a083284ac drm-tip: 2017y-03m-28d-15h-25m-54s UTC integration manifest 2de65de drm/i915: Make legacy cursor updates more unsynced
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4330/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Op 28-03-17 om 21:35 schreef [email protected]:
Quoted 49 lines
From: Ville Syrjälä <[email protected]>
We're clearing the
legacy_cursor_updateflag before callingdrm_atomic_helper_setup_commit()which means the helper will wait for the flip to complete before cleaning up the framebuffers. That's not what we want for the legacy cursor, so let's clear the flag after setting up the commit.Also toss in a FIXME about solving these problems in a nicer way using the fabled vblank workers.
Cc Maarten Lankhorst <[email protected]>Cc Daniel Vetter <[email protected]>Cc Uwe Kleine-König <[email protected]>Cc Rafael Ristovski <[email protected]>Fixes a5509abda48e ("drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW")Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/intel_display.c +12
-0@@ -13024,6 +13024,10 @@ static int intel_atomic_commit(struct drm_device *dev,struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ; + ret =drm_atomic_helper_setup_commit (state, nonblock); +if (ret) +return ret; +/* * The intel_legacy_cursor_update() fast path takes care * of avoiding the vblank waits for simple cursor @@ -13031,14 +13035,18 @@ static int intel_atomic_commit(struct drm_device *dev,* we want to perform the vblank waits so that watermark * updates happen during the correct frames. Gen9+ have * double buffered watermarks and so shouldn't need this. +* +* Do this after drm_atomic_helper_setup_commit() because +* we still want to skip the fb cleanup waits from the +* atomic helper. Although that does risk yanking the +* mapping from under the display engine. +* +* FIXME doing watermarks and fb cleanup from a vblank worker +* (assuming we had any) would solve these problems. */
drivers/gpu/drm/i915/intel_display.c static int intel_atomic_commit(struct drm_device *dev, · line 13052
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +0
-4if (INTEL_GEN (dev_priv) <9 ) state->legacy_cursor_update = false; - ret =drm_atomic_helper_setup_commit (state, nonblock); -if (ret) -return ret; -drm_atomic_state_get (state);i915_sw_fence_init (&intel_state->commit_ready, intel_atomic_commit_ready);
From irc:
<vsyrjala> hmm. actually should probably move that thing to happen even later. we should skip the flip waits from intel_atomic_prepare_commit() as well i recon
Makes sense. Not sure how much we care about legacy page flips, since they're on their way out.
If this is fixed and trybot is happy with v2 then I will be too. :)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/i915: Make legacy cursor updates more unsynced
In reply to [email protected]From: Ville Syrjälä <[email protected]>
We're clearing the legacy_cursor_update flag before calling drm_atomic_helper_setup_commit() which means the helper will wait for the flip to complete before cleaning up the framebuffers. That's not what we want for the legacy cursor, so let's clear the flag after setting up the commit.
Also toss in a FIXME about solving these problems in a nicer way using the fabled vblank workers.
v2: Also unsync with legacy page flips
--- drivers/gpu/drm/i915/intel_display.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/intel_display.c +20 -11
@@ -13029,17 +13029,6 @@ static int intel_atomic_commit(struct drm_device *dev,struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ; -/* -* The intel_legacy_cursor_update() fast path takes care -* of avoiding the vblank waits for simple cursor -* movement and flips. For cursor on/off and size changes, -* we want to perform the vblank waits so that watermark -* updates happen during the correct frames. Gen9+ have -* double buffered watermarks and so shouldn't need this. -*/ -if (INTEL_GEN (dev_priv) <9 ) - state->legacy_cursor_update = false; - ret =drm_atomic_helper_setup_commit (state, nonblock);if (ret)return ret;
@@ -13055,6 +13044,26 @@ static int intel_atomic_commit(struct drm_device *dev,return ret; } +/* +* The intel_legacy_cursor_update() fast path takes care +* of avoiding the vblank waits for simple cursor +* movement and flips. For cursor on/off and size changes, +* we want to perform the vblank waits so that watermark +* updates happen during the correct frames. Gen9+ have +* double buffered watermarks and so shouldn't need this. +* +* Do this after drm_atomic_helper_setup_commit() and +* intel_atomic_prepare_commit() because we still want +* to skip the flip and fb cleanup waits. Although that +* does risk yanking the mapping from under the display +* engine. +* +* FIXME doing watermarks and fb cleanup from a vblank worker +* (assuming we had any) would solve these problems. +*/ +if (INTEL_GEN (dev_priv) <9 ) + state->legacy_cursor_update = false; +drm_atomic_helper_swap_state (state, true); dev_priv->wm.distrust_bios_wm = false;intel_shared_dpll_swap_state (state);
Signature · 6 lines
2.10.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Op 29-03-17 om 16:21 schreef [email protected]:
Quoted 11 lines
From: Ville Syrjälä <[email protected]>
We're clearing the
legacy_cursor_updateflag before callingdrm_atomic_helper_setup_commit()which means the helper will wait for the flip to complete before cleaning up the framebuffers. That's not what we want for the legacy cursor, so let's clear the flag after setting up the commit.Also toss in a FIXME about solving these problems in a nicer way using the fabled vblank workers.
Quoted 8 lines
v2: Also unsync with legacy page flips
Cc Maarten Lankhorst <[email protected]>Cc Daniel Vetter <[email protected]>Cc Uwe Kleine-König <[email protected]>Cc Rafael Ristovski <[email protected]>Fixes a5509abda48e ("drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW")Signed-off-by Ville Syrjälä <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 14 lines · Maarten Lankhorst
Op 29-03-17 om 16:21 schreef [email protected]:
Quoted 13 lines
From: Ville Syrjälä <[email protected]>
We're clearing the
legacy_cursor_updateflag before callingdrm_atomic_helper_setup_commit()which means the helper will wait for the flip to complete before cleaning up the framebuffers. That's not what we want for the legacy cursor, so let's clear the flag after setting up the commit.Also toss in a FIXME about solving these problems in a nicer way using the fabled vblank workers.
v2: Also unsync with legacy page flips
Quoted 8 lines
Quoted 6 lines
Cc Maarten Lankhorst <[email protected]>Cc Daniel Vetter <[email protected]>Cc Uwe Kleine-König <[email protected]>Cc Rafael Ristovski <[email protected]>Fixes a5509abda48e ("drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW")Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Maarten Lankhorst <[email protected]>
Thanks. Patch pushed to dinq.
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Make legacy cursor updates more unsynced (rev2)
In reply to [email protected]== Series Details ==
== Series Details ==
Series: drm/i915: Make legacy cursor updates more unsynced (rev2)
URL : https://patchwork.freedesktop.org/series/22031/
State : success
== Summary ==
Series 22031v2 drm/i915: Make legacy cursor updates more unsynced
https://patchwork.freedesktop.org/api/1.0/series/22031/revisions/2/mbox/
fi-bdw-5557u total:278 pass:267 dwarn:0 dfail:0 fail:0 skip:11 time: 469s fi-bdw-gvtdvm total:278 pass:256 dwarn:8 dfail:0 fail:0 skip:14 time: 467s fi-bsw-n3050 total:278 pass:239 dwarn:0 dfail:0 fail:0 skip:39 time: 576s fi-bxt-j4205 total:278 pass:259 dwarn:0 dfail:0 fail:0 skip:19 time: 543s fi-bxt-t5700 total:278 pass:258 dwarn:0 dfail:0 fail:0 skip:20 time: 582s fi-byt-j1900 total:278 pass:251 dwarn:0 dfail:0 fail:0 skip:27 time: 503s fi-byt-n2820 total:278 pass:247 dwarn:0 dfail:0 fail:0 skip:31 time: 499s fi-hsw-4770 total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 439s fi-hsw-4770r total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 436s fi-ilk-650 total:278 pass:228 dwarn:0 dfail:0 fail:0 skip:50 time: 437s fi-ivb-3520m total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 516s fi-ivb-3770 total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 491s fi-kbl-7500u total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 488s fi-kbl-7560u total:278 pass:267 dwarn:1 dfail:0 fail:0 skip:10 time: 597s fi-skl-6260u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 487s fi-skl-6700hq total:278 pass:261 dwarn:0 dfail:0 fail:0 skip:17 time: 594s fi-skl-6700k total:278 pass:256 dwarn:4 dfail:0 fail:0 skip:18 time: 483s fi-skl-6770hq total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 520s fi-skl-gvtdvm total:278 pass:265 dwarn:0 dfail:0 fail:0 skip:13 time: 474s fi-snb-2520m total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time: 551s fi-snb-2600 total:278 pass:249 dwarn:0 dfail:0 fail:0 skip:29 time: 425s
2f9f22b419350cafb06ba7e5342bc461fcb0afca drm-tip: 2017y-03m-29d-12h-52m-56s UTC integration manifest 57d55b4 drm/i915: Make legacy cursor updates more unsynced
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4342/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx