Skip to content
  1. May 04, 2021
  2. May 03, 2021
    • Rob Clark's avatar
      drm/msm/dpu: Delete bonkers code · a712b307
      Rob Clark authored
      
      
      dpu_crtc_atomic_flush() was directly poking it's attached planes in a
      code path that ended up in dpu_plane_atomic_update(), even if the plane
      was not involved in the current atomic update.  While a bit dubious,
      this worked before because plane->state would always point to something
      valid.  But now using drm_atomic_get_new_plane_state() we could get a
      NULL state pointer instead, leading to:
      
         [   20.873273] Call trace:
         [   20.875740]  dpu_plane_atomic_update+0x5c/0xed0
         [   20.880311]  dpu_plane_restore+0x40/0x88
         [   20.884266]  dpu_crtc_atomic_flush+0xf4/0x208
         [   20.888660]  drm_atomic_helper_commit_planes+0x150/0x238
         [   20.894014]  msm_atomic_commit_tail+0x1d4/0x7a0
         [   20.898579]  commit_tail+0xa4/0x168
         [   20.902102]  drm_atomic_helper_commit+0x164/0x178
         [   20.906841]  drm_atomic_commit+0x54/0x60
         [   20.910798]  drm_atomic_connector_commit_dpms+0x10c/0x118
         [   20.916236]  drm_mode_obj_set_property_ioctl+0x1e4/0x440
         [   20.921588]  drm_connector_property_set_ioctl+0x60/0x88
         [   20.926852]  drm_ioctl_kernel+0xd0/0x120
         [   20.930807]  drm_ioctl+0x21c/0x478
         [   20.934235]  __arm64_sys_ioctl+0xa8/0xe0
         [   20.938193]  invoke_syscall+0x64/0x130
         [   20.941977]  el0_svc_common.constprop.3+0x5c/0xe0
         [   20.946716]  do_el0_svc+0x80/0xa0
         [   20.950058]  el0_svc+0x20/0x30
         [   20.953145]  el0_sync_handler+0x88/0xb0
         [   20.957014]  el0_sync+0x13c/0x140
      
      The reason for the codepath seems dubious, the atomic suspend/resume
      heplers should handle the power-collapse case.  If not, the CRTC's
      atomic_check() should be adding the planes to the atomic update.
      
      Reported-by: default avatarStephen Boyd <swboyd@chromium.org>
      Reported-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Fixes: 37418bf1
      
       ("drm: Use state helper instead of the plane state pointer")
      Tested-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210430171744.1721408-1-robdclark@gmail.com
      a712b307
  3. Apr 27, 2021
  4. Apr 23, 2021
  5. Apr 21, 2021
  6. Apr 16, 2021
    • Adrien Grassein's avatar
      drm/bridge: lt8912b: fix incorrect handling of of_* return values · 5a7bd259
      Adrien Grassein authored
      A static analysis shows several issues in the driver code at
      probing time.
      
      DT parsing errors were bad handled and could lead to bugs:
        - Bad error detection;
        - Bad release of resources
      
      Fixes: 30e2ae94
      
       ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarAdrien Grassein <adrien.grassein@gmail.com>
      Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210415183639.1487-1-rdunlap@infradead.org
      Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
      5a7bd259
    • Randy Dunlap's avatar
      drm: bridge: fix LONTIUM use of mipi_dsi_() functions · ad085b3a
      Randy Dunlap authored
      The Lontium DRM bridge drivers use mipi_dsi_() function interfaces so
      they need to select DRM_MIPI_DSI to prevent build errors.
      
      ERROR: modpost: "mipi_dsi_attach" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_register_full" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
      ERROR: modpost: "of_find_mipi_dsi_host_by_node" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_unregister" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
      ERROR: modpost: "mipi_dsi_detach" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
      ERROR: modpost: "mipi_dsi_attach" [drivers/gpu/drm/bridge/lontium-lt9611.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_register_full" [drivers/gpu/drm/bridge/lontium-lt9611.ko] undefined!
      ERROR: modpost: "of_find_mipi_dsi_host_by_node" [drivers/gpu/drm/bridge/lontium-lt9611.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_unregister" [drivers/gpu/drm/bridge/lontium-lt9611.ko] undefined!
      ERROR: modpost: "mipi_dsi_detach" [drivers/gpu/drm/bridge/lontium-lt9611.ko] undefined!
      WARNING: modpost: suppressed 5 unresolved symbol warnings because there were too many)
      
      Fixes: 23278bf5 ("drm/bridge: Introduce LT9611 DSI to HDMI bridge")
      Fixes: 0cbbd5b1 ("drm: bridge: add support for lontium LT9611UXC bridge")
      Fixes: 30e2ae94
      
       ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarAdren Grassein <adrien.grassein@gmail.com>
      Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Vinod Koul <vkoul@kernel.org>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Cc: Adrien Grassein <adrien.grassein@gmail.com>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210415183639.1487-1-rdunlap@infradead.org
      ad085b3a
    • Randy Dunlap's avatar
      drm: bridge: fix ANX7625 use of mipi_dsi_() functions · ed01fca3
      Randy Dunlap authored
      The Analogix DRM ANX7625 bridge driver uses mips_dsi_() function
      interfaces so it should select DRM_MIPI_DSI to prevent build errors.
      
      ERROR: modpost: "mipi_dsi_attach" [drivers/gpu/drm/bridge/analogix/anx7625.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_register_full" [drivers/gpu/drm/bridge/analogix/anx7625.ko] undefined!
      ERROR: modpost: "of_find_mipi_dsi_host_by_node" [drivers/gpu/drm/bridge/analogix/anx7625.ko] undefined!
      ERROR: modpost: "mipi_dsi_device_unregister" [drivers/gpu/drm/bridge/analogix/anx7625.ko] undefined!
      ERROR: modpost: "mipi_dsi_detach" [drivers/gpu/drm/bridge/analogix/anx7625.ko] undefined!
      
      Fixes: 8bdfc5da
      
       ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
      Cc: Xin Ji <xji@analogixsemi.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210415183619.1431-1-rdunlap@infradead.org
      ed01fca3
  7. Apr 08, 2021
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2021-04-01' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · 9c0fed84
      Dave Airlie authored
      
      
      Features:
      - Add support for FBs requiring a power-of-two stride padding (Imre)
      
      Refactoring:
      - Disassociate display version from gen (Matt)
      - Refactor legacy DP and HDMI code to separate files (Ville)
      - Refactor FB plane code to a separate file (Imre)
      - Refactor VBT child device info parsing and usage (Jani)
      - Refactor KBL/TGL/ADL-S display and gt stepping schemes (Jani)
      
      Fixes:
      - DP Link-Training Tunable PHY Repeaters (LTTPR) fixes (Imre)
      - HDCP fixes (Anshuman)
      - DP 2.0 HDMI 2.1 PCON Fixed Rate Link (FRL) fixes (Ankit)
      - Set HDA link parameters in driver (Kai)
      - Fix enabled_planes bitmask (Ville)
      - Fix transposed arguments to skl_plane_wm_level() (Ville)
      - Stop adding planes to the commit needlessly (Ville)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87v996ml17.fsf@intel.com
      9c0fed84
    • Dave Airlie's avatar
      Merge tag 'drm-intel-gt-next-2021-04-06' of... · 41d1d0c5
      Dave Airlie authored
      
      Merge tag 'drm-intel-gt-next-2021-04-06' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Driver Changes:
      
      - Prepare for local/device memory support on DG1 by starting
        to use it for kernel internal allocations: context, ring
        and engine scratch (Matt A, CQ, Abdiel, Imre)
      - Sandybridge fix to avoid hard hang on ring resume (Chris)
      - Limit imported dma-buf size to int32 (Matt A)
      - Double check heartbeat timeout before resetting (Chris)
      
      - Use new tasklet API for execution list (Emil)
      - Fix SPDX checkpats warnings (Chris)
      - Fixes for various checkpatch warnings (Chris)
      - Selftest improvements (Chris)
      - Move the defer_request waiter active assertion to correct spot (Chris)
      - Make local-memory probing a GT operation (Matt, Tvrtko)
      - Protect against request freeing during cancellation on wedging (Chris)
      - Retire unexpected starting state error dumping (Chris)
      - Distinction of memory regions in debugging (Zbigniew)
      - Always flush the submission queue on checking for idle (Chris)
      
      - Consolidate 2big error check to helper (Matt)
      - Decrease number of subplatform bits (Tvrtko)
      - Remove unused internal request priority levels (Chris)
      - Document the unused internal header bits in buddy allocator (Matt)
      - Cleanup the region class/instance encoding (Matt)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YGxksaZGXHnFxlwg@jlahtine-mobl.ger.corp.intel.com
      41d1d0c5
    • Dave Airlie's avatar
      Merge tag 'mediatek-drm-next-5.13' of... · 0c799717
      Dave Airlie authored
      
      Merge tag 'mediatek-drm-next-5.13' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-next
      
      Mediatek DRM Next for Linux 5.13
      
      1. Fine tune the line time for EOTp.
      2. Add support mt8192 dpi.
      3. Make crtc config-updating atomic.
      4. Don't support hdmi connector creation.
      
      From: Chun-Kuang Hu <chunkuang.hu@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210405082248.3578-1-chunkuang.hu@kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      0c799717
  8. Apr 07, 2021
  9. Apr 01, 2021
  10. Mar 31, 2021
  11. Mar 30, 2021