drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
Subsystems (2)
PATCH 1/1 drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
From: Ville Syrjälä <[email protected]>
Update drm_atomic_helper_commit_planes_on_crtc() to use explicit old/new states instead of relying on obj->state.
--- drivers/gpu/drm/drm_atomic_helper.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/gpu/drm/drm_atomic_helper.c +10 -5
@@ -2342,11 +2342,13 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)const struct drm_crtc_helper_funcs *crtc_funcs;struct drm_crtc *crtc = old_crtc_state->crtc;struct drm_atomic_state *old_state = old_crtc_state->state; +struct drm_crtc_state *new_crtc_state = +drm_atomic_get_new_crtc_state (old_state, crtc);struct drm_plane *plane;unsigned plane_mask; plane_mask = old_crtc_state->plane_mask; - plane_mask |= crtc->state->plane_mask; + plane_mask |= new_crtc_state->plane_mask; crtc_funcs = crtc->helper_private;if (crtc_funcs && crtc_funcs->atomic_begin)
@@ -2355,6 +2357,8 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)drm_for_each_plane_mask (plane, crtc->dev, plane_mask) {struct drm_plane_state *old_plane_state =drm_atomic_get_old_plane_state (old_state, plane); +struct drm_plane_state *new_plane_state = +drm_atomic_get_new_plane_state (old_state, plane);const struct drm_plane_helper_funcs *plane_funcs; plane_funcs = plane->helper_private;
@@ -2362,13 +2366,14 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)if (!old_plane_state || !plane_funcs)continue ; -WARN_ON (plane->state->crtc && plane->state->crtc != crtc); +WARN_ON (new_plane_state->crtc && + new_plane_state->crtc != crtc); -if (drm_atomic_plane_disabling (old_plane_state, plane->state) && +if (drm_atomic_plane_disabling (old_plane_state, new_plane_state) && plane_funcs->atomic_disable) plane_funcs->atomic_disable (plane, old_plane_state); -else if (plane->state->crtc || -drm_atomic_plane_disabling (old_plane_state, plane->state)) +else if (new_plane_state->crtc || +drm_atomic_plane_disabling (old_plane_state, new_plane_state)) plane_funcs->atomic_update (plane, old_plane_state); }
Signature · 6 lines
2.16.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✓ Fi.CI.BAT: success for drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
== Series Details ==
== Series Details ==
Series: drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
URL : https://patchwork.freedesktop.org/series/45440/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4382 -> Patchwork_9431 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/45440/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_9431 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@debugfs_test@read_all_entries:
fi-snb-2520m: PASS -> INCOMPLETE (fdo#103713)
igt@gem_exec_suspend@basic-s4-devices:
fi-kbl-7500u: PASS -> DMESG-WARN (fdo#105128) fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#105128 https://bugs.freedesktop.org/show_bug.cgi?id=105128
== Participating hosts (44 -> 39) ==
Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u
== Build changes ==
* Linux: CI_DRM_4382 -> Patchwork_9431
CI_DRM_4382: ffc2d866e9b04af3cc2244bb7448d7f7eb438a89 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4530: 0e98bf69f146eb72fe3a7c3b19a049b5786f0ca3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9431: 463bac186209c5a76063048fa8ff8ab18b7d17ce @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
463bac186209 drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9431/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/atomic-helper: Use old/new state in drm_atomic_helper_commit_planes_on_crtc()
URL : https://patchwork.freedesktop.org/series/45440/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4382_full -> Patchwork_9431_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9431_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9431_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9431_full:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_schedule@deep-bsd2:
shard-kbl: PASS -> SKIP
igt@gem_exec_schedule@deep-vebox:
shard-kbl: SKIP -> PASS
igt@kms_plane_multiple@atomic-pipe-b-tiling-x:
shard-snb: SKIP -> PASS +1== Known issues ==
Here are the changes found in Patchwork_9431_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@live_gtt:
shard-glk: PASS -> FAIL (fdo#105347)
igt@drv_selftest@live_hangcheck:
shard-apl: PASS -> DMESG-FAIL (fdo#106947, fdo#106560)
igt@gem_exec_big:
shard-hsw: PASS -> INCOMPLETE (fdo#103540)
igt@gem_exec_schedule@pi-ringfull-bsd1:
shard-kbl: NOTRUN -> FAIL (fdo#103158) +1
igt@kms_flip@flip-vs-panning-vs-hang:
shard-snb: PASS -> DMESG-WARN (fdo#103821)
igt@kms_flip_tiling@flip-x-tiled:
shard-glk: PASS -> FAIL (fdo#104724, fdo#103822) +2
==== Possible fixes ====
igt@gem_ctx_isolation@rcs0-s3:
shard-kbl: INCOMPLETE (fdo#103665) -> PASS
igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size:
shard-hsw: FAIL (fdo#103355) -> PASS
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: FAIL (fdo#102887, fdo#105363) -> PASS
igt@kms_flip@plain-flip-fb-recreate:
shard-glk: FAIL (fdo#100368) -> PASS +1
igt@kms_setmode@basic:
shard-kbl: FAIL (fdo#99912) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103355 https://bugs.freedesktop.org/show_bug.cgi?id=103355
fdo#103540 https://bugs.freedesktop.org/show_bug.cgi?id=103540
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103821 https://bugs.freedesktop.org/show_bug.cgi?id=103821
fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105347 https://bugs.freedesktop.org/show_bug.cgi?id=105347
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
fdo#106947 https://bugs.freedesktop.org/show_bug.cgi?id=106947
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4382 -> Patchwork_9431
CI_DRM_4382: ffc2d866e9b04af3cc2244bb7448d7f7eb438a89 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4530: 0e98bf69f146eb72fe3a7c3b19a049b5786f0ca3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9431: 463bac186209c5a76063048fa8ff8ab18b7d17ce @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9431/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Update
drm_atomic_helper_commit_planes_on_crtc()to use explicit old/new states instead of relying onobj->state.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 58 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)drivers/gpu/drm/drm_atomic_helper.c +10
-5@@ -2342,11 +2342,13 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)const struct drm_crtc_helper_funcs *crtc_funcs;struct drm_crtc *crtc = old_crtc_state->crtc;struct drm_atomic_state *old_state = old_crtc_state->state; +struct drm_crtc_state *new_crtc_state = +drm_atomic_get_new_crtc_state (old_state, crtc);struct drm_plane *plane;unsigned plane_mask; plane_mask = old_crtc_state->plane_mask; - plane_mask |= crtc->state->plane_mask; + plane_mask |= new_crtc_state->plane_mask; crtc_funcs = crtc->helper_private;if (crtc_funcs && crtc_funcs->atomic_begin)@@ -2355,6 +2357,8 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)drm_for_each_plane_mask (plane, crtc->dev, plane_mask) {struct drm_plane_state *old_plane_state =drm_atomic_get_old_plane_state (old_state, plane); +struct drm_plane_state *new_plane_state = +drm_atomic_get_new_plane_state (old_state, plane);const struct drm_plane_helper_funcs *plane_funcs; plane_funcs = plane->helper_private;@@ -2362,13 +2366,14 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)if (!old_plane_state || !plane_funcs)continue ; -WARN_ON (plane->state->crtc && plane->state->crtc != crtc); +WARN_ON (new_plane_state->crtc && + new_plane_state->crtc != crtc); -if (drm_atomic_plane_disabling (old_plane_state, plane->state) && +if (drm_atomic_plane_disabling (old_plane_state, new_plane_state) && plane_funcs->atomic_disable) plane_funcs->atomic_disable (plane, old_plane_state); -else if (plane->state->crtc || -drm_atomic_plane_disabling (old_plane_state, plane->state)) +else if (new_plane_state->crtc || +drm_atomic_plane_disabling (old_plane_state, new_plane_state)) plane_funcs->atomic_update (plane, old_plane_state); }Signature · 6 lines
2.16.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Daniel Vetter
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Update
drm_atomic_helper_commit_planes_on_crtc()to use explicit old/new states instead of relying onobj->state.Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Daniel Vetter <[email protected]>
Thansk. Pushed to drm-misc-next.
Quoted 64 lines
Quoted 59 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)drivers/gpu/drm/drm_atomic_helper.c +10
-5@@ -2342,11 +2342,13 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)const struct drm_crtc_helper_funcs *crtc_funcs;struct drm_crtc *crtc = old_crtc_state->crtc;struct drm_atomic_state *old_state = old_crtc_state->state; +struct drm_crtc_state *new_crtc_state = +drm_atomic_get_new_crtc_state (old_state, crtc);struct drm_plane *plane;unsigned plane_mask; plane_mask = old_crtc_state->plane_mask; - plane_mask |= crtc->state->plane_mask; + plane_mask |= new_crtc_state->plane_mask; crtc_funcs = crtc->helper_private;if (crtc_funcs && crtc_funcs->atomic_begin)@@ -2355,6 +2357,8 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)drm_for_each_plane_mask (plane, crtc->dev, plane_mask) {struct drm_plane_state *old_plane_state =drm_atomic_get_old_plane_state (old_state, plane); +struct drm_plane_state *new_plane_state = +drm_atomic_get_new_plane_state (old_state, plane);const struct drm_plane_helper_funcs *plane_funcs; plane_funcs = plane->helper_private;@@ -2362,13 +2366,14 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)if (!old_plane_state || !plane_funcs)continue ; -WARN_ON (plane->state->crtc && plane->state->crtc != crtc); +WARN_ON (new_plane_state->crtc && + new_plane_state->crtc != crtc); -if (drm_atomic_plane_disabling (old_plane_state, plane->state) && +if (drm_atomic_plane_disabling (old_plane_state, new_plane_state) && plane_funcs->atomic_disable) plane_funcs->atomic_disable (plane, old_plane_state); -else if (plane->state->crtc || -drm_atomic_plane_disabling (old_plane_state, plane->state)) +else if (new_plane_state->crtc || +drm_atomic_plane_disabling (old_plane_state, new_plane_state)) plane_funcs->atomic_update (plane, old_plane_state); }Signature · 6 lines
2.16.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel