]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ACPI / OSI: Add OEM _OSI string to enable dGPU direct output
authorAlex Hung <alex.hung@canonical.com>
Mon, 7 Jan 2019 16:13:21 +0000 (08:13 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
For HP Inc. mobile workstation with hybrid graphics support, 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.

BugLink: http://bugs.launchpad.net/bugs/1810702
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 28586a51eea666d5531bcaef2f68e4abbd87242c)
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/osi.c

index e83297ed4ff9e2eafe193d5e130f0bad0b30bba8..09053a2ab748f8801d47323fbde2fb0008e0d57d 100644 (file)
@@ -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)