mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision
@ 2024-06-27 17:59 Matthew Schwartz
  2024-06-27 17:59 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
  2024-06-27 17:59 ` [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Schwartz @ 2024-06-27 17:59 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: John Schoenick, Mario Limonciello, Kyle Gospodnetich,
	Hans de Goede, dri-devel, linux-kernel, Matthew Schwartz

This is a series of 2 patches. 

The first patch is from Valve's publicly available kernel 
source tree. It adds a panel rotation quirk for Valve's Steam Deck Galileo
revision, which has an 800x1280 OLED panel. The previous Steam Deck panel
orientation quirk does not apply to the Galileo revision's DMI.

The original commit is missing a Signed-off-by: from the original author, 
although the source tree is available publicly in a compressed package 
https://steamdeck-packages.steamos.cloud/archlinux-mirror/sources/
under the linux-integration-65 name in Jupiter-Main. 
It is also on the public mirror 
https://gitlab.com/evlaV/linux-integration/-/commit/d2522d8bf as the
official SteamOS GitLab instance itself is private.

I was told this could be submitted without the original 
author's Signed-off-by: if I used Suggested-by: and Link:
Please let me know if this is incorrect.
I added my own Signed-off-by: to the first patch as I was the one who
added a commit message explaining the change. I did not change any
functional part of the patch. 

The second patch is one that I authored to clarify which
device version each panel quirk applies to now that there are
multiple Steam Deck revisions. 


John Schoenick (1):
  drm: panel-orientation-quirks: Add quirk for Valve Galileo

Matthew Schwartz (1):
  drm: panel-orientation-quirks: Add labels for both Valve Steam Deck
    revisions

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

-- 
2.45.2


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

* [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo
  2024-06-27 17:59 [PATCH 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
@ 2024-06-27 17:59 ` Matthew Schwartz
  2024-06-27 18:11   ` Mario Limonciello
  2024-06-27 17:59 ` [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
  1 sibling, 1 reply; 6+ messages in thread
From: Matthew Schwartz @ 2024-06-27 17:59 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: John Schoenick, Mario Limonciello, Kyle Gospodnetich,
	Hans de Goede, dri-devel, linux-kernel, Matthew Schwartz

From: John Schoenick <johns@valvesoftware.com>

Valve's Steam Deck Galileo revision has a 800x1280 OLED panel

Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>
Suggested-by: Matthew Schwartz <mattschwartz@gwu.edu>
Link: https://gitlab.com/evlaV/linux-integration/-/commit/d2522d8bf88b35a8cf6978afbbd55c80d2d53f4f
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 3d127127e7cb..ac8319d38e37 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -427,6 +427,13 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Valve Steam Deck */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
-- 
2.45.2


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

* [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions
  2024-06-27 17:59 [PATCH 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
  2024-06-27 17:59 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
@ 2024-06-27 17:59 ` Matthew Schwartz
  2024-06-27 18:12   ` Mario Limonciello
  1 sibling, 1 reply; 6+ messages in thread
From: Matthew Schwartz @ 2024-06-27 17:59 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: John Schoenick, Mario Limonciello, Kyle Gospodnetich,
	Hans de Goede, dri-devel, linux-kernel, Matthew Schwartz

This accounts for the existence of two Steam Deck revisions 
instead of a single revision

Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index ac8319d38e37..3f84d7527793 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -420,14 +420,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"),
 		},
 		.driver_data = (void *)&lcd1280x1920_rightside_up,
-	}, {	/* Valve Steam Deck */
+	}, {	/* Valve Steam Deck (Jupiter) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Jupiter"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
-	}, {	/* Valve Steam Deck */
+	}, {	/* Valve Steam Deck (Galileo) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
-- 
2.45.2


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

* Re: [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo
  2024-06-27 17:59 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
@ 2024-06-27 18:11   ` Mario Limonciello
  2024-06-27 18:27     ` [PATCH V2 " Matthew Schwartz
  0 siblings, 1 reply; 6+ messages in thread
From: Mario Limonciello @ 2024-06-27 18:11 UTC (permalink / raw)
  To: Matthew Schwartz, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: John Schoenick, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, Matthew Schwartz

On 6/27/2024 12:59, Matthew Schwartz wrote:
> From: John Schoenick <johns@valvesoftware.com>
> 
> Valve's Steam Deck Galileo revision has a 800x1280 OLED panel
> 
> Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>

Your S-o-b should be the last thing in the patch commit log.

> Suggested-by: Matthew Schwartz <mattschwartz@gwu.edu>

I think in this case the specific Suggested-by should be for:

Suggested-by: John Schoenick <johns@valvesoftware.com>

> Link: https://gitlab.com/evlaV/linux-integration/-/commit/d2522d8bf88b35a8cf6978afbbd55c80d2d53f4f > ---
>   drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index 3d127127e7cb..ac8319d38e37 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -427,6 +427,13 @@ static const struct dmi_system_id orientation_data[] = {
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
>   		},
>   		.driver_data = (void *)&lcd800x1280_rightside_up,
> +	}, {	/* Valve Steam Deck */
> +		.matches = {
> +		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
> +		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
> +		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
> +		},
> +		.driver_data = (void *)&lcd800x1280_rightside_up,
>   	}, {	/* VIOS LTH17 */
>   		.matches = {
>   		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),


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

* Re: [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions
  2024-06-27 17:59 ` [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
@ 2024-06-27 18:12   ` Mario Limonciello
  0 siblings, 0 replies; 6+ messages in thread
From: Mario Limonciello @ 2024-06-27 18:12 UTC (permalink / raw)
  To: Matthew Schwartz, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: John Schoenick, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, Matthew Schwartz

On 6/27/2024 12:59, Matthew Schwartz wrote:
> This accounts for the existence of two Steam Deck revisions
> instead of a single revision
> 
> Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>

> ---
>   drivers/gpu/drm/drm_panel_orientation_quirks.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index ac8319d38e37..3f84d7527793 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -420,14 +420,14 @@ static const struct dmi_system_id orientation_data[] = {
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"),
>   		},
>   		.driver_data = (void *)&lcd1280x1920_rightside_up,
> -	}, {	/* Valve Steam Deck */
> +	}, {	/* Valve Steam Deck (Jupiter) */
>   		.matches = {
>   		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Jupiter"),
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
>   		},
>   		.driver_data = (void *)&lcd800x1280_rightside_up,
> -	}, {	/* Valve Steam Deck */
> +	}, {	/* Valve Steam Deck (Galileo) */
>   		.matches = {
>   		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),


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

* [PATCH V2 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo
  2024-06-27 18:11   ` Mario Limonciello
@ 2024-06-27 18:27     ` Matthew Schwartz
  0 siblings, 0 replies; 6+ messages in thread
From: Matthew Schwartz @ 2024-06-27 18:27 UTC (permalink / raw)
  To: mario.limonciello
  Cc: dri-devel, hdegoede, johns, linux-kernel, maarten.lankhorst,
	mattschwartz, mattschwartz, me, mripard, tzimmermann

From: John Schoenick <johns@valvesoftware.com>

Valve's Steam Deck Galileo revision has a 800x1280 OLED panel

Suggested-by: John Schoenick <johns@valvesoftware.com>
Link: https://gitlab.com/evlaV/linux-integration/-/commit/d2522d8bf88b35a8cf6978afbbd55c80d2d53f4f
Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 3d127127e7cb..ac8319d38e37 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -427,6 +427,13 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Valve Steam Deck */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
-- 
2.45.2


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

end of thread, other threads:[~2024-06-27 18:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-27 17:59 [PATCH 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
2024-06-27 17:59 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
2024-06-27 18:11   ` Mario Limonciello
2024-06-27 18:27     ` [PATCH V2 " Matthew Schwartz
2024-06-27 17:59 ` [PATCH 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
2024-06-27 18:12   ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®