Skip to contentSkip to conversation

Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

PATCH In review Tobias Schumacher 3 participants 5 messages Feb 21, 2017 – Feb 27, 2017 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

---
 drivers/acpi/blacklist.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/acpi/blacklist.c +14 -0
index 4421f7c..7945f2f 100644
@@ -188,6 +188,20 @@ static struct dmi_system_id acpi_rev_dmi_table[] __initdata = {
 		      DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 3350"),
 		},
 	},
+	/*
+	 * Resolves issues that cause the system to lock up
+	 * under certain conditions when the discrete graphics
+	 * card is turned off
+	 */
+	{
+	 .callback = dmi_enable_rev_override,
+	 .ident = "DELL XPS 15 (2017)",
+	 .matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9560"),
+		},
+	},
+
 #endif
 	{}
 };
Signature · 1 line
2.9.3
#1 lore raw

Hi Tobias,

Quoted 20 lines · Tobias Schumacher
---
 drivers/acpi/blacklist.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/acpi/blacklist.c +7 -0
index 4421f7c..7945f2f 100644
@@ -188,6 +188,20 @@ static struct dmi_system_id acpi_rev_dmi_table[] __initdata = {
 		      DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 3350"),
 		},
 	},
+	/*
+	 * Resolves issues that cause the system to lock up
+	 * under certain conditions when the discrete graphics
+	 * card is turned off
+	 */
+	{
+	 .callback = dmi_enable_rev_override,

drivers/acpi/blacklist.c static struct dmi_system_id acpi_rev_dmi_table[] __initdata = { · line 207

Quoted 10 lines
drivers/acpi/blacklist.c +7 -0
+	 .ident = "DELL XPS 15 (2017)",
+	 .matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9560"),
+		},
+	},
+
 #endif
 	{}
 };

I thought conclusion was _not_ adding any new devices into this evergrowing list. Or am I mistaken? As otherwise I'll sent similar patch for my laptop ;-)

ladis

#2 lore raw

Hi Ladislav,

Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:

Quoted 33 lines

Hi Tobias,

Quoted 30 lines · Tobias Schumacher

---
 drivers/acpi/blacklist.c | 14 ++++++++++++++

 1 file changed, 14 insertions(+)
drivers/acpi/blacklist.c +0 -0
index 4421f7c..7945f2f 100644
@@ -188,6 +188,20 @@ static struct dmi_system_id
 acpi_rev_dmi_table[] __initdata = {

        DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 3350"),
  },
  },

drivers/acpi/blacklist.c +11 -0
+	/*
+	 * Resolves issues that cause the system to lock up
+	 * under certain conditions when the discrete graphics
+	 * card is turned off
+	 */
+	{
+	 .callback = dmi_enable_rev_override,
+	 .ident = "DELL XPS 15 (2017)",
+	 .matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15

9560"),

drivers/acpi/blacklist.c +3 -0
+		},
+	},
+
Quoted 8 lines
Quoted 3 lines

 #endif
  {}
 };

I thought conclusion was _not_ adding any new devices into this evergrowing
list. Or am I mistaken? As otherwise I'll sent similar patch for my laptop ;-)

I don't know to be honest - I recently switched back from Mac to Linux and searched for a way to get things working properly. Without any kernel parameters and patches switching off the discrete graphics will lead to lockups when executing for example lspci. Booting with 'acpi_osi=! acpi_osi="Windows 2009"' fixes this, but unfortunately the touchpad will stop working properly. With this patch both things work.

If the conclusion is not adding new devices here, is there also a prefered way of fixing this? I guess getting Dell to fix this would be the ideal solution, but what can we do in the meantime? Would adding a kernel parameter like acpi_rev that overrides the reported ACPI revision be acceptable? The only other solution I could thing of would be patching the ACPI tables.

Tobias

#3 lore raw
Quoted 52 lines · Tobias Schumacher

Hi Ladislav,

Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:

Quoted 33 lines

Hi Tobias,

