Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp825941ybv; Thu, 13 Feb 2020 10:11:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwJcIeKFlFYTe9Mcfmihnv/OtkGwuE4v+OgwOiMZA6cM1wne5KIfl3pvfGOYjVBWmxydNui X-Received: by 2002:a05:6830:1e47:: with SMTP id e7mr14809878otj.78.1581617515839; Thu, 13 Feb 2020 10:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581617515; cv=none; d=google.com; s=arc-20160816; b=0kQD8DRe3i+hDBR/1xPTKwwWOrBrnRYtPX1kfIyqz1YiTKOjuw7G+hrqo51AFYxsUc cm9IVBcnvVuoJeKCMbeNzvwwTX//XOGKizC40Cml0u0i7kQPrEBTQDvoLFaHyRU/dZyC 3yC7s14y6MQ1JMI0A1+ItHLk0sx1f5Y0utirMKZFezUg5hNexTAhUDUBCuW6fcAibB4b NMO+ASTSGB0BMVFP84crV/AvClnro6/P9h+CN86EbVx1qjaVEgeUghsgnAo//4LsmBaz hr7X3n8FvOyGt7iQkpmd1hvPaOufW5lI66Fpfubm9UUDHC5okJf6l0U1B6Le/wRiI9UC mjZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EuxVXqo0aLZOHDOucp4vbQndf0tOU7++wA3AtEmGBpw=; b=E7ruwyVxMlSWUv6ZY2OBUcqBI1eaCvGzi/Q1SDk1KTguVx/tWh3mZoMOCMDM63e7kT Ki+6GmIz2EjedZYGUY/BERYZiXJM8cwXhUjj43bETS0YvkF+laARWfVsLSzPL0nCHFJt +cMphH0u1qazm/ZCczUiZkgdeyEAf0j49ji08EegWD2N1qPxCDZGFfIOgl9/5n2T6iX+ L8krnDWD+qfFhfKAR84L9eBiPOWL0JrhPAEmRQJp3JhMRovVvFYbaB0qKD1lE1jaILNP tjBCJd97OijKFDp8iMAO09pg/6EJiNwEPXQnfPnP7gUvC6g+638NMkZNfa1XrYw3qjYX f1Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fAaIg/8u"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si1478037oih.187.2020.02.13.10.11.42; Thu, 13 Feb 2020 10:11:55 -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=@gmail.com header.s=20161025 header.b="fAaIg/8u"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbgBMSLP (ORCPT + 99 others); Thu, 13 Feb 2020 13:11:15 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46177 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbgBMSLP (ORCPT ); Thu, 13 Feb 2020 13:11:15 -0500 Received: by mail-lj1-f193.google.com with SMTP id x14so7654635ljd.13 for ; Thu, 13 Feb 2020 10:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EuxVXqo0aLZOHDOucp4vbQndf0tOU7++wA3AtEmGBpw=; b=fAaIg/8ux70EQiQpgn3mUB6nFui/A2paoKIJeaWZbLEdTL5kpOBkJBUFHWxQFKCXAR hdga3DG2R/MFIRy7zFfSp4ZQKb3pvJjXw9Qcx+wRmcmwNZkXJIt/MConhjPzsr4Z4MNy dWu0arsyksu0AK7JqiqRgO11JmtdupXzDXpHAqpQABRIBaMXk5VdYgl43dB59tVRtRXj 4uKHCwzDx4ufdChhKAmEqsFiZULQvn+btVHIwKwNlfcU6z642R4+mA0uyvG3LGNjigyi MIXAJ86LhHhWEsROWucZcslFhq4C2TaNszH9lD8VwEyrKQtR1tGumGwpZNHRzWNX4grS My/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EuxVXqo0aLZOHDOucp4vbQndf0tOU7++wA3AtEmGBpw=; b=GfH+jziZfTAEzuTcWj5QGq5PyjlHgyP5BDOqFAHKKVUk+RKvc6Vbx8By8e2YNhMDIR ZR38iS6UDollzToaEJo1M6q6ktmdzxlFpjMrwS0ChFzzwoQIstbZ6dNI9Q+rTgaC9agt nM+jNGg/8ZceWeBrsBFyHvgLRSD2smPMSCPwm5ZwHSW5oDmiuYNLXsyDrNcm2/kQdGnx dpZqHijRusXL//jZF/il9YPj++yA1E/BzrjHllB9FoeIOD+rntPujsRJxNfFBYKD5NrD yEFJEZPVCfqEj2KeRU3oPFZkNjGpQ8EIhmn+vcH7Lay80J5QD9XyaZmeK2ysIo8KkQVd eeZA== X-Gm-Message-State: APjAAAWuZbgzd84GSMzUZZ513Ycm8SNJcjJQjn4cOi7TJs+hFSsfZxjN /gb/qUJ+SSob098f6b6fPWlqC/kQiiLr+A== X-Received: by 2002:a2e:9157:: with SMTP id q23mr11857429ljg.196.1581617472996; Thu, 13 Feb 2020 10:11:12 -0800 (PST) Received: from kedthinkpad ([5.20.204.163]) by smtp.gmail.com with ESMTPSA id d24sm1655804lfl.58.2020.02.13.10.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2020 10:11:12 -0800 (PST) Date: Thu, 13 Feb 2020 20:11:10 +0200 From: Andrey Lebedev To: Maxime Ripard 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: <20200213181110.GA25367@kedthinkpad> References: <20200210195633.GA21832@kedthinkpad> <20200211072004.46tbqixn5ftilxae@gilmour.lan> <20200211204828.GA4361@kedthinkpad> <20200212125345.j6e3txfjqekuxh2s@gilmour.lan> <20200212224653.GA19494@kedthinkpad> <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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). Hopefully that wasn't too much complaining for you :) If you have any insight on possible causes or attack vectors on any of these, that would help a lot. Also, please feel free to correct any of false assumptions I make above, I'm happy to learn more about this. -- Andrey Lebedev aka -.- . -.. -.. . .-. Software engineer Homepage: http://lebedev.lt/