From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Sat, 04 Nov 2017 13:13:21 +0000 Subject: Re: [Intel-gfx] [PATCH v3 6/7] efifb: Set info->fbcon_rotate_hint based on drm_get_panel_orientation Message-Id: List-Id: References: <20171023071425.5090-1-hdegoede@redhat.com> <20171023071425.5090-7-hdegoede@redhat.com> <20171030095345.663btb7tq2qpnzys@phenom.ffwll.local> In-Reply-To: <20171030095345.663btb7tq2qpnzys@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Daniel Vetter , Hans de Goede Cc: linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , David Airlie , intel-gfx , Daniel Drake , dri-devel@lists.freedesktop.org, Bastien Nocera , Daniel Vetter Hi, On 30-10-17 10:53, Daniel Vetter wrote: > On Mon, Oct 23, 2017 at 09:14:24AM +0200, Hans de Goede wrote: >> On some hardware the LCD panel is not mounted upright in the casing, >> but rotated by 90 degrees. In this case we want the console to >> automatically be rotated to compensate. >> >> The drm subsys has a quirk table for this, use the >> drm_get_panel_orientation_quirk function to get the panel orientation >> and set info->fbcon_rotate_hint based on this, so that the fbcon console >> on top of efifb gets automatically=C2=A0rotated to compensate for the pa= nel >> orientation. >> >> Signed-off-by: Hans de Goede >> --- >> drivers/video/fbdev/Kconfig | 1 + >> drivers/video/fbdev/efifb.c | 21 ++++++++++++++++++++- >> 2 files changed, 21 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig >> index 5e58f5ec0a28..c4a90c497839 100644 >> --- a/drivers/video/fbdev/Kconfig >> +++ b/drivers/video/fbdev/Kconfig >> @@ -772,6 +772,7 @@ config FB_VESA >> config FB_EFI >> bool "EFI-based Framebuffer Support" >> depends on (FB =3D y) && !IA64 && EFI >> + select DRM_PANEL_ORIENTATION_QUIRKS >> select FB_CFB_FILLRECT >> select FB_CFB_COPYAREA >> select FB_CFB_IMAGEBLIT >> diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c >> index 3a010641f630..8c7f6aeee205 100644 >> --- a/drivers/video/fbdev/efifb.c >> +++ b/drivers/video/fbdev/efifb.c >> @@ -15,6 +15,8 @@ >> #include >> #include