diff options
| author | Daniel Vetter <[email protected]> | 2014-07-27 13:42:42 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2014-08-08 17:46:52 +0200 |
| commit | 3d30a59bfcb7c96d4aacdb053c2ccc49394b2311 (patch) | |
| tree | 6adc99304307bbe49b51a259a72232a13ca7b9ef /tools/perf/scripts/python | |
| parent | d059f652e73c35678d28d4cd09ab2cec89696af9 (diff) | |
drm: Move ->old_fb from crtc to plane
Atomic implemenations for legacy ioctls must be able to drop locks.
Which doesn't cause havoc since we only do that while constructing
the new state, so no driver or hardware state change has happened.
The only troubling bit is the fb refcounting the core does - if
someone else has snuck in then it might potentially unref an
outdated framebuffer. To fix that move the old_fb temporary storage
into struct drm_plane for all ioctls, so that the atomic helpers can
update it.
v2: Fix up the error case handling as suggested by Matt Roper and just
grab locks uncoditionally - there's no point in optimizing the locking
for when userspace gets it wrong.
Cc: Matt Roper <[email protected]>
Cc: Dave Airlie <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions