projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7de76
)
drm/atomic-helper: WARN if legacy plane fb pointers are bogus when committing duplica...
author
Ville Syrjälä
<
[email protected]
>
Thu, 22 Mar 2018 15:22:54 +0000
(17:22 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Thu, 29 Mar 2018 16:14:21 +0000
(19:14 +0300)
drm_atomic_helper_commit_duplicated_state() should only be called
resume/reset/load_detect paths where plane->old_fb should always be
NULL and plane->fb should be equal to the new_plane_state->fb.
Assert that is indeed the case.
Cc:
[email protected]
Cc:
[email protected]
Cc: Dave Airlie <
[email protected]
> (v1)
Cc: Maarten Lankhorst <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
drivers/gpu/drm/drm_atomic_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_atomic_helper.c
b/drivers/gpu/drm/drm_atomic_helper.c
index ef4ddfecc4a4b9a31cd560ed9c3aec830eac25aa..fe09d6254c1920189bce77fc8315a22e00b6a8ac 100644
(file)
--- a/
drivers/gpu/drm/drm_atomic_helper.c
+++ b/
drivers/gpu/drm/drm_atomic_helper.c
@@
-3118,8
+3118,13
@@
int drm_atomic_helper_commit_duplicated_state(struct drm_atomic_state *state,
state->acquire_ctx = ctx;
- for_each_new_plane_in_state(state, plane, new_plane_state, i)
+ for_each_new_plane_in_state(state, plane, new_plane_state, i) {
+ WARN_ON(plane->crtc != new_plane_state->crtc);
+ WARN_ON(plane->fb != new_plane_state->fb);
+ WARN_ON(plane->old_fb);
+
state->planes[i].old_state = plane->state;
+ }
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)
state->crtcs[i].old_state = crtc->state;