diff options
author | Dave Airlie <airlied@redhat.com> | 2016-03-15 21:09:26 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-03-15 21:09:26 -0400 |
commit | 1a4be38a3a46898fee61b3ec1631d273dd66fcf2 (patch) | |
tree | 41b84d54c0fd5dfb9bfe628f04b8ad154056e02f /drivers/gpu/drm/drm_crtc.c | |
parent | c51e034fedb002fcd0c012864d79d131cd629369 (diff) | |
parent | c1f415c9acb5877c408d9311eb837d7d50636a68 (diff) |
Merge tag 'topic/drm-misc-2016-03-14' of git://anongit.freedesktop.org/drm-intel into drm-next
* tag 'topic/drm-misc-2016-03-14' of git://anongit.freedesktop.org/drm-intel: (27 commits)
drm: atomic helper: do not unreference error pointer
drm/edid: Extract SADs properly from multiple audio data blocks
drm: fix blob pointer check
drm: introduce pipe color correction properties
drm/atomic: Clean up update_connector_routing.
drm/atomic: Clean up steal_encoder, v2.
drm/atomic: Handle encoder assignment conflicts in a separate check, v3.
drm/atomic: Handle encoder stealing from set_config better.
drm/atomic: Always call steal_encoder, v2.
drm/ast: removed optional dummy crtc mode_fixup function.
drm/bochs: removed optional dummy crtc mode_fixup function.
drm/fsl-dcu: removed optional dummy crtc mode_fixup function.
drm/virtio: removed optional dummy crtc mode_fixup function.
drm/nouveau/dispnv04: removed optional dummy crtc mode_fixup function.
drm/atmel-hlcdc: remove optional dummy crtc mode_fixup function.
drm/sti: removed optional dummy crtc mode_fixup function.
drm/shmobile: removed optional dummy crtc mode_fixup function.
drm/msm/mdp: removed optional dummy crtc mode_fixup function.
drm/omapdrm: removed optional dummy crtc mode_fixup function.
drm/rcar-du: removed optional dummy crtc mode_fixup function.
...
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 84514001dcef..e08f962288d9 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -430,9 +430,7 @@ EXPORT_SYMBOL(drm_framebuffer_init); | |||
430 | static void __drm_framebuffer_unregister(struct drm_device *dev, | 430 | static void __drm_framebuffer_unregister(struct drm_device *dev, |
431 | struct drm_framebuffer *fb) | 431 | struct drm_framebuffer *fb) |
432 | { | 432 | { |
433 | mutex_lock(&dev->mode_config.idr_mutex); | 433 | drm_mode_object_put(dev, &fb->base); |
434 | idr_remove(&dev->mode_config.crtc_idr, fb->base.id); | ||
435 | mutex_unlock(&dev->mode_config.idr_mutex); | ||
436 | 434 | ||
437 | fb->base.id = 0; | 435 | fb->base.id = 0; |
438 | } | 436 | } |
@@ -1554,6 +1552,41 @@ static int drm_mode_create_standard_properties(struct drm_device *dev) | |||
1554 | return -ENOMEM; | 1552 | return -ENOMEM; |
1555 | dev->mode_config.prop_mode_id = prop; | 1553 | dev->mode_config.prop_mode_id = prop; |
1556 | 1554 | ||
1555 | prop = drm_property_create(dev, | ||
1556 | DRM_MODE_PROP_BLOB, | ||
1557 | "DEGAMMA_LUT", 0); | ||
1558 | if (!prop) | ||
1559 | return -ENOMEM; | ||
1560 | dev->mode_config.degamma_lut_property = prop; | ||
1561 | |||
1562 | prop = drm_property_create_range(dev, | ||
1563 | DRM_MODE_PROP_IMMUTABLE, | ||
1564 | "DEGAMMA_LUT_SIZE", 0, UINT_MAX); | ||
1565 | if (!prop) | ||
1566 | return -ENOMEM; | ||
1567 | dev->mode_config.degamma_lut_size_property = prop; | ||
1568 | |||
1569 | prop = drm_property_create(dev, | ||
1570 | DRM_MODE_PROP_BLOB, | ||
1571 | "CTM", 0); | ||
1572 | if (!prop) | ||
1573 | return -ENOMEM; | ||
1574 | dev->mode_config.ctm_property = prop; | ||
1575 | |||
1576 | prop = drm_property_create(dev, | ||
1577 | DRM_MODE_PROP_BLOB, | ||
1578 | "GAMMA_LUT", 0); | ||
1579 | if (!prop) | ||
1580 | return -ENOMEM; | ||
1581 | dev->mode_config.gamma_lut_property = prop; | ||
1582 | |||
1583 | prop = drm_property_create_range(dev, | ||
1584 | DRM_MODE_PROP_IMMUTABLE, | ||
1585 | "GAMMA_LUT_SIZE", 0, UINT_MAX); | ||
1586 | if (!prop) | ||
1587 | return -ENOMEM; | ||
1588 | dev->mode_config.gamma_lut_size_property = prop; | ||
1589 | |||
1557 | return 0; | 1590 | return 0; |
1558 | } | 1591 | } |
1559 | 1592 | ||