Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1584976 > unrolled thread

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

Started byTobias Schumacher <tobe.schumacher@gmail.com>
First post2017-02-21 01:40 +0100
Last post2017-02-27 23:40 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341 Tobias Schumacher <tobe.schumacher@gmail.com> - 2017-02-21 01:40 +0100
    Re: [PATCH] Fix lock up when switching off discrete graphics card in  Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341 Ladislav Michl <ladis@linux-mips.org> - 2017-02-21 10:50 +0100
      Re: [PATCH] Fix lock up when switching off discrete graphics card  in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341 Tobias Schumacher <tobe.schumacher@gmail.com> - 2017-02-21 20:40 +0100
        Re: [PATCH] Fix lock up when switching off discrete graphics card in  Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341 "Rafael J. Wysocki" <rafael@kernel.org> - 2017-02-27 23:20 +0100
          Re: [PATCH] Fix lock up when switching off discrete graphics card  in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341 Tobias Schumacher <tobe.schumacher@gmail.com> - 2017-02-27 23:40 +0100

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

FromTobias Schumacher <tobe.schumacher@gmail.com>
Date2017-02-21 01:40 +0100
Subject[PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341
Message-ID<td6EN-3qD-3@gated-at.bofh.it>
Signed-off-by: Tobias Schumacher <tobe.schumacher@gmail.com>
---
 drivers/acpi/blacklist.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
index 4421f7c..7945f2f 100644
--- a/drivers/acpi/blacklist.c
+++ b/drivers/acpi/blacklist.c
@@ -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
 	{}
 };
-- 
2.9.3

[toc] | [next] | [standalone]


#1585173 — Re: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

FromLadislav Michl <ladis@linux-mips.org>
Date2017-02-21 10:50 +0100
SubjectRe: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341
Message-ID<tdff5-Kd-33@gated-at.bofh.it>
In reply to#1584976
Hi Tobias,

On Tue, Feb 21, 2017 at 01:36:25AM +0100, Tobias Schumacher wrote:
> Signed-off-by: Tobias Schumacher <tobe.schumacher@gmail.com>
> ---
>  drivers/acpi/blacklist.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
> index 4421f7c..7945f2f 100644
> --- a/drivers/acpi/blacklist.c
> +++ b/drivers/acpi/blacklist.c
> @@ -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
>  	{}
>  };

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

[toc] | [prev] | [next] | [standalone]


#1585688 — Re: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

FromTobias Schumacher <tobe.schumacher@gmail.com>
Date2017-02-21 20:40 +0100
SubjectRe: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341
Message-ID<tdos1-71j-7@gated-at.bofh.it>
In reply to#1585173
Hi Ladislav,

Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:
> Hi Tobias,
> 
> On Tue, Feb 21, 2017 at 01:36:25AM +0100, Tobias Schumacher wrote:
> > Signed-off-by: Tobias Schumacher <tobe.schumacher@gmail.com>
> > ---
> >  drivers/acpi/blacklist.c | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> > 
> > diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
> > index 4421f7c..7945f2f 100644
> > --- a/drivers/acpi/blacklist.c
> > +++ b/drivers/acpi/blacklist.c
> > @@ -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
> >  	{}
> >  };
> 
> 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

[toc] | [prev] | [next] | [standalone]


#1588984 — Re: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

From"Rafael J. Wysocki" <rafael@kernel.org>
Date2017-02-27 23:20 +0100
SubjectRe: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341
Message-ID<tfBOa-3yE-39@gated-at.bofh.it>
In reply to#1585688
On Tue, Feb 21, 2017 at 8:33 PM, Tobias Schumacher
<tobe.schumacher@gmail.com> wrote:
> Hi Ladislav,
>
> Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:
>> Hi Tobias,
>>
>> On Tue, Feb 21, 2017 at 01:36:25AM +0100, Tobias Schumacher wrote:
>> > Signed-off-by: Tobias Schumacher <tobe.schumacher@gmail.com>
>> > ---
>> >  drivers/acpi/blacklist.c | 14 ++++++++++++++
>> >  1 file changed, 14 insertions(+)
>> >
>> > diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
>> > index 4421f7c..7945f2f 100644
>> > --- a/drivers/acpi/blacklist.c
>> > +++ b/drivers/acpi/blacklist.c
>> > @@ -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
>> >     {}
>> >  };
>>
>> 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.

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

Thanks,
Rafael

[toc] | [prev] | [next] | [standalone]


#1589012 — Re: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341

FromTobias Schumacher <tobe.schumacher@gmail.com>
Date2017-02-27 23:40 +0100
SubjectRe: [PATCH] Fix lock up when switching off discrete graphics card in Dell XPS 9560 https://bugzilla.kernel.org/show_bug.cgi?id=156341
Message-ID<tfC7w-3G2-25@gated-at.bofh.it>
In reply to#1588984
Hi Rafael,

Am Montag, den 27.02.2017, 23:19 +0100 schrieb Rafael J. Wysocki:
> On Tue, Feb 21, 2017 at 8:33 PM, Tobias Schumacher
> <tobe.schumacher@gmail.com> wrote:
> > Hi Ladislav,
> > 
> > Am Dienstag, den 21.02.2017, 10:41 +0100 schrieb Ladislav Michl:
> > > Hi Tobias,
> > > 
> > > On Tue, Feb 21, 2017 at 01:36:25AM +0100, Tobias Schumacher
> > > wrote:
> > > > Signed-off-by: Tobias Schumacher <tobe.schumacher@gmail.com>
> > > > ---
> > > >  drivers/acpi/blacklist.c | 14 ++++++++++++++
> > > >  1 file changed, 14 insertions(+)
> > > > 
> > > > diff --git a/drivers/acpi/blacklist.c
> > > > b/drivers/acpi/blacklist.c
> > > > index 4421f7c..7945f2f 100644
> > > > --- a/drivers/acpi/blacklist.c
> > > > +++ b/drivers/acpi/blacklist.c
> > > > @@ -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
> > > >     {}
> > > >  };
> > > 
> > > 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.
> 
> 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web