Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1463928ybv; Thu, 13 Feb 2020 23:59:36 -0800 (PST) X-Google-Smtp-Source: APXvYqz2JPXt8AxZHFvKRwTX4IMnuEOeeCYqIqJxpZ3HWjpYmj3q8rlZR5rIq7sRw9QhuoYPVAHK X-Received: by 2002:a05:6808:218:: with SMTP id l24mr991827oie.108.1581667175981; Thu, 13 Feb 2020 23:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581667175; cv=none; d=google.com; s=arc-20160816; b=Rsn9WLFHYu+ohlteFGYc+8ZQygyAh/EaT2O1gN/mDeTK1yGdM7pVZlPJZOONyezIym qeHR2SVuqX9aijRknmznroXGlBPMMuLmD7LchBxQAVWmaOi9mYuemGLtezZp+iKOFg08 2/45VLfFeewLlfq2wuY8G8Py84wQbaaA+qv2xfZOeqJmziTUs0+T+SmwfnOL5uuK6sKD j6nS8zS7hccaGOcRzhnRphNjAnBPl/gpkaHQtq4/ZinVOUVJPe7bJ3drKJ3+fFvtWl8P eyhTqw5tbxVWbdimVj0Qge8dYvyvT5x9Gi2ze/F9E9ULryTLSYGt9g3tTx9MajyzcDqV LU4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=moGuVi8NmeGkJl0VhkaoH+5NEack7hwzfHXUP6NPNIk=; b=Dayi7obD/xqsdLLwnI7cmotVAAvwD2Kb4mYpeD4HKpLl8pOGo70igW2rhmSEgO4oQb Tl1Dnz5aLyN8SMyeSnV5+o8JvE3gjVmn2M7c3X0aRFvf0EWyqWn/D2V5P4D72ulkqlEG 3mFG+Xv1YXCtHlUoV37qqzrq84UES6ggl+3srQ03+ZzaJDSMUNZjofcDCO7tsY4HtECo 0ECBxlQG+mANhWb5BeoN0r2c3nxaRMBkySoYOZNuOrzt/S9YVzijLvNWUjwqvtMb7Fq8 a8a0GAxoUfHecf5r86DtqAXSZXXQI0eg+GP9k6iwZClAvIMzMJ+X5z0vW7mcFAgwiylP RKqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=YkXdB8hB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=FRaAoplH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si2181526oij.97.2020.02.13.23.59.11; Thu, 13 Feb 2020 23:59:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=YkXdB8hB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=FRaAoplH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728834AbgBNH6n (ORCPT + 99 others); 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--