public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Avoid creating acpi_video0 on desktop APUs
@ 2022-12-07 19:31 Mario Limonciello
  2022-12-07 19:31 ` [PATCH 1/2] ACPI: video: Allow GPU drivers to report no panels Mario Limonciello
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mario Limonciello @ 2022-12-07 19:31 UTC (permalink / raw)
  To: Hans de Goede, Rafael J . Wysocki, Alexander Deucher
  Cc: amd-gfx, linux-acpi, Mario Limonciello

In kernel 6.1 the backlight registration code was overhauled so that
at most one backlight device got registered. As part of this change
there was code added to cover the "nomodeset" case to still allow
making an acpi_video0 device if the BIOS contained backlight control
methods.

This fallback logic however is failing on the BIOS from a number of
motherboard manufacturers supporting Ryzen APUs.  What happens is
the amdgpu driver finishes registration and as expected doesn't
create a backlight control device since no eDP panels are connected
to a desktop.

Then 8 seconds later the ACPI video detection code creates an
acpi_video0 device that is non-operational. GNOME then creates a
backlight slider.

To avoid this situation from happening add support for video drivers
to notify the ACPI video detection code that no panel was detected.

To reduce the risk of regressions on multi-GPU systems:
* only use this logic when the system is reported as a desktop enclosure.
* in the amdgpu code only report into this for APUs.

Mario Limonciello (2):
  ACPI: video: Allow GPU drivers to report no panels
  drm/amd/display: Report to ACPI video if no panels were found

 drivers/acpi/acpi_video.c                         | 12 ++++++++++++
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  4 ++++
 include/acpi/video.h                              |  1 +
 3 files changed, 17 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2022-12-07 23:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-07 19:31 [PATCH 0/2] Avoid creating acpi_video0 on desktop APUs Mario Limonciello
2022-12-07 19:31 ` [PATCH 1/2] ACPI: video: Allow GPU drivers to report no panels Mario Limonciello
2022-12-07 19:31 ` [PATCH 2/2] drm/amd/display: Report to ACPI video if no panels were found Mario Limonciello
2022-12-07 21:04 ` [PATCH 0/2] Avoid creating acpi_video0 on desktop APUs Hans de Goede
2022-12-07 21:21   ` Limonciello, Mario
2022-12-07 21:32     ` Hans de Goede
2022-12-07 23:41       ` Daniel Dadap

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