stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels
@ 2022-04-02  9:30 Hans de Goede
  2022-04-02  9:30 ` [PATCH 1/1] " Hans de Goede
  2022-04-02 11:00 ` [PATCH 0/1] " Greg Kroah-Hartman
  0 siblings, 2 replies; 3+ messages in thread
From: Hans de Goede @ 2022-04-02  9:30 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Hans de Goede, dri-devel, stable

Hi Greg,

Fedora 36 has switched from efifb to simpledrm as the pre-native-GPU driver
fb provider and the lack of this patch is causing issues for devices with
non up-right mounted LCD panels (1), can you please add this to the 5.17 stable
series?

Regards,

Hans

1) https://bugzilla.redhat.com/show_bug.cgi?id=2071134


Hans de Goede (1):
  drm/simpledrm: Add "panel orientation" property on non-upright mounted
    LCD panels

 drivers/gpu/drm/tiny/simpledrm.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels
  2022-04-02  9:30 [PATCH 0/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels Hans de Goede
@ 2022-04-02  9:30 ` Hans de Goede
  2022-04-02 11:00 ` [PATCH 0/1] " Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2022-04-02  9:30 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Hans de Goede, dri-devel, stable, Javier Martinez Canillas,
	Thomas Zimmermann

commit 94fa115f7b28a3f02611499175e134f0a823b686 upstream.

Some devices use e.g. a portrait panel in a standard laptop casing made
for landscape panels. efifb calls drm_get_panel_orientation_quirk() and
sets fb_info.fbcon_rotate_hint to make fbcon rotate the console so that
it shows up-right instead of on its side.

When switching to simpledrm the fbcon renders on its side. Call the
drm_connector_set_panel_orientation_with_quirk() helper to add
a "panel orientation" property on devices listed in the quirk table,
to make the fbcon (and aware userspace apps) rotate the image to
display properly.

Cc: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221220045.11958-1-hdegoede@redhat.com
---
 drivers/gpu/drm/tiny/simpledrm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c
index d191e87a37b5..f5b8e864a5cd 100644
--- a/drivers/gpu/drm/tiny/simpledrm.c
+++ b/drivers/gpu/drm/tiny/simpledrm.c
@@ -810,6 +810,9 @@ static int simpledrm_device_init_modeset(struct simpledrm_device *sdev)
 	if (ret)
 		return ret;
 	drm_connector_helper_add(connector, &simpledrm_connector_helper_funcs);
+	drm_connector_set_panel_orientation_with_quirk(connector,
+						       DRM_MODE_PANEL_ORIENTATION_UNKNOWN,
+						       mode->hdisplay, mode->vdisplay);
 
 	formats = simpledrm_device_formats(sdev, &nformats);
 
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels
  2022-04-02  9:30 [PATCH 0/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels Hans de Goede
  2022-04-02  9:30 ` [PATCH 1/1] " Hans de Goede
@ 2022-04-02 11:00 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2022-04-02 11:00 UTC (permalink / raw)
  To: Hans de Goede; +Cc: dri-devel, stable

On Sat, Apr 02, 2022 at 11:30:28AM +0200, Hans de Goede wrote:
> Hi Greg,
> 
> Fedora 36 has switched from efifb to simpledrm as the pre-native-GPU driver
> fb provider and the lack of this patch is causing issues for devices with
> non up-right mounted LCD panels (1), can you please add this to the 5.17 stable
> series?
> 
> Regards,
> 
> Hans
> 
> 1) https://bugzilla.redhat.com/show_bug.cgi?id=2071134
> 
> 
> Hans de Goede (1):
>   drm/simpledrm: Add "panel orientation" property on non-upright mounted
>     LCD panels
> 
>  drivers/gpu/drm/tiny/simpledrm.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> -- 
> 2.35.1
> 

Now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-02 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-02  9:30 [PATCH 0/1] drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels Hans de Goede
2022-04-02  9:30 ` [PATCH 1/1] " Hans de Goede
2022-04-02 11:00 ` [PATCH 0/1] " Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).