Quoted 30 lines · Tobias Schumacher
---
 drivers/acpi/blacklist.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/acpi/blacklist.c +14 -0
index 4421f7c..7945f2f 100644
@@ -188,6 +188,20 @@ static struct dmi_system_id
 acpi_rev_dmi_table[] __initdata = {
                  DMI_MATCH(DMI_PRODUCT_NAME, "Latitude
 3350"),
            },
    },
+   /*
+    * Resolves issues that cause the system to lock up
+    * under certain conditions when the discrete graphics
+    * card is turned off
+    */
+   {
+    .callback = dmi_enable_rev_override,
+    .ident = "DELL XPS 15 (2017)",
+    .matches = {
+                   DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                   DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15
 9560"),
+           },
+   },
+
Quoted 8 lines
Quoted 3 lines
 #endif
    {}

};

I thought conclusion was _not_ adding any new devices into this evergrowing
list. Or am I mistaken? As otherwise I'll sent similar patch for my laptop ;-)

I don't know to be honest - I recently switched back from Mac to Linux and searched for a way to get things working properly. Without any kernel parameters and patches switching off the discrete graphics will lead to lockups when executing for example lspci. Booting with 'acpi_osi=! acpi_osi="Windows 2009"' fixes this, but unfortunately the touchpad will stop working properly. With this patch both things work.

Quoted 6 lines

If the conclusion is not adding new devices here, is there also a prefered way of fixing this? I guess getting Dell to fix this would be the ideal solution, but what can we do in the meantime? Would adding a kernel parameter like acpi_rev that overrides the reported ACPI revision be acceptable? The only other solution I could thing of would be patching the ACPI tables.

Did you try to boot with acpi_rev_override in the kernel command line?

Thanks,
Rafael

#4 lore raw

Hi Rafael,

Am Montag, den 27.02.2017, 23:19 +0100 schrieb Rafael J. Wysocki:

Quoted 71 lines
Quoted 59 lines · Tobias Schumacher

Hi Ladislav,

Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:

Quoted 36 lines

Hi Tobias,

Quoted 32 lines · Tobias Schumacher

---
 drivers/acpi/blacklist.c | 14 ++++++++++++++

 1 file changed, 14 insertions(+)
drivers/acpi/blacklist.c +0 -0
index 4421f7c..7945f2f 100644
@@ -188,6 +188,20 @@ static struct dmi_system_id
 acpi_rev_dmi_table[] __initdata = {

                  DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 3350"),
            },
    },
+   /*
+    * Resolves issues that cause the system to lock up +    * under certain conditions when the discrete graphics +    * card is turned off
+    */
+   {
+    .callback = dmi_enable_rev_override,
+    .ident = "DELL XPS 15 (2017)",
+    .matches = {
+                   DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), +                   DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9560"),
+           },
+   },
+
 #endif

Quoted 8 lines
Quoted 2 lines

    {}
 };

I thought conclusion was _not_ adding any new devices into this evergrowing
list. Or am I mistaken? As otherwise I'll sent similar patch for my
laptop ;-)

I don't know to be honest - I recently switched back from Mac to Linux
and searched for a way to get things working properly. Without any kernel parameters and patches switching off the discrete graphics will
lead to lockups when executing for example lspci. Booting with 'acpi_osi=! acpi_osi="Windows 2009"' fixes this, but unfortunately the
touchpad will stop working properly. With this patch both things work.

Quoted 9 lines

If the conclusion is not adding new devices here, is there also a prefered way of fixing this? I guess getting Dell to fix this would be
the ideal solution, but what can we do in the meantime? Would adding a
kernel parameter like acpi_rev that overrides the reported ACPI revision be acceptable? The only other solution I could thing of would
be patching the ACPI tables.

Quoted 2 lines

Did you try to boot with acpi_rev_override in the kernel command line?

I actually searched for an option like that but didn't find it, that's why I came up with the patch. Now I tried, looks like it works great! Thanks a lot!

Tobias