diff mbox series

ACPI / OSI: Add OEM _OSI string to enable dGPU direct output

Message ID 20181218040054.23182-1-alex.hung@canonical.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show
Series ACPI / OSI: Add OEM _OSI string to enable dGPU direct output | expand

Commit Message

Alex Hung Dec. 18, 2018, 4 a.m. UTC
For HP Inc. mobile workstation with hybrid graphics supports, dGPU can
directly output to external monitors; however, Nvidia and AMD's Linux
drivers aren't able to support this feature.

The OEM _OSI string "Linux-HPI-Hybrid-Graphics" is used by BIOS to
implement dGPU direct output to external monitors.

The form of the OEM _OSI strings is defined by each OEMs and is
discussed in Documentation/acpi/osi.txt.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 drivers/acpi/osi.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rafael J. Wysocki Dec. 20, 2018, 9:01 p.m. UTC | #1
On Tuesday, December 18, 2018 5:00:54 AM CET Alex Hung wrote:
> For HP Inc. mobile workstation with hybrid graphics supports, dGPU can
> directly output to external monitors; however, Nvidia and AMD's Linux
> drivers aren't able to support this feature.
> 
> The OEM _OSI string "Linux-HPI-Hybrid-Graphics" is used by BIOS to
> implement dGPU direct output to external monitors.
> 
> The form of the OEM _OSI strings is defined by each OEMs and is
> discussed in Documentation/acpi/osi.txt.
> 
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  drivers/acpi/osi.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c
> index e83297e..b6d3172 100644
> --- a/drivers/acpi/osi.c
> +++ b/drivers/acpi/osi.c
> @@ -74,6 +74,13 @@ osi_setup_entries[OSI_STRING_ENTRIES_MAX] __initdata = {
>  	 * a BIOS workaround.
>  	 */
>  	{"Linux-Lenovo-NV-HDMI-Audio", true},
> +	/*
> +	 * Linux-HPI-Hybrid-Graphics is used by BIOS to enable dGPU to
> +	 * output video directly to external monitors on HP Inc. mobile
> +	 * workstations as Nvidia and AMD VGA drivers provide limited
> +	 * hybrid graphics supports.
> +	 */
> +	{"Linux-HPI-Hybrid-Graphics", true},
>  };
>  
>  static u32 acpi_osi_handler(acpi_string interface, u32 supported)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c
index e83297e..b6d3172 100644
--- a/drivers/acpi/osi.c
+++ b/drivers/acpi/osi.c
@@ -74,6 +74,13 @@  osi_setup_entries[OSI_STRING_ENTRIES_MAX] __initdata = {
 	 * a BIOS workaround.
 	 */
 	{"Linux-Lenovo-NV-HDMI-Audio", true},
+	/*
+	 * Linux-HPI-Hybrid-Graphics is used by BIOS to enable dGPU to
+	 * output video directly to external monitors on HP Inc. mobile
+	 * workstations as Nvidia and AMD VGA drivers provide limited
+	 * hybrid graphics supports.
+	 */
+	{"Linux-HPI-Hybrid-Graphics", true},
 };
 
 static u32 acpi_osi_handler(acpi_string interface, u32 supported)