Skip to contentSkip to conversation

drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook

PATCH In review Hans de Goede 2 participants 4 messages Sep 5, 2021 – Sep 12, 2021

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

PATCH 1/1 drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook

The Chuwi HiBook uses a panel which has been mounted 90 degrees rotated. Add a quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +8 -0
index 4e965b0f5502..7e0f581a360e 100644
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Chuwi HiBook (CWI514) */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+			/* Above matches are too generic, add bios-date match */
+			DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+		},
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Chuwi Hi10 Pro (CWI529) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Hans de Goede

The Chuwi HiBook uses a panel which has been mounted 90 degrees rotated. Add a quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)

I'm not very familiar with these quirks, but this looks correct and inline with other entries in this table.

Quoted 9 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +1 -0
index 4e965b0f5502..7e0f581a360e 100644
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Chuwi HiBook (CWI514) */

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

Quoted 10 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+			/* Above matches are too generic, add bios-date match */
+			DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+		},
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Chuwi Hi10 Pro (CWI529) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),

One thing I noticed is that there doesn't seem to be an entry for Chuwi Hi10 anywhere in linux-next. Perhaps that's from a different patch in your local tree, or it's based on some other tree that already has that. In any case, I trust that this can be resolved when applying, so this seems okay:

#2 lore raw

Hi,

Quoted 27 lines · Thierry Reding
Quoted 7 lines · Hans de Goede

The Chuwi HiBook uses a panel which has been mounted 90 degrees rotated. Add a quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)

I'm not very familiar with these quirks, but this looks correct and inline with other entries in this table.

Quoted 15 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
index 4e965b0f5502..7e0f581a360e 100644
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Chuwi HiBook (CWI514) */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+			/* Above matches are too generic, add bios-date match */
+			DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+		},
Quoted 8 lines

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

Quoted 4 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +1 -0
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Chuwi Hi10 Pro (CWI529) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),

One thing I noticed is that there doesn't seem to be an entry for Chuwi Hi10 anywhere in linux-next. Perhaps that's from a different patch in your local tree, or it's based on some other tree that already has that.

It is based on drm-misc-next, which has a recent patch adding the Hi 10 Pro:

https://cgit.freedesktop.org/drm-misc/commit/?id=072e70d52372c44df90b44fb4cd949a709bb5bef

I guess this is not in linux-next yet because of the merge-window.

Quoted 4 lines

In any case, I trust that this can be resolved when applying, so this seems okay:

Thank you.

Regards,

Hans

#3 lore raw
In reply to Thierry Reding

Hi,

Quoted 38 lines · Thierry Reding
Quoted 7 lines · Hans de Goede

The Chuwi HiBook uses a panel which has been mounted 90 degrees rotated. Add a quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)

I'm not very familiar with these quirks, but this looks correct and inline with other entries in this table.

Quoted 9 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +1 -0
index 4e965b0f5502..7e0f581a360e 100644
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Chuwi HiBook (CWI514) */

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

Quoted 10 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+			/* Above matches are too generic, add bios-date match */
+			DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+		},
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Chuwi Hi10 Pro (CWI529) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),

One thing I noticed is that there doesn't seem to be an entry for Chuwi Hi10 anywhere in linux-next. Perhaps that's from a different patch in your local tree, or it's based on some other tree that already has that. In any case, I trust that this can be resolved when applying, so this seems okay:

Quoted 1 line

Thank you, I've pushed this to drm-misc-next now.

Regards,

Hans