1. 19 5月, 2016 3 次提交
    • A
      drm: remove unused dev variables · c6740c9c
      Arnd Bergmann 提交于
      After drm_gem_object_lookup() was changed along with all its callers,
      we have several drivers that have unused variables:
      
      drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set':
      drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/nouveau/nouveau_gem.c: In function 'validate_init':
      drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set':
      drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs':
      drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable]
      
      This fixes all the instances I found with ARM randconfig builds so far.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: a8ad0bd8 ("drm: Remove unused drm_device from drm_gem_object_lookup()")
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1463587653-3035181-6-git-send-email-arnd@arndb.de
      c6740c9c
    • A
      drm: mediatek: fixup drm_gem_object_lookup API change · de4ae068
      Arnd Bergmann 提交于
      The drm_gem_object_lookup() function prototype changed while this
      driver was added, so it fails to build now:
      
      drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset':
      drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
        obj = drm_gem_object_lookup(dev, file_priv, handle);
      
      This fixes the new caller as well.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: a8ad0bd8 ("drm: Remove unused drm_device from drm_gem_object_lookup()")
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1463587653-3035181-4-git-send-email-arnd@arndb.de
      de4ae068
    • J
      drm/tegra: Fix crash caused by reference count imbalance · 280dc0e1
      Jon Hunter 提交于
      Commit d2307dea ("drm/atomic: use connector references (v3)") added
      reference counting for DRM connectors and this caused a crash when
      exercising system suspend on Tegra114 Dalmore.
      
      The Tegra DSI driver implements a Tegra specific function,
      tegra_dsi_connector_duplicate_state(), to duplicate the connector state
      and destroys the state using the generic helper function,
      drm_atomic_helper_connector_destroy_state(). Following commit
      d2307dea ("drm/atomic: use connector references (v3)") there is
      now an imbalance in the connector reference count because the Tegra
      function to duplicate state does not take a reference when duplicating
      the state information. However, the generic helper function to destroy
      the state information assumes a reference has been taken and during
      system suspend, when the connector state is destroyed, this leads to a
      crash because we attempt to put the reference for an object that has
      already been freed.
      
      Fix this by calling __drm_atomic_helper_connector_duplicate_state() from
      tegra_dsi_connector_duplicate_state() to ensure that we take a reference
      on a connector if crtc is set. Note that this will also copy the
      connector state a 2nd time, but this should be harmless.
      
      By fixing tegra_dsi_connector_duplicate_state() to take a reference,
      although a crash was no longer seen, it was then observed that after
      each system suspend-resume cycle, the reference would be one greater
      than before the suspend-resume cycle. Following commit d2307dea
      ("drm/atomic: use connector references (v3)"), it was found that we
      also need to put the reference when calling the function
      tegra_dsi_connector_reset() before freeing the state. Fix this by
      updating tegra_dsi_connector_reset() to call the function
      __drm_atomic_helper_connector_destroy_state() in order to put the
      reference for the connector.
      
      Fixes: d2307dea ("drm/atomic: use connector references (v3)")
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1463585856-16606-1-git-send-email-jonathanh@nvidia.com
      280dc0e1
  2. 18 5月, 2016 2 次提交
  3. 17 5月, 2016 12 次提交
  4. 13 5月, 2016 1 次提交
    • D
      Merge tag 'drm/panel/for-4.7-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next · cf15fabd
      Dave Airlie 提交于
      drm/panel: Changes for v4.7-rc1
      
      This contains support for a bunch of new panels in the simple panel
      driver along with some cleanup and support for a new Analogix HDMI to DP
      bridge.
      
      * tag 'drm/panel/for-4.7-rc1' of git://anongit.freedesktop.org/tegra/linux:
        drm/panel: simple: Add support for TPK U.S.A. LLC Fusion 7" and 10.1" panels
        drm/bridge: Add Analogix anx78xx support
        devicetree: Add ANX7814 SlimPort transmitter binding
        of: Add vendor prefix for Analogix Semiconductor
        drm/dp: Add define to set 0.5% down-spread in MAX_DOWNSPREAD register
        drm/panel: simple: Add support for Innolux AT070TN92
        drm/panel: simple: Remove useless drm_mode_set_name()
        drm/panel: simple: Set appropriate mode type
        drm/panel: simple: Add timings for the Olimex LCD-OLinuXino-4.3TS
        drm/panel: simple: Add the 7" DPI panel from Adafruit
        of: Add vendor prefix for On Tat Industrial Company.
      cf15fabd
  5. 12 5月, 2016 22 次提交