Skip to contentSkip to conversation

drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad Mixx 310

PATCH In review Hans de Goede 3 participants 8 messages Apr 18, 2018 – Apr 25, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad Mixx 310

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +17 -0
index 902cc1a71e45..9274237b7f57 100644
@@ -60,6 +60,12 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lenovo_ideapad_miix_310 = {
+	.width = 800,
+	.height = 1280,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data vios_lth17 = {
 	.width = 800,
 	.height = 1280,
@@ -102,6 +108,17 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
 		},
 		.driver_data = (void *)&itworks_tw891,
+	}, {	/*
+		 * Lenovo Ideapad Miix 310 laptop, only some production batches
+		 * have a portrait screen, the resolution checks makes the quirk
+		 * apply only to those batches.
+		 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
+		},
+		.driver_data = (void *)&lenovo_ideapad_miix_310,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
Signature · 6 lines
2.17.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad Mixx 320

The Lenovo Ideapad Mixx 320 laptop uses a portrait LCD panel, add a quirk for this.

While at it instead of duplicating the same drm_dmi_panel_orientation_data for 3 laptops add a generic lcd800x1280_rightside_up orientation_data and use that for all 3 (including the new Mixx 320 entry).

---
 .../gpu/drm/drm_panel_orientation_quirks.c    | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_panel_orientation_quirks.c +10 -9
index 9274237b7f57..caebddda8bce 100644
@@ -60,13 +60,7 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
-static const struct drm_dmi_panel_orientation_data lenovo_ideapad_miix_310 = {
-	.width = 800,
-	.height = 1280,
-	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
-};
-
-static const struct drm_dmi_panel_orientation_data vios_lth17 = {
+static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
 	.width = 800,
 	.height = 1280,
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
@@ -118,13 +112,20 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
 		},
-		.driver_data = (void *)&lenovo_ideapad_miix_310,
+		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Lenovo Ideapad Miix 320 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
 		},
-		.driver_data = (void *)&vios_lth17,
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	},
 	{}
 };
Signature · 6 lines
2.17.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Hans de Goede

Hi,

Quoted 4 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Ping?

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Thanks & Regards,

Hans

Quoted 29 lines

--- > drivers/gpu/drm/drm_panel_orientation_quirks.c | 17 +++++++++++++++++

  1 file changed, 17 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +10 -0
index 902cc1a71e45..9274237b7f57 100644
@@ -60,6 +60,12 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
  	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
  };
 
+static const struct drm_dmi_panel_orientation_data lenovo_ideapad_miix_310 = {
+	.width = 800,
+	.height = 1280,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+};
+
  static const struct drm_dmi_panel_orientation_data vios_lth17 = {
  	.width = 800,
  	.height = 1280,
@@ -102,6 +108,17 @@ static const struct dmi_system_id orientation_data[] = {
  		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
  		},
  		.driver_data = (void *)&itworks_tw891,
+	}, {	/*
+		 * Lenovo Ideapad Miix 310 laptop, only some production batches
+		 * have a portrait screen, the resolution checks makes the quirk
+		 * apply only to those batches.

drivers/gpu/drm/drm_panel_orientation_quirks.c static const struct dmi_system_id orientation_data[] = { · line 124

Quoted 10 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
+		 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80SG"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"),
+		},
+		.driver_data = (void *)&lenovo_ideapad_miix_310,
  	}, {	/* VIOS LTH17 */
  		.matches = {
  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer Reviewed-by
#3 lore raw

Op 24-04-18 om 12:09 schreef Hans de Goede:

Quoted 6 lines

Hi,

Quoted 3 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Quoted 8 lines
Quoted 1 line

Ping?

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Thanks & Regards,

I don't have the hw, but patches look sane..

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Hi,

Quoted 11 lines · Maarten Lankhorst

Op 24-04-18 om 12:09 schreef Hans de Goede:

Quoted 10 lines

Hi,

Quoted 4 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Ping?

Quoted 7 lines
Quoted 4 lines

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Thanks & Regards,

I don't have the hw, but patches look sane..

Thank you, pushed.

Regards,

Hans
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to Maarten Lankhorst
Quoted 11 lines · Maarten Lankhorst

Op 24-04-18 om 12:09 schreef Hans de Goede:

Quoted 10 lines

Hi,

Quoted 4 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Ping?

Quoted 7 lines
Quoted 4 lines

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Thanks & Regards,

I don't have the hw, but patches look sane..

For quirks, bugzilla/reporter/any other evidence why we need it would be really good. If you haven't pushed yet, pls add that. -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

Hi,

Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Maarten Lankhorst

Op 24-04-18 om 12:09 schreef Hans de Goede:

Quoted 13 lines

Hi,

Quoted 4 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Ping?

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Thanks & Regards,

I don't have the hw, but patches look sane..

For quirks, bugzilla/reporter/any other evidence why we need it would be really good. If you haven't pushed yet, pls add that.

Sorry, too late. I must admit I'm a bit of a hoarder when it comes to BYT / CHT hardware (as I spend my spare time on trying to make those work properly with Linux) and I own all devices currently listed, except for the GPD Pocket which I borrowed from a friend for a while to get it supported properly under Linux.

But I'm currently emailing with someone who has a device with a non-upright mounted LCD-panel which will need a quirk too, which will be the first device I don't have access to myself.

I will add his email address as a comment to the entry when I submit the patch for that.

Regards,

Hans
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
Quoted 33 lines · Hans de Goede

Hi,

Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Maarten Lankhorst

Op 24-04-18 om 12:09 schreef Hans de Goede:

Quoted 13 lines

Hi,

Quoted 4 lines · Hans de Goede

Some production batches of the Lenovo Ideapad Mixx 310 laptop use a portrait LCD panel, add a quirk for this.

Ping?

Can I please get an ack for these 2 trivial patches to that I can push them to drm-misc-next ?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Thanks & Regards,

I don't have the hw, but patches look sane..

For quirks, bugzilla/reporter/any other evidence why we need it would be really good. If you haven't pushed yet, pls add that.

Sorry, too late. I must admit I'm a bit of a hoarder when it comes to BYT / CHT hardware (as I spend my spare time on trying to make those work properly with Linux) and I own all devices currently listed, except for the GPD Pocket which I borrowed from a friend for a while to get it supported properly under Linux.

Quoted 3 lines

But I'm currently emailing with someone who has a device with a non-upright mounted LCD-panel which will need a quirk too, which will be the first device I don't have access to myself.

Ah ok, as long as all we need to figure this out is nag you I think it's ok. We've had plenty of cases in the past where it looked like quirk entries just papered over a driver bug (which we discovered much later), so it's good if there's some way to get hold of the original reporters again. Even if chances are generally slim.

Quoted 2 lines

I will add his email address as a comment to the entry when I submit the patch for that.

Commit message is prefectly fine.

Thanks, Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel