1. 15 2月, 2017 1 次提交
  2. 30 12月, 2016 1 次提交
  3. 02 11月, 2016 1 次提交
  4. 25 10月, 2016 1 次提交
  5. 04 10月, 2016 1 次提交
  6. 22 9月, 2016 1 次提交
  7. 23 8月, 2016 2 次提交
    • S
      drm/rockchip: Convert psr_list_mutex to spinlock and use it · 18d8d4d2
      Sean Paul 提交于
      This patch converts the psr_list_mutex to a spinlock and locks
      all access to psr_list to avoid races (however unlikely they
      were).
      Reviewed-by: NYakir Yang <ykk@rock-chips.com>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      18d8d4d2
    • Y
      drm/rockchip: add an common abstracted PSR driver · 5182c1a5
      Yakir Yang 提交于
      The PSR driver have exported four symbols for specific device driver, and
      it's safe to call them in interrupt context:
      - rockchip_drm_psr_register()
      - rockchip_drm_psr_unregister()
      - rockchip_drm_psr_enable()
      - rockchip_drm_psr_disable()
      - rockchip_drm_psr_flush()
      
      Encoder driver should call the register/unregister interfaces to hook
      itself into common PSR driver, encoder have implement the 'psr_set'
      callback which use the set PSR state in hardware side.
      
      Crtc driver would call the enable/disable interfaces when vblank is
      enable/disable, after that the common PSR driver would call the encoder
      registered callback to set the PSR state.
      
      Fb driver would call the flush interface in 'fb->dirty' callback, this
      helper function would force all PSR enabled encoders to exit from PSR
      for 3 seconds.
      Signed-off-by: NYakir Yang <ykk@rock-chips.com>
      [seanpaul removed leftover psr_enabled/psr_work kruft from drm_vop.c]
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      5182c1a5
  8. 19 7月, 2016 2 次提交
  9. 12 7月, 2016 1 次提交
  10. 21 6月, 2016 1 次提交
  11. 10 6月, 2016 4 次提交
  12. 01 6月, 2016 2 次提交
  13. 21 5月, 2016 1 次提交
    • D
      drm: Nuke ->vblank_disable_allowed · fcee5906
      Daniel Vetter 提交于
      This was added in
      
      commit 0a3e67a4
      Author: Jesse Barnes <jbarnes@virtuousgeek.org>
      Date:   Tue Sep 30 12:14:26 2008 -0700
      
          drm: Rework vblank-wait handling to allow interrupt reduction.
      
      to stay backwards-compatible with old UMS code that didn't even tell
      the kernel when it did a modeset, so that the kernel could
      save/restore vblank counters. At worst this means vblanks will be
      somewhat funky on a setup that very likely no one still runs.
      
      So let's just nuke it.
      
      Plan B would be to set it unconditionally in drm_vblank_init for kms
      drivers, instead of in each driver separately. So if this patch breaks
      anything please only restore the hunks in drmP.h and drm_irq.c, plus
      add a check for DRIVER_MODESET in drm_vblank_init.
      
      Stumbled over this in a discussion on irc with Chris.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Liviu Dudau <liviu.dudau@arm.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Acked-by: NLiviu Dudau <Liviu.Dudau@arm.com>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      fcee5906
  14. 03 5月, 2016 3 次提交
  15. 28 3月, 2016 1 次提交
    • J
      drm/rockchip: cancel pending vblanks on close · f135046e
      John Keeping 提交于
      When closing the DRM device while a vblank is pending, we access
      file_priv after it has been free'd, which gives:
      
        Unable to handle kernel NULL pointer dereference at virtual address 00000000
        ...
        PC is at __list_add+0x5c/0xe8
        LR is at send_vblank_event+0x54/0x1f0
        ...
        [<c02952e8>] (__list_add) from [<c031a7b4>] (send_vblank_event+0x54/0x1f0)
        [<c031a760>] (send_vblank_event) from [<c031a9c0>] (drm_send_vblank_event+0x70/0x78)
        [<c031a950>] (drm_send_vblank_event) from [<c031a9f8>] (drm_crtc_send_vblank_event+0x30/0x34)
        [<c031a9c8>] (drm_crtc_send_vblank_event) from [<c0339ad8>] (vop_isr+0x224/0x28c)
        [<c03398b4>] (vop_isr) from [<c0081780>] (handle_irq_event_percpu+0x12c/0x3e4)
      
      This can be triggered somewhat reliably with:
      
      	modetest -M rockchip -v -s ...
      
      Add a preclose hook to the driver so that we can discard any pending
      vblank events when the device is closed.
      Signed-off-by: NJohn Keeping <john@metanate.com>
      f135046e
  16. 01 3月, 2016 1 次提交
  17. 18 1月, 2016 1 次提交
    • M
      drm/rockchip: cleanup unnecessary export symbol · 63087aae
      Mark Yao 提交于
      Now rockchip_drm_vop.c is build into rockchipdrm.ko, so
      no need to export following symbol anymore:
          rockchip_drm_dma_attach_device
          rockchip_drm_dma_detach_device
          rockchip_drm_dma_attach_device
          rockchip_drm_dma_detach_device
          rockchip_register_crtc_funcs
          rockchip_unregister_crtc_funcs
          rockchip_fb_get_gem_obj
      Signed-off-by: NMark Yao <mark.yao@rock-chips.com>
      63087aae
  18. 28 12月, 2015 3 次提交
  19. 15 12月, 2015 2 次提交
  20. 13 11月, 2015 1 次提交
  21. 20 10月, 2015 1 次提交
  22. 07 10月, 2015 1 次提交
  23. 06 10月, 2015 1 次提交
    • T
      drm/irq: Use unsigned int pipe in public API · 88e72717
      Thierry Reding 提交于
      This continues the pattern started in commit cc1ef118 ("drm/irq:
      Make pipe unsigned and name consistent"). This is applied to the public
      APIs and driver callbacks, so pretty much all drivers need to be updated
      to match the new prototypes.
      
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Jianwei Wang <jianwei.wang.chn@gmail.com>
      Cc: Alison Wang <alison.wang@freescale.com>
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
      Cc: Vincent Abriou <vincent.abriou@st.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      88e72717
  24. 13 7月, 2015 1 次提交
  25. 17 6月, 2015 1 次提交
  26. 08 4月, 2015 1 次提交
  27. 03 4月, 2015 1 次提交
  28. 08 1月, 2015 1 次提交
  29. 02 12月, 2014 1 次提交