diff options
| author | Matt Roper <[email protected]> | 2015-02-03 13:10:04 -0800 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2015-02-13 23:28:01 +0100 |
| commit | afd65eb4cc0578a9c07d621acdb8a570e2782bf7 (patch) | |
| tree | e57cdf0a92da0f5bcb1dd184d12a65393942f56f /tools/perf/scripts/python/syscall-counts.py | |
| parent | 62659920cf2113b76607b87595dbebe2f5f8601c (diff) | |
drm/i915: Ensure plane->state->fb stays in sync with plane->fb
plane->state->fb and plane->fb should always reference the same FB so
that atomic and legacy codepaths have the same view of display state.
In commit
commit db068420560511de80ac59222644f2bdf278c3d5
Author: Matt Roper <[email protected]>
Date: Fri Jan 30 16:22:36 2015 -0800
drm/i915: Keep plane->state updated on pageflip
we already fixed one case where these two pointers could get out of
sync. However it turns out there are a few other places (mainly dealing
with initial FB setup at boot) that directly set plane->fb and neglect
to update plane->state->fb. If we never do a successful update through
the atomic pipeline, the RmFB cleanup code will look at the
plane->state->fb pointer, which has never actually been set to a
legitimate value, and try to clean it up, leading to BUG's.
Add a quick helper function to synchronize plane->state->fb with
plane->fb (and update reference counts accordingly) and call it
everywhere the driver tries to manually set plane->fb outside of the
atomic pipeline.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88909
Signed-off-by: Matt Roper <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions