From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Osipenko Subject: Re: [PATCH v2 0/5] 180 degrees rotation support for NVIDIA Tegra DRM Date: Wed, 17 Jun 2020 19:27:18 +0300 Message-ID: <36496bd6-b18a-de97-1afb-f2f8aeb3feaf@gmail.com> References: <20200614200121.14147-1-digetx@gmail.com> <8f789ef5-bebf-c869-784d-afda70fc1fb8@gmail.com> <646b3f37-0f72-7f3b-388f-f71dbcdd5c84@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Daniel Stone Cc: Emil Velikov , Thierry Reding , Thomas Zimmermann , Derek Basehore , Sam Ravnborg , Laurent Pinchart , Sean Paul , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel List-Id: linux-tegra@vger.kernel.org 17.06.2020 12:34, Daniel Stone пишет: > Hi, > > On Tue, 16 Jun 2020 at 22:16, Dmitry Osipenko wrote: >> The panel's orientation could be parsed by any panel driver and then >> assigned as the connector's property in order to allow userspace/FB-core >> to decide what to do with the rotated display. Apparently upstream >> kernel supports only that one Samsung device which has display panel >> mounted upside-down and it already uses the custom DT properties for >> achieving the 180 rotation. So I don't quite see any panel drivers that >> instantly could benefit from using the rotation property. Perhaps I can >> add the orientation support to the panel-simple driver, but will it be >> useful to anyone? > > Yes, exposing it to userspace is helpful, since Weston at least will > parse the property and then apply the correct transform: > https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/315 Hello Daniel, Thank you very much for the pointer! I missed that Weston now uses the panel's orientation. I gave a quick test to the recent Weston and indeed it applies the transform in accordance to the connector's orientation property.