diff options
author | Dave Airlie <airlied@redhat.com> | 2015-07-24 00:28:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-07-24 00:28:16 -0400 |
commit | fa78ceab99e4481e17ab6b6a88257c1c7c23d55a (patch) | |
tree | be249fb49f622895bd32e1e662983928d41b254c /drivers/gpu/drm/drm_crtc.c | |
parent | 5da612fa42465c6dda745e1b9fb514a014d23b11 (diff) | |
parent | f9fe4b9b2ad4f2b801fdff3d634b07c9f9fc4327 (diff) |
Merge tag 'topic/drm-misc-2015-07-23' of git://anongit.freedesktop.org/drm-intel into drm-next
Update drm-misc pull request since the first one didn't go in yet. Few
atomic helper patches, rejecting some old dri1 crap for modern drivers and
a few trivial things on top.
* tag 'topic/drm-misc-2015-07-23' of git://anongit.freedesktop.org/drm-intel:
drm/mgag200: remove unneeded variable
drm/mgag200: remove unused variables
drm/atomic: Only update crtc->x/y if it's part of the state, v2.
drm/fb: drop panic handling
drm: Fix warning with make xmldocs caused by drm_irq.c
drm/gem: rip out drm vma accounting for gem mmaps
drm/fourcc: Add formats R8, RG88, GR88
drm/atomic: Cleanup on error properly in the atomic ioctl.
drm: Update plane->fb also for page_flip
drm: remove redundant code form drm_ioc32.c
drm: reset empty state in transitional helpers
drm/crtc-helper: Fixup error handling in drm_helper_crtc_mode_set
drm/atomic: Update old_fb after setting a property.
drm: Remove useless blank line
drm: Reject DRI1 hw lock ioctl functions for kms drivers
drm: Convert drm_legacy_ctxbitmap_init to void return type
drm: Turn off Legacy Context Functions
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 357bd04a173b..9b6cdcbbe5bb 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -4301,7 +4301,6 @@ void drm_property_unreference_blob(struct drm_property_blob *blob) | |||
4301 | mutex_unlock(&dev->mode_config.blob_lock); | 4301 | mutex_unlock(&dev->mode_config.blob_lock); |
4302 | else | 4302 | else |
4303 | might_lock(&dev->mode_config.blob_lock); | 4303 | might_lock(&dev->mode_config.blob_lock); |
4304 | |||
4305 | } | 4304 | } |
4306 | EXPORT_SYMBOL(drm_property_unreference_blob); | 4305 | EXPORT_SYMBOL(drm_property_unreference_blob); |
4307 | 4306 | ||
@@ -5349,13 +5348,7 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev, | |||
5349 | /* Keep the old fb, don't unref it. */ | 5348 | /* Keep the old fb, don't unref it. */ |
5350 | crtc->primary->old_fb = NULL; | 5349 | crtc->primary->old_fb = NULL; |
5351 | } else { | 5350 | } else { |
5352 | /* | 5351 | crtc->primary->fb = fb; |
5353 | * Warn if the driver hasn't properly updated the crtc->fb | ||
5354 | * field to reflect that the new framebuffer is now used. | ||
5355 | * Failing to do so will screw with the reference counting | ||
5356 | * on framebuffers. | ||
5357 | */ | ||
5358 | WARN_ON(crtc->primary->fb != fb); | ||
5359 | /* Unref only the old framebuffer. */ | 5352 | /* Unref only the old framebuffer. */ |
5360 | fb = NULL; | 5353 | fb = NULL; |
5361 | } | 5354 | } |