linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: I.MX6 HDMI support in v4.2
Date: Mon, 7 Sep 2015 12:25:55 +0100	[thread overview]
Message-ID: <20150907112555.GS21084@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <m3bnde5whx.fsf@t19.piap.pl>

On Mon, Sep 07, 2015 at 12:55:54PM +0200, Krzysztof Ha?asa wrote:
> Hi,
> 
> I'd like to ask if the HDMI output on I.MX6-based boards is possible.
> I'm unable to get it to work. What I'm trying to do is getting
> a) DRM HDMI output, b) X.org output using etnaviv, libdrm-armada and
> xf86-video-armada, c) GLX and Xvideo. Basically, latest versions.
> 
> I'm working with Gateworks Ventana GW54xx boards and with Sabre-lite,
> using newly built imx6q-gw54xx.dtb and imx6q-sabrelite.dtb. In both
> cases, required kernel modules are inserted and (somehow) initialized,
> but the HDMI device isn't created.
> 
> The first problem seems to be this:
> - dw_hdmi_imx_probe() is called (and does component_add()), but
> - dw_hdmi_imx_bind() is never called.
> 
> Now if I enable LVDS (CONFIG_DRM_IMX_LDB - I don't have any LVDS
> hardware connected), the HDMI device is created (as well as LVDS).

Are you telling the kernel in your device tree file that LDB is required?
DRM doesn't support hot-plugging outputs, all specified output modules
must be present before DRM can bring up the display subsystem.

> This used to detect the monitor as "unknown" but now it's "connected"
> most of the time - not sure what have changed. EDID is empty and I get
> the following entries in /sys/devices/soc0/display-subsystem/drm/card0:

"used to" - when was this?  I don't think dw_hdmi has ever reported
a connected status of "unknown", always explicitly stating connected
or disconnected.

> dev                                            226:0
> card0-HDMI-A-1/edid                            (empty)
> card0-HDMI-A-1/dpms                            On
> card0-HDMI-A-1/modes
> card0-HDMI-A-1/power/control                   auto
> card0-HDMI-A-1/power/runtime_active_time       0
> card0-HDMI-A-1/power/autosuspend_delay_ms      (Input/output error)
> card0-HDMI-A-1/power/runtime_status            unsupported
> card0-HDMI-A-1/power/runtime_suspended_time    0
> card0-HDMI-A-1/enabled                         enabled
> card0-HDMI-A-1/status                          used to be "unknown", now: "connected"
> card0-HDMI-A-1/uevent                          power/control auto

Looks fine apart from the lack of EDID.  Are you sure you have the
pinctrl setup correct for this?  (We don't use the DDC I2C built
into the HDMI interface.)

> Now, somehow the X.org server sets the resolution to 1024x768, though
> nothing is displayed on the monitor (it's in stand-by). Files in
> /sys/.../card0-HDMI-A/ now have the actual EDID, mode list etc.

By default, 1024x768 is selected when there's nothing else available.
The DPMS "on" and enabled above tends to suggest you should be seeing
output though.

It's possible that having both LVDS and HDMI enabled causes a pixel
clocking conflict if both are routed to the same CRTC and PLL.  (The
clocking side of it is something I really hate, and the decision was
taken to control this statically.)

> This also causes:
> imx-ipuv3 2400000.ipu: DC stop timeout after 50 ms
> imx-ipuv3 2400000.ipu: Timeout waiting for DMFC FIFOs to clear

I don't have an answer for that... that's deep internal IPU stuff.

> What am I doing wrong?
> - kernel command line? video=mxcfb0:dev=hdmi,1920x1080M at 60,if=RGB24
> - wrong SDMA firmware? MD5 is:
>   5d4584134cc4cba62e1be2f382cd6f3a  /lib/firmware/imx/sdma/sdma-imx6q.bin
> - wrong X.org stuff?

Probably none of the above.

I should point out that virtually every -rc kernel gets tested here on
iMX6 with HDMI output - onto my Panasonic TV, and I've seen no evidence
of any regressions.  For me, it Just Works(tm).

-- 
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

  reply	other threads:[~2015-09-07 11:25 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 10:55 I.MX6 HDMI support in v4.2 Krzysztof Hałasa
2015-09-07 11:25 ` Russell King - ARM Linux [this message]
2015-09-07 14:04   ` Krzysztof Hałasa
2015-09-08  9:16     ` Russell King - ARM Linux
2015-09-08 11:01       ` Krzysztof Hałasa
2015-09-08 12:57         ` Russell King - ARM Linux
2015-09-08 14:59           ` Krzysztof Hałasa
2015-09-10 10:25           ` Krzysztof Hałasa
2015-09-10 10:49             ` Russell King - ARM Linux
2015-09-10 11:29               ` Krzysztof Hałasa
2015-09-17  7:21               ` Philipp Zabel
2015-09-17  8:38                 ` Krzysztof Hałasa
2015-09-17  9:23                 ` Russell King - ARM Linux
2015-09-08 10:45   ` Krzysztof Hałasa
2015-09-08 10:56     ` Lucas Stach
2015-09-08 11:01       ` Russell King - ARM Linux
2015-09-08 11:07         ` Lucas Stach
2015-09-08 11:29           ` Russell King - ARM Linux
2015-09-08 12:43             ` Lucas Stach
2015-09-08 13:40               ` Russell King - ARM Linux
2015-09-08 14:17               ` Robert Nelson
2015-09-08 14:45                 ` Krzysztof Hałasa
2015-09-08 14:48                 ` Lucas Stach
2015-09-08 15:55                 ` Russell King - ARM Linux
2015-09-08 17:07                   ` Jon Nettleton
2015-09-08 11:06       ` Krzysztof Hałasa
2015-09-14  8:39       ` Krzysztof Hałasa
2015-09-15  8:24         ` Krzysztof Hałasa
2015-09-15 10:12           ` Russell King - ARM Linux
2015-09-15 11:01             ` Krzysztof Hałasa
2015-09-15 14:29               ` Russell King - ARM Linux
2015-09-15 16:53                 ` Krzysztof Hałasa
2015-09-15 15:53         ` Lucas Stach
2015-09-15 16:36           ` Russell King - ARM Linux
2015-09-15 16:53             ` Lucas Stach
2015-09-15 17:04               ` Russell King - ARM Linux
2015-09-15 19:01                 ` Lucas Stach
2015-09-28 14:48                 ` xf86-video-armada + etnaviv (Was: Re: I.MX6 HDMI support in v4.2) Lucas Stach
2015-09-28 15:24                   ` Russell King - ARM Linux
2015-09-28 15:40                     ` Lucas Stach
2015-09-28 16:50                       ` Russell King - ARM Linux
2015-09-29  8:28                         ` Lucas Stach
2015-09-29  8:41                           ` Russell King - ARM Linux
2015-09-29  9:01                             ` Lucas Stach
2015-09-15 16:57           ` I.MX6 HDMI support in v4.2 Krzysztof Hałasa
2015-09-16  7:57           ` Krzysztof Hałasa
2015-09-16 15:52             ` Lucas Stach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150907112555.GS21084@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).