From patchwork Tue Sep 8 10:45:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Krzysztof_Ha=C5=82asa?= X-Patchwork-Id: 7140021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AAA7A9F380 for ; Tue, 8 Sep 2015 10:48:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A5502063A for ; Tue, 8 Sep 2015 10:48:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D66420639 for ; Tue, 8 Sep 2015 10:48:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZZGPR-00034R-1G; Tue, 08 Sep 2015 10:45:53 +0000 Received: from ni.piap.pl ([195.187.100.4]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZZGPN-0002y4-ID for linux-arm-kernel@lists.infradead.org; Tue, 08 Sep 2015 10:45:51 +0000 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTP id BA44A441288; Tue, 8 Sep 2015 12:45:24 +0200 (CEST) From: khalasa@piap.pl (Krzysztof =?utf-8?Q?Ha=C5=82asa?=) To: Russell King - ARM Linux Subject: Re: I.MX6 HDMI support in v4.2 References: <20150907112555.GS21084@n2100.arm.linux.org.uk> Date: Tue, 08 Sep 2015 12:45:24 +0200 In-Reply-To: <20150907112555.GS21084@n2100.arm.linux.org.uk> (Russell King's message of "Mon, 7 Sep 2015 12:25:55 +0100") Message-ID: MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 83389 [Sep 08 2015] X-KLMS-AntiSpam-Version: 5.5.6 X-KLMS-AntiSpam-Envelope-From: khalasa@piap.pl X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 3728047, 3728068, 3727995 X-KLMS-AntiSpam-Info: LuaCore: 265 265 7c4ac3f3c6170040f2fe4c69edd5527a8ddeeab6, {Dosetcrawler: probable amspam}, Auth:dkim=none X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2015/09/07 14:47:09 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2015/09/08 06:32:00 #6427486 X-KLMS-AntiVirus-Status: Clean, skipped X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150908_034549_961732_06E9EAF7 X-CRM114-Status: GOOD ( 10.87 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Trying to make some progress... I was missing the etnaviv DRM kernel driver. Now I have both IMX and etnaviv drivers, Linux v4.0-stable: git://git.pengutronix.de/git/lst/linux.git (etnaviv DRM driver) PLL5 DTS patch (enables HDMI with LVDS driver loaded): X.org etc.: git://github.com/laanwj/etna_viv.git git://ftp.arm.linux.org.uk/~rmk/libdrm-armada.git/ git://ftp.arm.linux.org.uk/~rmk/xf86-video-armada.git unstable-devel (I can't use master branch of xf86-video-armada.git because it doesn't support etnaviv - does it?) X log (relevant(?) stuff only): [ 18919.848] (II) armada(0): hardware: imx-drm [ 18919.923] (--) armada(0): Vivante GC320 GPU revision 5007 (etnaviv) 2d PE2.0 [ 18919.925] (II) armada(0): [DRI2] Setup complete [ 18919.925] (II) armada(0): [DRI2] DRI driver: etnadrm [ 18919.925] (II) armada(0): direct rendering: DRI2 enabled [ 18919.925] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 18919.927] (==) armada(0): DPMS enabled [ 18919.927] (==) armada(0): hotplug detection enabled [ 18919.928] (II) armada(0): etnaviv: Xv: using YUY2 tiled format intermediate YUV target [ 18919.971] (EE) AIGLX error: dlopen of /lib/dri/etnadrm_dri.so failed (I don't have this yet) [ 18920.072] (II) armada(0): etnaviv: A8 target not supported If I try to use pengutronix/etnaviv-4.1-wip branch (etnaviv DRM - for v4.2), dmesg contains a lot of: [drm:etnaviv_ioctl_gem_submit [etnaviv]] *ERROR* cmdstream bo has flag ETNA_BO_CMDSTREAM not set and it doesn't work. I assume I shouldn't use it yet? Changing to pengutronix/etnaviv-for-upstream, it works - sort of. I now have two Xvideo adapters: Adaptor: 0 Name: Marvell Armada Overlay Video Port: 88 (which unfortunately doesn't work, the window is black, the XV attributes are set to minimums and I can't set them). Is it expected? Adaptor: 1 Name: Etnaviv Textured Video Port(s): 89 - 104 Name: XV_SYNC_TO_VBLANK Flags: XvGettable XvSettable Min value: 0 Max value: 1 Current value: 1 Name: XV_PIPE Flags: XvGettable XvSettable Min value: -1 Max value: 3 Current value: -1 Name: XV_ENCODING Flags: XvGettable XvSettable Min value: 0 Max value: 0 Current value: 0 This adapter works, though there are some image distortions (horizontal lines apparently caused by changes in color between frames). Any input? --- a/arch/arm/boot/dts/imx6q-gw54xx.dts +++ b/arch/arm/boot/dts/imx6q-gw54xx.dts @@ -21,3 +21,11 @@ &sata { status = "okay"; }; + +&clks { + assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, + <&clks IMX6QDL_CLK_LDB_DI1_SEL>; + assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>, + <&clks IMX6QDL_CLK_PLL3_USB_OTG>; +}; + also had to apply: --- a/drivers/staging/etnaviv/Makefile +++ b/drivers/staging/etnaviv/Makefile @@ -11,7 +11,6 @@ etnaviv-y := \ etnaviv_gem_submit.o \ etnaviv_gpu.o \ etnaviv_iommu.o \ - etnaviv_iommu_v2.o \ etnaviv_mmu.o \ etnaviv_buffer.o