]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
DRM: Add a new 'boot_display' attribute
authorMario Limonciello (AMD) <superm1@kernel.org>
Mon, 11 Aug 2025 16:26:06 +0000 (11:26 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Wed, 10 Sep 2025 14:35:33 +0000 (09:35 -0500)
commit7df7b728c3cff1d61253c39e38e39c33bb4e7d09
tree98f06e4e5b66aeb8003186cb5cfedcf54a514cbe
parentad90860bd10ee3ed387077aed88828b139339976
DRM: Add a new 'boot_display' attribute

On systems with multiple GPUs there can be uncertainty which GPU is the
primary one used to drive the display at bootup. In some desktop
environments this can lead to increased power consumption because
secondary GPUs may be used for rendering and never go to a low power
state. In order to disambiguate this add a new sysfs attribute
'boot_display' that uses the output of video_is_primary_device() to
populate whether the PCI device was used for driving the display.

Suggested-by: Manivannan Sadhasivam <mani@kernel.org>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/issues/23
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250811162606.587759-5-superm1@kernel.org
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Documentation/ABI/testing/sysfs-class-drm [new file with mode: 0644]
drivers/gpu/drm/drm_sysfs.c