1. 11 Dec, 2018 1 commit
  2. 10 Sep, 2018 1 commit
  3. 05 Sep, 2018 1 commit
  4. 01 Aug, 2018 1 commit
  5. 23 Jul, 2018 1 commit
  6. 08 Mar, 2018 1 commit
  7. 01 Mar, 2018 1 commit
  8. 18 Feb, 2018 1 commit
  9. 08 Dec, 2017 1 commit
  10. 18 Sep, 2017 1 commit
  11. 08 Sep, 2017 1 commit
  12. 09 Aug, 2017 1 commit
    • Jeffy Chen's avatar
      drm/rockchip: Fix suspend crash when drm is not bound · 0fa375e6
      Jeffy Chen authored
      Currently we are allocating drm_device in rockchip_drm_bind, so if the
      suspend/resume code access it when drm is not bound, we would hit this
      [  253.402836] Unable to handle kernel NULL pointer dereference at virtual address 00000028
      [  253.402837] pgd = ffffffc06c9b0000
      [  253.402841] [00000028] *pgd=0000000000000000, *pud=0000000000000000
      [  253.402844] Internal error: Oops: 96000005 [#1] PREEMPT SMP
      [  253.402859] Modules linked in: btusb btrtl btbcm btintel bluetooth ath10k_pci ath10k_core ar10k_ath ar10k_mac80211 cfg80211 ip6table_filter asix usbnet mii
      [  253.402864] CPU: 4 PID: 1331 Comm: cat Not tainted 4.4.70 #15
      [  253.402865] Hardware name: Google Scarlet (DT)
      [  253.402867] task: ffffffc076c0ce00 ti: ffffffc06c2c8000 task.ti: ffffffc06c2c8000
      [  253.402871] PC is at rockchip_drm_sys_suspend+0x20/0x5c
      Add sanity checks to prevent that.
      Reported-by: default avatarBrian Norris <briannorris@chromium.com>
      Signed-off-by: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Link: https://patchwork.kernel.org/patch/9890297/
  13. 04 Aug, 2017 1 commit
    • Mark yao's avatar
      drm/rockchip: fix race with kms hotplug and fbdev · 8415ab56
      Mark yao authored
      According to the kerneldoc[0], should do fbdev setup before calling
      drm_kms_helper_poll_init(), otherwise, Kms hotplug event may race
      into fbdev helper initial, and fb_helper->dev may be NULL pointer,
      that would cause the bug:
      [    0.735411] [00000200] *pgd=00000000f6ffe003, *pud=00000000f6ffe003, *pmd=0000000000000000
      [    0.736156] Internal error: Oops: 96000005 [#1] PREEMPT SMP
      [    0.736648] Modules linked in:
      [    0.736930] CPU: 2 PID: 20 Comm: kworker/2:0 Not tainted 4.4.41 #20
      [    0.737480] Hardware name: Rockchip RK3399 Board rev2 (BOX) (DT)
      [    0.738020] Workqueue: events cdn_dp_pd_event_work
      [    0.738447] task: ffffffc0f21f3100 ti: ffffffc0f2218000 task.ti: ffffffc0f2218000
      [    0.739109] PC is at mutex_lock+0x14/0x44
      [    0.739469] LR is at drm_fb_helper_hotplug_event+0x30/0x114
      [    0.756253] [<ffffff8008a344f4>] mutex_lock+0x14/0x44
      [    0.756260] [<ffffff8008445708>] drm_fb_helper_hotplug_event+0x30/0x114
      [    0.756271] [<ffffff8008473c84>...
  14. 29 Jul, 2017 1 commit
  15. 26 Jul, 2017 1 commit
    • Rob Herring's avatar
      drm: Convert to using %pOF instead of full_name · 4bf99144
      Rob Herring authored
      Now that we have a custom printf format specifier, convert users of
      full_name to use %pOF instead. This is preparation to remove storing
      of the full path string for each node.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Joonyoung Shim <jy0922.shim@samsung.com>
      Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: Javier Martinez Canillas <javier@osg.samsung.com>
      Cc: Xinliang Liu <z.liuxinliang@hisilicon.com>
      Cc: Rongrong Zou <zourongrong@gmail.com>
      Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
      Cc: Chen Feng <puck.chen@hisilicon.com>
      Cc: CK Hu <ck.hu@mediatek.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Carlo Caione <carlo@caione.org>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-mediatek@lists.infradead.org
      Cc: linux-amlogic@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Partially-Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      [seanpaul changed subject prefix and fixed conflict in stm/ltdc.c]
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
  16. 26 Jun, 2017 1 commit
  17. 07 Apr, 2017 2 commits
  18. 24 Mar, 2017 1 commit
  19. 15 Feb, 2017 1 commit
  20. 09 Feb, 2017 1 commit
  21. 07 Feb, 2017 1 commit
  22. 30 Dec, 2016 1 commit
  23. 02 Nov, 2016 1 commit
  24. 25 Oct, 2016 1 commit
  25. 04 Oct, 2016 1 commit
  26. 22 Sep, 2016 1 commit
  27. 23 Aug, 2016 2 commits
    • Sean Paul's avatar
      drm/rockchip: Convert psr_list_mutex to spinlock and use it · 18d8d4d2
      Sean Paul authored
      This patch converts the psr_list_mutex to a spinlock and locks
      all access to psr_list to avoid races (however unlikely they
      Reviewed-by: default avatarYakir Yang <ykk@rock-chips.com>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
    • Yakir Yang's avatar
      drm/rockchip: add an common abstracted PSR driver · 5182c1a5
      Yakir Yang authored
      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: default avatarYakir Yang <ykk@rock-chips.com>
      [seanpaul removed leftover psr_enabled/psr_work kruft from drm_vop.c]
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
  28. 19 Jul, 2016 2 commits
  29. 12 Jul, 2016 1 commit
  30. 21 Jun, 2016 1 commit
  31. 10 Jun, 2016 4 commits
  32. 01 Jun, 2016 2 commits
  33. 20 May, 2016 1 commit
    • Daniel Vetter's avatar
      drm: Nuke ->vblank_disable_allowed · fcee5906
      Daniel Vetter authored
      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: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
      Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>