1. 16 7月, 2018 2 次提交
  2. 08 8月, 2017 1 次提交
    • D
      drm: Nuke drm_atomic_helper_connector_dpms · 7d902c05
      Daniel Vetter 提交于
      It's dead code, the core handles all this directly now.
      
      The only special case is nouveau and tda988x which used one function
      for both legacy modeset code and -nv50 atomic world instead of 2
      vtables. But amounts to exactly the same.
      
      v2: Rebase over the panel/brideg refactorings in stm/ltdc.
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Cc: Archit Taneja <architt@codeaurora.org>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
      Cc: Peter Senna Tschudin <peter.senna@collabora.com>
      Cc: Martin Donnelly <martin.donnelly@ge.com>
      Cc: Martyn Welch <martyn.welch@collabora.co.uk>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: David Airlie <airlied@linux.ie>
      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: Stefan Agner <stefan@agner.ch>
      Cc: Alison Wang <alison.wang@freescale.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: CK Hu <ck.hu@mediatek.com>
      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: Marek Vasut <marex@denx.de>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
      Cc: Vincent Abriou <vincent.abriou@st.com>
      Cc: Yannick Fertre <yannick.fertre@st.com>
      Cc: Philippe Cornu <philippe.cornu@st.com>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Cc: Jeffy Chen <jeffy.chen@rock-chips.com>
      Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
      Cc: Yakir Yang <kuankuan.y@gmail.com>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Cc: Jose Abreu <Jose.Abreu@synopsys.com>
      Cc: Romain Perier <romain.perier@collabora.com>
      Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
      Cc: Xinliang Liu <z.liuxinliang@hisilicon.com>
      Cc: Alexey Brodkin <abrodkin@synopsys.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Rongrong Zou <zourongrong@gmail.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Hai Li <hali@codeaurora.org>
      Cc: "Noralf Trønnes" <noralf@tronnes.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: intel-gfx@lists.freedesktop.org
      Cc: linux-mediatek@lists.infradead.org
      Cc: linux-amlogic@lists.infradead.org
      Cc: nouveau@lists.freedesktop.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-tegra@vger.kernel.org
      Cc: virtualization@lists.linux-foundation.org
      Cc: zain wang <wzz@rock-chips.com>
      Cc: Baoyou Xie <baoyou.xie@linaro.org>
      Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20170725080122.20548-8-daniel.vetter@ffwll.chAcked-by: NNeil Armstrong <narmstrong@baylibre.com>
      Reviewed-by: NNeil Armstrong <narmstrong@baylibre.com>
      Acked-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Acked-by: NArchit Taneja <architt@codeaurora.org>
      Tested-by: Philippe Cornu <philippe.cornu@st.com> (on stm)
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: NShawn Guo <shawnguo@kernel.org>
      Acked-by: NShawn Guo <shawnguo@kernel.org>
      Acked-by: NNoralf Trønnes <noralf@tronnes.org>
      Acked-by: NVincent Abriou <vincent.abriou@st.com>
      7d902c05
  3. 06 6月, 2017 1 次提交
  4. 07 4月, 2017 1 次提交
  5. 18 12月, 2016 2 次提交
  6. 01 12月, 2016 1 次提交
  7. 07 11月, 2016 1 次提交
  8. 29 8月, 2016 3 次提交
  9. 11 8月, 2016 1 次提交
    • P
      drm/imx-ldb: Add support to drm-bridge · dc80d703
      Peter Senna Tschudin 提交于
      Add support to attach a drm_bridge to imx-ldb in addition to
      existing support to attach a LVDS panel.
      
      This patch does a simple code refactoring by moving code
      from for_each_child_of_node iterator to a new function named
      imx_ldb_panel_ddc(). This was necessary to allow the panel ddc
      code to run only when the imx_ldb is not attached to a bridge.
      
      Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Thierry Reding <treding@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Signed-off-by: NPeter Senna Tschudin <peter.senna@collabora.com>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      dc80d703
  10. 08 8月, 2016 2 次提交
  11. 28 7月, 2016 1 次提交
    • P
      drm/imx: imx-ldb: do not try to dereference crtc->state->state in encoder mode_set · ff615eed
      Philipp Zabel 提交于
      The code in imx_ldb_encoder_mode_set crashes with a NULL pointer
      dereference trying to access crtc->state->state, which was previously
      cleared by drm_atomic_helper_swap_state:
      
          Unable to handle kernel NULL pointer dereference at virtual address 00000010
          pgd = ae08c000
          [00000010] *pgd=3e00e831, *pte=00000000, *ppte=00000000
          Internal error: Oops: 17 [#1] PREEMPT SMP ARM
          Modules linked in:
          CPU: 1 PID: 102 Comm: kmsfb-manage Not tainted 4.7.0-rc5+ #232
          Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
          task: ae058c40 ti: ae04e000 task.ti: ae04e000
          PC is at imx_ldb_encoder_mode_set+0x138/0x2f8
          LR is at 0xae881818
          pc : [<8051a8c8>]    lr : [<ae881818>]    psr: 600f0013
          sp : ae04fc70  ip : ae04fbb0  fp : ae04fcbc
          r10: ae8ea018  r9 : 00000000  r8 : ae246418
          r7 : ae8ea010  r6 : ae8ea308  r5 : 00000000  r4 : 00000000
          r3 : 00000000  r2 : 00000000  r1 : 00000110  r0 : 00000000
          Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
          Control: 10c5387d  Table: 3e08c04a  DAC: 00000051
          Process kmsfb-manage (pid: 102, stack limit = 0xae04e210)
          Stack: (0xae04fc70 to 0xae050000)
          fc60:                                     043ce660 00000001 0000009e 043ce660
          fc80: 00000002 00000000 00000000 af75cf50 00001009 ae23f440 00000001 ae246418
          fca0: 8155a210 ae8ea308 8093c364 ae2464e0 ae04fcec ae04fcc0 804ef350 8051a79c
          fcc0: 00000004 00000004 ae23f440 af3f9000 ae881818 8155a210 af1af200 ae8ea020
          fce0: ae04fd1c ae04fcf0 80519124 804ef060 ae04fd34 00000000 00000000 00000000
          fd00: ae881818 ae23f440 80d4ec8c 00000000 ae04fd34 ae04fd20 804f00b4 80518fac
          fd20: ae23f440 00000000 ae04fd54 ae04fd38 804f2190 804f0074 ae23f440 af3f9000
          fd40: ae04fdd4 ae881818 ae04fd6c ae04fd58 80516390 804f20f4 ae23f440 00000000
          fd60: ae04fd8c ae04fd70 804f26f4 80516348 ae23a000 ae881818 00000001 af3f9000
          fd80: ae04fdac ae04fd90 80502c58 804f2678 ae04fe50 ae23f400 00000001 af3f9000
          fda0: ae04fe1c ae04fdb0 80507a1c 80502bf8 ae23a000 ae058c40 af1af200 ae23f400
          fdc0: ae23a000 af3f9000 ae881818 ae23a00c 80176c7c ae23a000 ae881818 af1af200
          fde0: 00000000 00000000 ae23f400 00000001 ae04fe1c 00000051 ae04fe50 8155a210
          fe00: 80932060 c06864a2 af3f9000 ae246200 ae04fefc ae04fe20 804f9718 805074e8
          fe20: ae04feac ae04fe30 80177360 8017631c 805074dc 00000068 00000068 00000062
          fe40: 00000068 000000a2 ae04fe50 7ef29688 7ef29c40 00000000 00000001 00000018
          fe60: 00000026 00000000 00000000 00000000 00000001 000115bc 05010500 05a0059f
          fe80: 03200000 03360321 00000337 0000003c 00000000 00000040 30383231 30303878
          fea0: 00000000 00000000 00000000 00000000 00000000 00000000 00004000 aea6a140
          fec0: 00000000 80d77b71 00000000 80283110 600f0013 7ef29688 af342bb0 ae250b40
          fee0: 80275440 00000003 ae04e000 00000000 ae04ff7c ae04ff00 80274ac8 804f957c
          ff00: 80283128 80179030 00000000 00000000 80282fd8 ae1e0000 0000003d aea6a1d0
          ff20: 00000002 00000003 00004000 007f8c60 c06864a2 7ef29688 ae04e000 00000000
          ff40: ae04ff6c ae04ff50 80283260 80282fe4 00017050 ae250b41 00000003 ae250b40
          ff60: c06864a2 7ef29688 ae04e000 00000000 ae04ffa4 ae04ff80 80275440 80274a20
          ff80: 00017050 00000001 007f8c60 00000036 801088a4 ae04e000 00000000 ae04ffa8
          ffa0: 80108700 80275408 00017050 00000001 00000003 c06864a2 7ef29688 000115bc
          ffc0: 00017050 00000001 007f8c60 00000036 00000003 00000000 00000026 00000018
          ffe0: 00016f28 7ef29684 0000b7d9 76e4a1e6 400f0030 00000003 3ff7e861 3ff7ec61
          Backtrace:
          [<8051a790>] (imx_ldb_encoder_mode_set) from [<804ef350>] (drm_atomic_helper_commit_modeset_disables+0x2fc/0x3f0)
           r10:ae2464e0 r9:8093c364 r8:ae8ea308 r7:8155a210 r6:ae246418 r5:00000001
           r4:ae23f440
          [<804ef054>] (drm_atomic_helper_commit_modeset_disables) from [<80519124>] (imx_drm_atomic_commit_tail+0x184/0x1e0)
           r10:ae8ea020 r9:af1af200 r8:8155a210 r7:ae881818 r6:af3f9000 r5:ae23f440
           r4:00000004 r3:00000004
          [<80518fa0>] (imx_drm_atomic_commit_tail) from [<804f00b4>] (commit_tail+0x4c/0x68)
           r6:00000000 r5:80d4ec8c r4:ae23f440
          [<804f0068>] (commit_tail) from [<804f2190>] (drm_atomic_helper_commit+0xa8/0xd4)
           r5:00000000 r4:ae23f440
          [<804f20e8>] (drm_atomic_helper_commit) from [<80516390>] (drm_atomic_commit+0x54/0x74)
           r7:ae881818 r6:ae04fdd4 r5:af3f9000 r4:ae23f440
          [<8051633c>] (drm_atomic_commit) from [<804f26f4>] (drm_atomic_helper_set_config+0x88/0xac)
           r5:00000000 r4:ae23f440
          [<804f266c>] (drm_atomic_helper_set_config) from [<80502c58>] (drm_mode_set_config_internal+0x6c/0xf4)
           r7:af3f9000 r6:00000001 r5:ae881818 r4:ae23a000
          [<80502bec>] (drm_mode_set_config_internal) from [<80507a1c>] (drm_mode_setcrtc+0x540/0x5b8)
           r7:af3f9000 r6:00000001 r5:ae23f400 r4:ae04fe50
          [<805074dc>] (drm_mode_setcrtc) from [<804f9718>] (drm_ioctl+0x1a8/0x46c)
           r10:ae246200 r9:af3f9000 r8:c06864a2 r7:80932060 r6:8155a210 r5:ae04fe50
           r4:00000051
          [<804f9570>] (drm_ioctl) from [<80274ac8>] (do_vfs_ioctl+0xb4/0x9e8)
           r10:00000000 r9:ae04e000 r8:00000003 r7:80275440 r6:ae250b40 r5:af342bb0
           r4:7ef29688
          [<80274a14>] (do_vfs_ioctl) from [<80275440>] (SyS_ioctl+0x44/0x6c)
           r10:00000000 r9:ae04e000 r8:7ef29688 r7:c06864a2 r6:ae250b40 r5:00000003
           r4:ae250b41
          [<802753fc>] (SyS_ioctl) from [<80108700>] (ret_fast_syscall+0x0/0x1c)
           r9:ae04e000 r8:801088a4 r7:00000036 r6:007f8c60 r5:00000001 r4:00017050
          Code: 1a000018 e596e034 e59e3368 e59331bc (e5930010)
          ---[ end trace 464e7d3c7f4b9706 ]---
      
      Instead of trying to walk only the connectors in atomic state to which we
      don't have access, just walk all connectors to find one connected to the
      current encoder and containing a bus_format description.
      
      Fixes: 49f98bc4 ("drm/imx: store internal bus configuration in crtc state")
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Acked-by: NLiu Ying <gnuiyl@gmail.com>
      ff615eed
  12. 13 7月, 2016 6 次提交
  13. 30 5月, 2016 3 次提交
  14. 01 3月, 2016 1 次提交
  15. 16 2月, 2016 1 次提交
  16. 15 12月, 2015 1 次提交
  17. 11 12月, 2015 1 次提交
  18. 31 3月, 2015 5 次提交
    • P
      drm/imx: imx-ldb: allow to determine bus format from the connected panel · 5e501ed7
      Philipp Zabel 提交于
      This patch makes the fsl,data-width and fsl,data-mapping device tree
      properties optional if a panel is connected to the ldb output port
      via the of_graph bindings. The data mapping is determined from the
      display_info.bus_format field provided by the panel.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      5e501ed7
    • P
      drm/imx: imx-ldb: reset display clock input when disabling LVDS · 3973aff0
      Philipp Zabel 提交于
      The LDB driver changes the attached display interface's input clock mux
      to the LDB_DI clock reference. Change it back again when disabling the
      LVDS display. Changing back to the PLL5 for example allows to configure
      the same DI for HDMI output later.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      3973aff0
    • P
      drm/imx: imx-ldb: add drm_panel support · 751e2676
      Philipp Zabel 提交于
      This patch allows to optionally attach the lvds-channel to a panel
      supported by a drm_panel driver using of-graph bindings, instead of
      supplying the modes via display-timings in the device tree.
      
      This depends on of_graph_get_port_by_id and uses the OF graph to
      link the optional DRM panel to the LDB lvds-channel. The output
      port number is 1 on devices without the 4-port input multiplexer
      (i.MX5) and 4 on devices with the mux (i.MX6).
      
      Before:
      
      	ldb {
      		...
      
      		lvds-channel@0 {
      			...
      
      			display-timings {
      				native-timing = <&timing1>;
      				timing1: etm0700g0dh6 {
      					hactive = <800>;
      					vactive = <480>;
      					clock-frequency = <33260000>;
      					hsync-len = <128>;
      					hback-porch = <88>;
      					hfront-porch = <40>;
      					vsync-len = <2>;
      					vback-porch = <33>;
      					vfront-porch = <10>;
      					hsync-active = <0>;
      					vsync-active = <0>;
      					...
      				};
      			};
      			...
      		};
      	};
      
      After:
      	ldb {
      		...
      
      		lvds-channel@0 {
      			...
      
      			port@4 {
      				reg = <4>;
      
      				lvds_out: endpoint {
      					remote_endpoint = <&panel_in>;
      				};
      			};
      		};
      	};
      
      	panel {
      		compatible = "edt,etm0700g0dh6", "simple-panel";
      		...
      
      		port {
      			panel_in: endpoint {
      				remote-endpoint = <&lvds_out>;
      			};
      		};
      	};
      
      [Fixed build error due to missing select on DRM_PANEL --rmk]
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      751e2676
    • P
      drm/imx: consolidate bus format variable names · 2872c807
      Philipp Zabel 提交于
      This patch consolidates the different interface_pix_fmt, pixel_fmt, pix_fmt,
      and pixfmt variables to a common name "bus_format" wherever they describe the
      pixel format on the bus between display controller and encoder hardware.
      At the same time, it renames imx_drm_panel_format to imx_drm_set_bus_format.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Tested-by: NEmil Renner Berthing <kernel@esmil.dk>
      2872c807
    • P
      drm/imx: switch to use media bus formats · a7c6e76f
      Philipp Zabel 提交于
      imx-drm internally misused the V4L2_PIX_FMT constants, which are supposed to
      describe the pixel format of frame buffers in memory, to describe the pixel
      format on the bus between the display controller and the encoder hardware.
      Now that MEDIA_BUS_FMT constants are available to drm drivers, use those
      instead.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Tested-by: NEmil Renner Berthing <kernel@esmil.dk>
      a7c6e76f
  19. 24 2月, 2015 1 次提交
  20. 08 1月, 2015 1 次提交
  21. 07 1月, 2015 1 次提交
  22. 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
  23. 06 11月, 2014 1 次提交
  24. 20 10月, 2014 1 次提交