Displaying 4 results from an estimated 4 matches for "nouveau_runpm_calls_dsm".
2019 May 07
0
[PATCH v2 1/4] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
...f --git a/drm/nouveau/nouveau_acpi.c b/drm/nouveau/nouveau_acpi.c
index ffb19585..92dfc900 100644
--- a/drm/nouveau/nouveau_acpi.c
+++ b/drm/nouveau/nouveau_acpi.c
@@ -358,6 +358,12 @@ void nouveau_register_dsm_handler(void)
vga_switcheroo_register_handler(&nouveau_dsm_handler, 0);
}
+bool nouveau_runpm_calls_dsm(void)
+{
+ return nouveau_dsm_priv.optimus_detected &&
+ !nouveau_dsm_priv.optimus_skip_dsm;
+}
+
/* Must be called for Optimus models before the card can be turned off */
void nouveau_switcheroo_optimus_dsm(void)
{
@@ -371,7 +377,6 @@ void nouveau_switcheroo_optimus_dsm(void)
nouve...
2019 Jun 14
0
[PATCH] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
...f --git a/drm/nouveau/nouveau_acpi.c b/drm/nouveau/nouveau_acpi.c
index ffb19585..92dfc900 100644
--- a/drm/nouveau/nouveau_acpi.c
+++ b/drm/nouveau/nouveau_acpi.c
@@ -358,6 +358,12 @@ void nouveau_register_dsm_handler(void)
vga_switcheroo_register_handler(&nouveau_dsm_handler, 0);
}
+bool nouveau_runpm_calls_dsm(void)
+{
+ return nouveau_dsm_priv.optimus_detected &&
+ !nouveau_dsm_priv.optimus_skip_dsm;
+}
+
/* Must be called for Optimus models before the card can be turned off */
void nouveau_switcheroo_optimus_dsm(void)
{
@@ -371,7 +377,6 @@ void nouveau_switcheroo_optimus_dsm(void)
nouve...
2019 Jun 18
0
[PATCH v3] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
...--git a/drm/nouveau/nouveau_acpi.c b/drm/nouveau/nouveau_acpi.c
index ffb195850..c483b8b21 100644
--- a/drm/nouveau/nouveau_acpi.c
+++ b/drm/nouveau/nouveau_acpi.c
@@ -358,6 +358,12 @@ void nouveau_register_dsm_handler(void)
vga_switcheroo_register_handler(&nouveau_dsm_handler, 0);
}
+bool nouveau_runpm_calls_dsm(void)
+{
+ return (nouveau_dsm_priv.optimus_detected || nouveau_dsm_priv.dsm_detected)
+ && !nouveau_dsm_priv.optimus_skip_dsm;
+}
+
/* Must be called for Optimus models before the card can be turned off */
void nouveau_switcheroo_optimus_dsm(void)
{
@@ -371,7 +377,6 @@ void nouveau_swi...
2019 May 07
8
[PATCH v2 0/4] Potential fix for runpm issues on various laptops
CCing linux-pci and Bjorn Helgaas. Maybe we could get better insights on
how a reasonable fix would look like.
Anyway, to me this entire issue looks like something which has to be fixed
on a PCI level instead of inside a driver, so it makes sense to ask the
pci folks if they have any better suggestions.
Original cover letter:
While investigating the runpm issues on my GP107 I noticed that