From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 945ADC2BA83 for ; Fri, 14 Feb 2020 07:58:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 596EB20675 for ; Fri, 14 Feb 2020 07:58:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="YkXdB8hB"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="FRaAoplH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728864AbgBNH6n (ORCPT ); Fri, 14 Feb 2020 02:58:43 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47811 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbgBNH6n (ORCPT ); Fri, 14 Feb 2020 02:58:43 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CACA8221B2; Fri, 14 Feb 2020 02:58:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 14 Feb 2020 02:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=moGuVi8NmeGkJl0VhkaoH+5NEac k7hwzfHXUP6NPNIk=; b=YkXdB8hBRIaWSlqu7kYBS4CNZ41nALPTOoqDRdgc518 OfLUNNbZzYtrP+lT5lfKBuLxUlj63CrMK9CATLCeGIzkPFtiEe0mRY6264mrDnfz nKVotuHWtYDRxEQWWoVuJnl+S/0GJOYdnHyNFnDgbQ4IwqgRA/lKxuny5+gUy22A LTHtvnrQFRcH4UDnLH+SRezDOX0u692MjG3dsxmrcAO5AKGanJCZk5gGhshcbLcc oNxUuiZ7WgAf87ssHuxPVfvVjJrY9+hYGUbGzCDe+3nqvYuDcmDkA/6TdLCXhyvL TIlGoCCgRagle9Mrl7G/D4USz+GCPc7tVOTR5yuOSHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=moGuVi 8NmeGkJl0VhkaoH+5NEack7hwzfHXUP6NPNIk=; b=FRaAoplH/LuDNMTOAHbeSC yGZU0FtHTfH0a4Kw1zg1wJCTMkGMdzcVJM0Tz1REVEVu9lXwi1NQi3tu6a8R8raw 3wQp/VzzoH5zha8eVEDxkCEy0ksOalv8jgmbFpiE3SFkaBHIVwMhqj0CggyXe/Vb e3HhZO0udQzSATVkuOuA///L9V+IfE/AImKMeoXyZEBy/1ZQTQBxtc+3NWaMg5T5 xYlFxp783l+FCEf8u9X8bXbr8XRFVW73fAoBvn4hxqeAMSzx8IYPkS4BKk5Q9uth z1xTc6YjFo3JBSeyhhW8takwuSZtJGRHzW+ETSvuNZlvkvAhlkt6uBL5GsDLInfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieelgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuffhomhgrih hnpehophgvnhhvrghrihhordhorhhgpdigtghsohgrrhdrohhrghenucfkphepledtrdek ledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id C025C3280062; Fri, 14 Feb 2020 02:58:36 -0500 (EST) Date: Fri, 14 Feb 2020 08:58:35 +0100 From: Maxime Ripard To: Andrey Lebedev Cc: wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Support LVDS output on Allwinner A20 Message-ID: <20200214075835.xugmte6uigmsxqog@gilmour.lan> References: <20200210195633.GA21832@kedthinkpad> <20200211072004.46tbqixn5ftilxae@gilmour.lan> <20200211204828.GA4361@kedthinkpad> <20200212125345.j6e3txfjqekuxh2s@gilmour.lan> <20200212224653.GA19494@kedthinkpad> <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> <20200213181110.GA25367@kedthinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="edog77bh6ht5jn3f" Content-Disposition: inline In-Reply-To: <20200213181110.GA25367@kedthinkpad> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --edog77bh6ht5jn3f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 13, 2020 at 08:11:10PM +0200, Andrey Lebedev wrote: > On Thu, Feb 13, 2020 at 10:24:33AM +0100, Maxime Ripard wrote: > > > > do you have a board when you have been able to test it? > > > > > > Yes, I have the hardware (Cubieboard 2) at hand, but I cannot change the > > > any physical connections on it. FWIW, it is https://openvario.org, the > > > device we are (painfully) trying to upgrade from old kernel-3.4 with > > > proprietary mali drivers to contemporary software. > > > > What painpoints do you have? > > So, even though proprietary mali drivers worked well for us, they seem > to hold us back to old kernel-3.4, and it started to get harder to avoid > various compatibility issues with newer software. Since there seemed to > be a good progress with OSS lima driver lately, we decided to try to > replace mali with lima. And that naturally pulled to switch to DRM/KMS. You can use the proprietary mali drivers with mainline too, but yeah it's in maintainance mode these days and you should go for lima if you're (re)starting from scratch. > The first painpoint is this LVDS support problem: after a week of trial > and error, I discovered that support was simply not there. But it seemed > that not that much was actually missing and after couple of evenings > deep into debugging, here we are. > > Another one is the screen rotation: the device is installed into the > glider' instrument panel, and some pilots prefer it in portrait > orientation. Under old mali setup, all that (seemingly) was required > was setting "fbcon=rotate:n" boot arg, and both linux console and > graphical app (https://xcsoar.org/) rotated "automagically". With new > DRM/KMS setup, only console is rotated, all graphical apps seem to see > the screen in its "natural" landscape orientation. Do you know if there > is any way to leverage DMS/KMS infrastructure to make screen appear > rotated for userspace apps (writing to /sys/class/graphics/fb0/rotate > didn't work)? There's of course a plan B to teach the app to rotate its > output, but that leads to problem number 3. There's a rotation property that can be set by whatever you're using on top of KMS, DRM_MODE_ROTATE_*, but I'm not sure the driver supports it at the moment. > And the 3rd outstanding problem is that app doesn't really work under > lima module and lima mesa driver. It starts, but renders a black window. > I haven't dug deeply into this yet, but it is possible that some opengl > API isn't supported in OSS drivers yet (even though app only renders 2d > graphics). I have no idea on this one though, sorry :/ Maxime --edog77bh6ht5jn3f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXkZTKwAKCRDj7w1vZxhR xZj3AP9JC4RKMD0CT/B3lVlvBaL1GDPoacAbj0oxlzcJwy7D8wEA0XpoAppMhnko M1hj9gZAla4YbkP0IiqV+FH50S5L5QU= =5Rfx -----END PGP SIGNATURE----- --edog77bh6ht5jn3f-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58171C2BA83 for ; Fri, 14 Feb 2020 07:58:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26E5920675 for ; Fri, 14 Feb 2020 07:58:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GVZvPKb8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="YkXdB8hB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="FRaAoplH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26E5920675 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5SlkVeENbWFeKL+dEIMEPGSof3US1wff76tLBgwKEkc=; b=GVZvPKb8XWzV0+hLt3mNjv8dI T/TZ6qbyklsJEUyryzJkRFjzX7GwRtEyQdYYrwa/kppLLfGiOKL44+U7t8x7Wvs6A9QXsAXmFBHnP Ff6tHYfSI8sUUCfFdfzSNXzLqC50aIOfjmQdWkEAcEC2945uau5q9DWWJ0nqwi0stSdwSRQm7QHSz e3qRBwiiRU1oPestJ0BYRA9Iyo6k6fwYqEf8lxWND4T3emkXYDEdXUUB8Jlb1XdaeZml+YHev+O5+ l2ab5MqgjETzDJwk6bqJhh85Prl63orpCUsl7hgk4QIgrlxjUf32no33Dq/7iaPi7ZU3q5j2v5CqU n2NLjuChg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j2Vs6-0007Ek-43; Fri, 14 Feb 2020 07:58:46 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j2Vs2-0007Dv-Pf for linux-arm-kernel@lists.infradead.org; Fri, 14 Feb 2020 07:58:44 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CACA8221B2; Fri, 14 Feb 2020 02:58:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 14 Feb 2020 02:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=moGuVi8NmeGkJl0VhkaoH+5NEac k7hwzfHXUP6NPNIk=; b=YkXdB8hBRIaWSlqu7kYBS4CNZ41nALPTOoqDRdgc518 OfLUNNbZzYtrP+lT5lfKBuLxUlj63CrMK9CATLCeGIzkPFtiEe0mRY6264mrDnfz nKVotuHWtYDRxEQWWoVuJnl+S/0GJOYdnHyNFnDgbQ4IwqgRA/lKxuny5+gUy22A LTHtvnrQFRcH4UDnLH+SRezDOX0u692MjG3dsxmrcAO5AKGanJCZk5gGhshcbLcc oNxUuiZ7WgAf87ssHuxPVfvVjJrY9+hYGUbGzCDe+3nqvYuDcmDkA/6TdLCXhyvL TIlGoCCgRagle9Mrl7G/D4USz+GCPc7tVOTR5yuOSHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=moGuVi 8NmeGkJl0VhkaoH+5NEack7hwzfHXUP6NPNIk=; b=FRaAoplH/LuDNMTOAHbeSC yGZU0FtHTfH0a4Kw1zg1wJCTMkGMdzcVJM0Tz1REVEVu9lXwi1NQi3tu6a8R8raw 3wQp/VzzoH5zha8eVEDxkCEy0ksOalv8jgmbFpiE3SFkaBHIVwMhqj0CggyXe/Vb e3HhZO0udQzSATVkuOuA///L9V+IfE/AImKMeoXyZEBy/1ZQTQBxtc+3NWaMg5T5 xYlFxp783l+FCEf8u9X8bXbr8XRFVW73fAoBvn4hxqeAMSzx8IYPkS4BKk5Q9uth z1xTc6YjFo3JBSeyhhW8takwuSZtJGRHzW+ETSvuNZlvkvAhlkt6uBL5GsDLInfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieelgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuffhomhgrih hnpehophgvnhhvrghrihhordhorhhgpdigtghsohgrrhdrohhrghenucfkphepledtrdek ledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id C025C3280062; Fri, 14 Feb 2020 02:58:36 -0500 (EST) Date: Fri, 14 Feb 2020 08:58:35 +0100 From: Maxime Ripard To: Andrey Lebedev Subject: Re: [PATCH 1/1] Support LVDS output on Allwinner A20 Message-ID: <20200214075835.xugmte6uigmsxqog@gilmour.lan> References: <20200210195633.GA21832@kedthinkpad> <20200211072004.46tbqixn5ftilxae@gilmour.lan> <20200211204828.GA4361@kedthinkpad> <20200212125345.j6e3txfjqekuxh2s@gilmour.lan> <20200212224653.GA19494@kedthinkpad> <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> <20200213181110.GA25367@kedthinkpad> MIME-Version: 1.0 In-Reply-To: <20200213181110.GA25367@kedthinkpad> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200213_235842_981719_620C8872 X-CRM114-Status: GOOD ( 22.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, wens@csie.org, daniel@ffwll.ch, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============5938805260432747714==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5938805260432747714== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="edog77bh6ht5jn3f" Content-Disposition: inline --edog77bh6ht5jn3f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 13, 2020 at 08:11:10PM +0200, Andrey Lebedev wrote: > On Thu, Feb 13, 2020 at 10:24:33AM +0100, Maxime Ripard wrote: > > > > do you have a board when you have been able to test it? > > > > > > Yes, I have the hardware (Cubieboard 2) at hand, but I cannot change the > > > any physical connections on it. FWIW, it is https://openvario.org, the > > > device we are (painfully) trying to upgrade from old kernel-3.4 with > > > proprietary mali drivers to contemporary software. > > > > What painpoints do you have? > > So, even though proprietary mali drivers worked well for us, they seem > to hold us back to old kernel-3.4, and it started to get harder to avoid > various compatibility issues with newer software. Since there seemed to > be a good progress with OSS lima driver lately, we decided to try to > replace mali with lima. And that naturally pulled to switch to DRM/KMS. You can use the proprietary mali drivers with mainline too, but yeah it's in maintainance mode these days and you should go for lima if you're (re)starting from scratch. > The first painpoint is this LVDS support problem: after a week of trial > and error, I discovered that support was simply not there. But it seemed > that not that much was actually missing and after couple of evenings > deep into debugging, here we are. > > Another one is the screen rotation: the device is installed into the > glider' instrument panel, and some pilots prefer it in portrait > orientation. Under old mali setup, all that (seemingly) was required > was setting "fbcon=rotate:n" boot arg, and both linux console and > graphical app (https://xcsoar.org/) rotated "automagically". With new > DRM/KMS setup, only console is rotated, all graphical apps seem to see > the screen in its "natural" landscape orientation. Do you know if there > is any way to leverage DMS/KMS infrastructure to make screen appear > rotated for userspace apps (writing to /sys/class/graphics/fb0/rotate > didn't work)? There's of course a plan B to teach the app to rotate its > output, but that leads to problem number 3. There's a rotation property that can be set by whatever you're using on top of KMS, DRM_MODE_ROTATE_*, but I'm not sure the driver supports it at the moment. > And the 3rd outstanding problem is that app doesn't really work under > lima module and lima mesa driver. It starts, but renders a black window. > I haven't dug deeply into this yet, but it is possible that some opengl > API isn't supported in OSS drivers yet (even though app only renders 2d > graphics). I have no idea on this one though, sorry :/ Maxime --edog77bh6ht5jn3f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXkZTKwAKCRDj7w1vZxhR xZj3AP9JC4RKMD0CT/B3lVlvBaL1GDPoacAbj0oxlzcJwy7D8wEA0XpoAppMhnko M1hj9gZAla4YbkP0IiqV+FH50S5L5QU= =5Rfx -----END PGP SIGNATURE----- --edog77bh6ht5jn3f-- --===============5938805260432747714== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5938805260432747714==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E668AC7619D for ; Mon, 17 Feb 2020 08:21:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B74A620718 for ; Mon, 17 Feb 2020 08:21:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="YkXdB8hB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="FRaAoplH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B74A620718 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 629DF6E52E; Mon, 17 Feb 2020 08:20:48 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by gabe.freedesktop.org (Postfix) with ESMTPS id A3EE96E492 for ; Fri, 14 Feb 2020 07:58:42 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CACA8221B2; Fri, 14 Feb 2020 02:58:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 14 Feb 2020 02:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=moGuVi8NmeGkJl0VhkaoH+5NEac k7hwzfHXUP6NPNIk=; b=YkXdB8hBRIaWSlqu7kYBS4CNZ41nALPTOoqDRdgc518 OfLUNNbZzYtrP+lT5lfKBuLxUlj63CrMK9CATLCeGIzkPFtiEe0mRY6264mrDnfz nKVotuHWtYDRxEQWWoVuJnl+S/0GJOYdnHyNFnDgbQ4IwqgRA/lKxuny5+gUy22A LTHtvnrQFRcH4UDnLH+SRezDOX0u692MjG3dsxmrcAO5AKGanJCZk5gGhshcbLcc oNxUuiZ7WgAf87ssHuxPVfvVjJrY9+hYGUbGzCDe+3nqvYuDcmDkA/6TdLCXhyvL TIlGoCCgRagle9Mrl7G/D4USz+GCPc7tVOTR5yuOSHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=moGuVi 8NmeGkJl0VhkaoH+5NEack7hwzfHXUP6NPNIk=; b=FRaAoplH/LuDNMTOAHbeSC yGZU0FtHTfH0a4Kw1zg1wJCTMkGMdzcVJM0Tz1REVEVu9lXwi1NQi3tu6a8R8raw 3wQp/VzzoH5zha8eVEDxkCEy0ksOalv8jgmbFpiE3SFkaBHIVwMhqj0CggyXe/Vb e3HhZO0udQzSATVkuOuA///L9V+IfE/AImKMeoXyZEBy/1ZQTQBxtc+3NWaMg5T5 xYlFxp783l+FCEf8u9X8bXbr8XRFVW73fAoBvn4hxqeAMSzx8IYPkS4BKk5Q9uth z1xTc6YjFo3JBSeyhhW8takwuSZtJGRHzW+ETSvuNZlvkvAhlkt6uBL5GsDLInfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieelgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuffhomhgrih hnpehophgvnhhvrghrihhordhorhhgpdigtghsohgrrhdrohhrghenucfkphepledtrdek ledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id C025C3280062; Fri, 14 Feb 2020 02:58:36 -0500 (EST) Date: Fri, 14 Feb 2020 08:58:35 +0100 From: Maxime Ripard To: Andrey Lebedev Subject: Re: [PATCH 1/1] Support LVDS output on Allwinner A20 Message-ID: <20200214075835.xugmte6uigmsxqog@gilmour.lan> References: <20200210195633.GA21832@kedthinkpad> <20200211072004.46tbqixn5ftilxae@gilmour.lan> <20200211204828.GA4361@kedthinkpad> <20200212125345.j6e3txfjqekuxh2s@gilmour.lan> <20200212224653.GA19494@kedthinkpad> <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> <20200213181110.GA25367@kedthinkpad> MIME-Version: 1.0 In-Reply-To: <20200213181110.GA25367@kedthinkpad> X-Mailman-Approved-At: Mon, 17 Feb 2020 08:20:47 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, wens@csie.org, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============1736505205==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1736505205== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="edog77bh6ht5jn3f" Content-Disposition: inline --edog77bh6ht5jn3f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 13, 2020 at 08:11:10PM +0200, Andrey Lebedev wrote: > On Thu, Feb 13, 2020 at 10:24:33AM +0100, Maxime Ripard wrote: > > > > do you have a board when you have been able to test it? > > > > > > Yes, I have the hardware (Cubieboard 2) at hand, but I cannot change the > > > any physical connections on it. FWIW, it is https://openvario.org, the > > > device we are (painfully) trying to upgrade from old kernel-3.4 with > > > proprietary mali drivers to contemporary software. > > > > What painpoints do you have? > > So, even though proprietary mali drivers worked well for us, they seem > to hold us back to old kernel-3.4, and it started to get harder to avoid > various compatibility issues with newer software. Since there seemed to > be a good progress with OSS lima driver lately, we decided to try to > replace mali with lima. And that naturally pulled to switch to DRM/KMS. You can use the proprietary mali drivers with mainline too, but yeah it's in maintainance mode these days and you should go for lima if you're (re)starting from scratch. > The first painpoint is this LVDS support problem: after a week of trial > and error, I discovered that support was simply not there. But it seemed > that not that much was actually missing and after couple of evenings > deep into debugging, here we are. > > Another one is the screen rotation: the device is installed into the > glider' instrument panel, and some pilots prefer it in portrait > orientation. Under old mali setup, all that (seemingly) was required > was setting "fbcon=rotate:n" boot arg, and both linux console and > graphical app (https://xcsoar.org/) rotated "automagically". With new > DRM/KMS setup, only console is rotated, all graphical apps seem to see > the screen in its "natural" landscape orientation. Do you know if there > is any way to leverage DMS/KMS infrastructure to make screen appear > rotated for userspace apps (writing to /sys/class/graphics/fb0/rotate > didn't work)? There's of course a plan B to teach the app to rotate its > output, but that leads to problem number 3. There's a rotation property that can be set by whatever you're using on top of KMS, DRM_MODE_ROTATE_*, but I'm not sure the driver supports it at the moment. > And the 3rd outstanding problem is that app doesn't really work under > lima module and lima mesa driver. It starts, but renders a black window. > I haven't dug deeply into this yet, but it is possible that some opengl > API isn't supported in OSS drivers yet (even though app only renders 2d > graphics). I have no idea on this one though, sorry :/ Maxime --edog77bh6ht5jn3f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXkZTKwAKCRDj7w1vZxhR xZj3AP9JC4RKMD0CT/B3lVlvBaL1GDPoacAbj0oxlzcJwy7D8wEA0XpoAppMhnko M1hj9gZAla4YbkP0IiqV+FH50S5L5QU= =5Rfx -----END PGP SIGNATURE----- --edog77bh6ht5jn3f-- --===============1736505205== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1736505205==--