mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Kai-Heng Feng](/assets/img/avatar_default.png)
On HP Fury G7 Workstations, graphics output is re-routed from Intel GFX to discrete GFX after S3. This is not desirable, because userspace will treat connected display as a new one, losing display settings. The expected behavior is to let discrete GFX drives all external displays. The platform in question uses ACPI method \_SB.PCI0.HGME to enable MUX. The method is inside the another _DSM, so add the _DSM and call it accordingly. I also tested some MUX-less and iGPU only laptops with that _DSM, no regression was found. v4: - Rebase. - Change the DSM name to avoid confusion. - Move the function call to intel_opregion. v3: - Remove BXT from names. - Change the parameter type. - Fold the function into intel_modeset_init_hw(). v2: - Forward declare struct pci_dev. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3113 References: https://lore.kernel.org/intel-gfx/1460040732-31417-4-git-send-email-animesh.manna@intel.com/ Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210520065832.614245-1-kai.heng.feng@canonical.com
25 lines
784 B
C
25 lines
784 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_ACPI_H__
|
|
#define __INTEL_ACPI_H__
|
|
|
|
struct drm_i915_private;
|
|
|
|
#ifdef CONFIG_ACPI
|
|
void intel_register_dsm_handler(void);
|
|
void intel_unregister_dsm_handler(void);
|
|
void intel_dsm_get_bios_data_funcs_supported(struct drm_i915_private *i915);
|
|
void intel_acpi_device_id_update(struct drm_i915_private *i915);
|
|
#else
|
|
static inline void intel_register_dsm_handler(void) { return; }
|
|
static inline void intel_unregister_dsm_handler(void) { return; }
|
|
static inline
|
|
void intel_dsm_get_bios_data_funcs_supported(struct drm_i915_private *i915) { return; }
|
|
static inline
|
|
void intel_acpi_device_id_update(struct drm_i915_private *i915) { return; }
|
|
#endif /* CONFIG_ACPI */
|
|
|
|
#endif /* __INTEL_ACPI_H__ */
|