1. 10 5月, 2021 2 次提交
  2. 25 3月, 2021 1 次提交
  3. 06 11月, 2020 1 次提交
    • D
      drm/<drivers>: Constify struct drm_driver · 70a59dd8
      Daniel Vetter 提交于
      Only the following drivers aren't converted:
      - amdgpu, because of the driver_feature mangling due to virt support.
        Subsequent patch will address this.
      - nouveau, because DRIVER_ATOMIC uapi is still not the default on the
        platforms where it's supported (i.e. again driver_feature mangling)
      - vc4, again because of driver_feature mangling
      - qxl, because the ioctl table is somewhere else and moving that is
        maybe a bit too much, hence the num_ioctls assignment prevents a
        const driver structure.
      - arcpgu, because that is stuck behind a pending tiny-fication series
        from me.
      - legacy drivers, because legacy requires non-const drm_driver.
      
      Note that for armada I also went ahead and made the ioctl array const.
      
      Only cc'ing the driver people who've not been converted (everyone else
      is way too much).
      
      v2: Fix one misplaced const static, should be static const (0day)
      
      v3:
      - Improve commit message (Sam)
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: kernel test robot <lkp@intel.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: virtualization@lists.linux-foundation.org
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: nouveau@lists.freedesktop.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201104100425.1922351-5-daniel.vetter@ffwll.ch
      70a59dd8
  4. 26 10月, 2020 1 次提交
  5. 20 7月, 2020 1 次提交
    • P
      drm/imx: fix use after free · ba807c94
      Philipp Zabel 提交于
      Component driver structures allocated with devm_kmalloc() in bind() are
      freed automatically after unbind(). Since the contained drm structures
      are accessed afterwards in drm_mode_config_cleanup(), move the
      allocation into probe() to extend the driver structure's lifetime to the
      lifetime of the device. This should eventually be changed to use drm
      resource managed allocations with lifetime of the drm device.
      
      We also need to ensure that all componets are available during the
      unbind() so we need to call component_unbind_all() before we free
      non-devres resources like planes.
      
      Note this patch fixes the the use after free bug but introduces a
      possible boot loop issue. The issue is triggered if the HDMI support is
      enabled and a component driver always return -EPROBE_DEFER, see
      discussion [1] for more details.
      
      [1] https://lkml.org/lkml/2020/3/24/1467
      
      Fixes: 17b5001b ("imx-drm: convert to componentised device support")
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      [m.felsch@pengutronix: fix imx_tve_probe()]
      [m.felsch@pengutronix: resort component_unbind_all())
      [m.felsch@pengutronix: adapt commit message]
      Signed-off-by: NMarco Felsch <m.felsch@pengutronix.de>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      ba807c94
  6. 10 6月, 2020 2 次提交
  7. 02 4月, 2020 1 次提交
  8. 19 3月, 2020 1 次提交
  9. 17 7月, 2019 1 次提交
  10. 22 6月, 2019 1 次提交
  11. 21 6月, 2019 1 次提交
    • D
      drm/prime: Actually remove DRIVER_PRIME everywhere · 0424fdaf
      Daniel Vetter 提交于
      Split out to make the functional changes stick out more.
      
      All places where DRIVER_PRIME was used have been removed in previous
      patches already.
      
      v2: amdgpu gained DRIVER_SYNCOBJ_TIMELINE.
      
      v3: amdgpu lost DRIVER_SYNCOBJ_TIMELINE.
      
      v4: Don't add a space in i915_drv.c (Sam)
      
      v5: Add note that previous patches removed all the DRIVER_PRIME users
      already (Emil).
      
      v6: Fixupe ingenic (new driver) while applying.
      
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NEmil Velikov <emil.velikov@collabora.com>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: etnaviv@lists.freedesktop.org
      Cc: freedreno@lists.freedesktop.org
      Cc: intel-gfx@lists.freedesktop.org
      Cc: lima@lists.freedesktop.org
      Cc: linux-amlogic@lists.infradead.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-arm-msm@vger.kernel.org
      Cc: linux-aspeed@lists.ozlabs.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-stm32@st-md-mailman.stormreply.com
      Cc: linux-tegra@vger.kernel.org
      Cc: nouveau@lists.freedesktop.org
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: spice-devel@lists.freedesktop.org
      Cc: virtualization@lists.linux-foundation.org
      Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
      Cc: xen-devel@lists.xenproject.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20190617153924.414-1-daniel.vetter@ffwll.ch
      0424fdaf
  12. 22 2月, 2019 1 次提交
    • P
      drm/imx: ipuv3-plane: add zpos property · 74a3dba2
      Philipp Zabel 提交于
      Add a zpos property to planes. Call drm_atomic_helper_check() instead of
      calling drm_atomic_helper_check_modeset() and drm_atomic_check_planes()
      manually. This effectively adds a call to drm_atomic_normalize_zpos()
      before checking planes. Reorder atomic update to allow changing plane
      zpos without modeset.
      
      Note that the initial zpos is set in ipu_plane_state_reset(). The
      initial value set in ipu_plane_init() is just for show. The zpos
      parameter of drm_plane_create_zpos_property() is ignored because
      the newly created plane do not have state yet.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Tested-by: NMarius Vlad <marius.vlad@collabora.com>
      74a3dba2
  13. 19 2月, 2019 1 次提交
  14. 24 1月, 2019 1 次提交
  15. 05 11月, 2018 1 次提交
  16. 05 10月, 2018 1 次提交
  17. 27 9月, 2018 1 次提交
  18. 25 9月, 2018 1 次提交
  19. 01 8月, 2018 1 次提交
  20. 17 7月, 2018 2 次提交
  21. 19 12月, 2017 1 次提交
  22. 08 12月, 2017 1 次提交
  23. 30 11月, 2017 1 次提交
  24. 16 9月, 2017 1 次提交
  25. 29 7月, 2017 1 次提交
  26. 13 7月, 2017 1 次提交
  27. 31 5月, 2017 1 次提交
  28. 04 4月, 2017 1 次提交
  29. 16 3月, 2017 2 次提交
  30. 15 3月, 2017 2 次提交
    • P
      drm/imx: add deferred plane disabling · eb8c8880
      Philipp Zabel 提交于
      The DP (display processor) channel disable code tried to busy wait for
      the DP sync flow end interrupt status bit when disabling the partial
      plane without a full modeset. That never worked reliably, and it was
      disabled completely by the recent "gpu: ipu-v3: remove IRQ dance on DC
      channel disable" patch, causing ipu_wait_interrupt to always time out
      after 50 ms, which in turn would trigger a timeout in
      drm_atomic_helper_wait_for_vblanks.
      
      This patch changes ipu_plane_atomic_disable to only queue a DP channel
      register update at the next frame boundary and set a flag, which can be
      done without any waiting whatsoever. The imx_drm_atomic_commit_tail then
      calls a new ipu_plane_disable_deferred function that does the actual
      IDMAC teardown of the planes that are flagged for deferred disabling,
      after waiting for the vblank.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Reviewed-by: NLucas Stach <l.stach@pengutronix.de>
      eb8c8880
    • P
      drm/imx: don't wait for vblank and stop calling cleanup_planes in commit_tail · cf92fefd
      Philipp Zabel 提交于
      drm_atomic_helper_cleanup_planes only calls the cleanup_fb plane
      helpers, which we don't implement as a CMA framebuffer based driver.
      There is no reason to wait for vblanks in commit_tail only to do nothing
      afterwards.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Reviewed-by: NLucas Stach <l.stach@pengutronix.de>
      cf92fefd
  31. 14 3月, 2017 1 次提交
  32. 17 2月, 2017 1 次提交
  33. 12 2月, 2017 1 次提交
  34. 09 2月, 2017 1 次提交
  35. 08 2月, 2017 1 次提交