mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Alternative approach for boot_display visibility
@ 2025-07-22  4:10 Mario Limonciello
  2025-07-22  4:10 ` [PATCH v5 1/2] fbcon: Stop using screen_info_pci_dev() Mario Limonciello
  2025-07-22  4:10 ` [PATCH v5 2/2] PCI: Adjust visibility of boot_display attribute instead of creation Mario Limonciello
  0 siblings, 2 replies; 3+ messages in thread
From: Mario Limonciello @ 2025-07-22  4:10 UTC (permalink / raw)
  To: David Airlie, Bjorn Helgaas
  Cc: Alex Deucher, Christian König, Simona Vetter,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	open list:DRM DRIVERS, open list, open list:PCI SUBSYSTEM,
	Daniel Dadap, Mario Limonciello

From: Mario Limonciello <mario.limonciello@amd.com>

The past few days there have been various discussions about what to do
with the boot_display sysfs file so that it doesn't need to be made so
late in startup.

Bjorn had an aha moment pointing out that there is no reason to "find"
the PCI device using screen_info_pci_dev() because the device is already
known.  Instead we just need to check if it has the screen resources.

This series adjusts the boot_display behavior to use that and then convert
boot_display into a static sysfs file that can be loaded when the device
is created without needing to change visibility.

This is an ALTERNATIVE to moving it to DRM, which is what v4 does [1].
Either solution can be picked up depending upon the collective decision
whether to keep boot_display file in PCI core or DRM core.

Link: https://lore.kernel.org/linux-pci/20250721185726.1264909-1-superm1@kernel.org/T/#me4356b3a172cbdafe83393bedce10f17a86e0da7

Mario Limonciello (2):
  fbcon: Stop using screen_info_pci_dev()
  PCI: Adjust visibility of boot_display attribute instead of creation

 arch/x86/video/video-common.c | 12 ++++++--
 drivers/pci/pci-sysfs.c       | 58 ++++++++++++-----------------------
 2 files changed, 30 insertions(+), 40 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-07-22  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-22  4:10 [PATCH v5 0/2] Alternative approach for boot_display visibility Mario Limonciello
2025-07-22  4:10 ` [PATCH v5 1/2] fbcon: Stop using screen_info_pci_dev() Mario Limonciello
2025-07-22  4:10 ` [PATCH v5 2/2] PCI: Adjust visibility of boot_display attribute instead of creation 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®