public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm: minimum backlight overrides and implementation for amdgpu
@ 2024-07-31 17:00 Thomas Weißschuh
  2024-07-31 17:00 ` [PATCH v3 1/2] drm/connector: add drm_connector_get_cmdline_min_brightness_override() Thomas Weißschuh
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas Weißschuh @ 2024-07-31 17:00 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, Daniel Vetter,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	Harry Wentland, Leo Li, Rodrigo Siqueira, Mario Limonciello,
	Matt Hartley, Kieran Levin, Hans de Goede, Xinhui Pan
  Cc: amd-gfx, dri-devel, linux-kernel, Dustin Howett,
	Thomas Weißschuh

The value of "min_input_signal" returned from ATIF on a Framework AMD 13
is "12". This leads to a fairly bright minimum display backlight.

Add a generic override helper for the user to override the settings
provided by the firmware through the kernel cmdline.
Also add amdgpu as a user of that helper.

One solution would be a fixed firmware version, which was announced but
has no timeline.

This helper does conflict with the mode override via the cmdline.
Only one can be specified.
IMO the mode override can be extended to also handle "min-brightness"
when that becomes necessary.

---
Changes in v3:
- Switch to cmdline override parameter
- Link to v2: https://lore.kernel.org/r/20240623-amdgpu-min-backlight-quirk-v2-0-cecf7f49da9b@weissschuh.net

Changes in v2:
- Introduce proper drm backlight quirk infrastructure
- Quirk by EDID and DMI instead of only DMI
- Limit quirk to only single Framework 13 matte panel
- Link to v1: https://lore.kernel.org/r/20240610-amdgpu-min-backlight-quirk-v1-1-8459895a5b2a@weissschuh.net

---
Thomas Weißschuh (2):
      drm/connector: add drm_connector_get_cmdline_min_brightness_override()
      drm/amd/display: implement minimum brightness override

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  6 ++++
 drivers/gpu/drm/drm_connector.c                   | 34 +++++++++++++++++++++++
 include/drm/drm_connector.h                       |  2 ++
 3 files changed, 42 insertions(+)
---
base-commit: 36821612eb3091a21f7f4a907b497064725080c3
change-id: 20240610-amdgpu-min-backlight-quirk-8402fd8e736a

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2024-08-02 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 17:00 [PATCH v3 0/2] drm: minimum backlight overrides and implementation for amdgpu Thomas Weißschuh
2024-07-31 17:00 ` [PATCH v3 1/2] drm/connector: add drm_connector_get_cmdline_min_brightness_override() Thomas Weißschuh
2024-07-31 17:00 ` [PATCH v3 2/2] drm/amd/display: implement minimum brightness override Thomas Weißschuh
2024-07-31 17:40 ` [PATCH v3 0/2] drm: minimum backlight overrides and implementation for amdgpu Jani Nikula
2024-07-31 20:55   ` Daniel Vetter
2024-08-01  8:52     ` Hans de Goede
2024-08-02 15:53       ` Thomas Weißschuh

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