1. 13 7月, 2016 6 次提交
  2. 30 5月, 2016 1 次提交
  3. 23 5月, 2016 1 次提交
    • P
      drm/imx: Match imx-ipuv3-crtc components using device node in platform data · 310944d1
      Philipp Zabel 提交于
      The component master driver imx-drm-core matches component devices using
      their of_node. Since commit 950b410dd1ab ("gpu: ipu-v3: Fix imx-ipuv3-crtc
      module autoloading"), the imx-ipuv3-crtc dev->of_node is not set during
      probing. Before that, of_node was set and caused an of: modalias to be
      used instead of the platform: modalias, which broke module autoloading.
      
      On the other hand, if dev->of_node is not set yet when the imx-ipuv3-crtc
      probe function calls component_add, component matching in imx-drm-core
      fails. While dev->of_node will be set once the next component tries to
      bring up the component master, imx-drm-core component binding will never
      succeed if one of the crtc devices is probed last.
      
      Add of_node to the component platform data and match against the
      pdata->of_node instead of dev->of_node in imx-drm-core to work around
      this problem.
      
      Cc: <stable@vger.kernel.org> # 4.4.x
      Fixes: 950b410dd1ab ("gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading")
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Tested-by: NFabio Estevam <fabio.estevam@nxp.com>
      Tested-by: NLothar Waßmann <LW@KARO-electronics.de>
      Tested-by: NHeiko Schocher <hs@denx.de>
      Tested-by: NChris Ruehl <chris.ruehl@gtsys.com.hk>
      310944d1
  4. 01 3月, 2016 5 次提交
  5. 10 2月, 2016 1 次提交
  6. 08 2月, 2016 1 次提交
  7. 15 12月, 2015 1 次提交
  8. 25 11月, 2015 1 次提交
    • R
      drm: imx: convert to drm_crtc_send_vblank_event() · 69d21fc0
      Russell King 提交于
      ipu_crtc_handle_pageflip() was calling drm_send_vblank_event() with
      a pipe argument of -1.  Commit cc1ef118 ("drm/irq: Make pipe
      unsigned and name consistent") now makes this error obvious, as we
      now may get a warning from:
      
      	if (WARN_ON(pipe >= dev->num_crtcs))
      
      in drm_vblank_count_and_time().  Prior to this change, we would end
      up making out-of-bounds array accesses via:
      
      	struct drm_vblank_crtc *vblank = &dev->vblank[crtc];
      and
      	*vblanktime = vblanktimestamp(dev, pipe, cur_vblank);
      
      So, this has been broken for a very long time, and is not a result
      of the above commit.  Since we don't care about the staging versions,
      I've tagged this with the earliest mainline commit where we do care,
      even though this commit did not introduce the bug.
      
      Fixes: 6556f7f8 ("drm: imx: Move imx-drm driver out of staging")
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      69d21fc0
  9. 24 11月, 2015 1 次提交
  10. 19 11月, 2015 2 次提交
  11. 31 3月, 2015 3 次提交
  12. 08 1月, 2015 3 次提交
  13. 26 11月, 2014 1 次提交
    • P
      drm: imx: Move imx-drm driver out of staging · 6556f7f8
      Philipp Zabel 提交于
      The imx-drm driver was put into staging mostly for the following reasons,
      all of which have been addressed or superseded:
       - convert the irq driver to use linear irq domains
       - work out the device tree bindings, this lead to the common of_graph
         bindings being used
       - factor out common helper functions, this mostly resulted in the
         component framework and drm of_graph helpers.
      
      Before adding new fixes, and certainly before adding new features,
      move it into its proper place below drivers/gpu/drm.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6556f7f8
  14. 06 11月, 2014 1 次提交
  15. 31 8月, 2014 1 次提交
  16. 04 6月, 2014 1 次提交
  17. 26 4月, 2014 3 次提交
  18. 02 4月, 2014 1 次提交
    • M
      drm: Replace crtc fb with primary plane fb (v3) · f4510a27
      Matt Roper 提交于
      Now that CRTC's have a primary plane, there's no need to track the
      framebuffer in the CRTC.  Replace all references to the CRTC fb with the
      primary plane's fb.
      
      This patch was generated by the Coccinelle semantic patching tool using
      the following rules:
      
              @@ struct drm_crtc C; @@
              -   (C).fb
              +   C.primary->fb
      
              @@ struct drm_crtc *C; @@
              -   (C)->fb
              +   C->primary->fb
      
      v3: Generate patch via coccinelle.  Actual removal of crtc->fb has been
          moved to a subsequent patch.
      
      v2: Fixup several lingering crtc->fb instances that were missed in the
          first patch iteration.  [Rob Clark]
      Signed-off-by: NMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: NRob Clark <robdclark@gmail.com>
      f4510a27
  19. 08 3月, 2014 1 次提交
    • P
      staging: imx-drm-core: Use OF graph to find components and connections between encoder and crtcs · 655b43cc
      Philipp Zabel 提交于
      This patch adds support to find the involved components connected to
      the IPU display interface ports using the OF graph bindings documented
      in Documentation/devicetree/bindings/media/video-interfaces.txt.
      It makes use of the of_graph (formerly v4l2_of) parsing helpers and
      thus depends on the patch that moves those out to drivers/of.
      
      Each display interface needs to have an associated port node in the
      device tree. We can associate this node with the crtc platform device
      and use it to find the crtc corresponding to a given port node instead
      of using a combination of parent device node and id number, as before.
      
      Explicitly converting the void* cookie to the port device tree node
      allows to get rid of the ipu_id and di_id fields. The multiplexer
      setting on i.MX6 now can be obtained from the port id (reg property)
      in the device tree.
      
      The imx-drm node now needs a ports property that contains phandles
      to each of the IPU display interface port nodes. From there, all
      attached encoders are scanned and enabled encoders are added to a
      waiting list.
      The bind order makes sure that once all components are probed, crtcs
      are bound before encoders, so that imx_drm_encoder_parse_of can be
      called from the encoder bind callbacks.
      
      For parsing the OF graph, temporary copies of the V4L2 OF graph
      helpers are used, that can be removed again once those are available
      at a generic place.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      655b43cc
  20. 24 2月, 2014 3 次提交
  21. 14 1月, 2014 1 次提交
  22. 31 10月, 2013 1 次提交