linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
@ 2018-06-05 17:38 Helge Eichelberg
  2018-06-06 15:21 ` Pali Rohár
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Eichelberg @ 2018-06-05 17:38 UTC (permalink / raw)
  Cc: Helge Eichelberg, Pali Rohár, Jean Delvare, Guenter Roeck,
	linux-hwmon, linux-kernel

Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
disable fan support for Dell XPS13 9333.

Via "force" module param fan support can be enabled.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
---
 drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
index bf3bb7e1adab..9d3ef879dc51 100644
--- a/drivers/hwmon/dell-smm-hwmon.c
+++ b/drivers/hwmon/dell-smm-hwmon.c
@@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
 			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
 		},
 	},
+	{
+		.ident = "Dell XPS13 9333",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
+		},
+	},
 	{ }
 };
 
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-05 17:38 [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333 Helge Eichelberg
@ 2018-06-06 15:21 ` Pali Rohár
  2018-06-06 15:39   ` Guenter Roeck
  2018-06-07  6:04   ` Helge Eichelberg
  0 siblings, 2 replies; 7+ messages in thread
From: Pali Rohár @ 2018-06-06 15:21 UTC (permalink / raw)
  To: Helge Eichelberg; +Cc: Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
> Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
> XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
> disable fan support for Dell XPS13 9333.

Hi! Have you reported this firmware bug to Dell?

Also we should probably match also BIOS version and do not apply this
blacklist quirk for BIOS versions in which Dell fixed it.

> Via "force" module param fan support can be enabled.
> 
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
> Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
> ---
>  drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> index bf3bb7e1adab..9d3ef879dc51 100644
> --- a/drivers/hwmon/dell-smm-hwmon.c
> +++ b/drivers/hwmon/dell-smm-hwmon.c
> @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
>  			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
>  		},
>  	},
> +	{
> +		.ident = "Dell XPS13 9333",
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
> +		},
> +	},
>  	{ }
>  };
>  

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-06 15:21 ` Pali Rohár
@ 2018-06-06 15:39   ` Guenter Roeck
  2018-06-07  6:04   ` Helge Eichelberg
  1 sibling, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2018-06-06 15:39 UTC (permalink / raw)
  To: Pali Rohár, Helge Eichelberg; +Cc: Jean Delvare, linux-hwmon, linux-kernel

On 06/06/2018 08:21 AM, Pali Rohár wrote:
> On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
>> Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
>> XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
>> disable fan support for Dell XPS13 9333.
> 
> Hi! Have you reported this firmware bug to Dell?
> 
> Also we should probably match also BIOS version and do not apply this
> blacklist quirk for BIOS versions in which Dell fixed it.
> 

Is it known to have been fixed ? If so, why report it to Dell ?

If the problem is not known to be fixed, we have no BIOS version to match against.

Guenter

>> Via "force" module param fan support can be enabled.
>>
>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
>> Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
>> ---
>>   drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
>>   1 file changed, 7 insertions(+)
>>
>> diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
>> index bf3bb7e1adab..9d3ef879dc51 100644
>> --- a/drivers/hwmon/dell-smm-hwmon.c
>> +++ b/drivers/hwmon/dell-smm-hwmon.c
>> @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
>>   			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
>>   		},
>>   	},
>> +	{
>> +		.ident = "Dell XPS13 9333",
>> +		.matches = {
>> +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
>> +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
>> +		},
>> +	},
>>   	{ }
>>   };
>>   
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-06 15:21 ` Pali Rohár
  2018-06-06 15:39   ` Guenter Roeck
@ 2018-06-07  6:04   ` Helge Eichelberg
  2018-06-07  8:25     ` Pali Rohár
  1 sibling, 1 reply; 7+ messages in thread
From: Helge Eichelberg @ 2018-06-07  6:04 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel

On Wed, 6 Jun 2018 17:21:34 +0200
Pali Rohár <pali.rohar@gmail.com> wrote:

> On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
> > Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
> > XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
> > disable fan support for Dell XPS13 9333.
> 
> Hi! Have you reported this firmware bug to Dell?

No, I haven't.

> Also we should probably match also BIOS version and do not apply this
> blacklist quirk for BIOS versions in which Dell fixed it.

The BIOS hasn't been updated since 08/31/2015 and I'm running the latest version (A08). I wonder if Dell cares anymore about the 9333 which has been replaced by the 9343 in early 2015. Nevertheless, should I add a line matching the BIOS version and should it look like this?

DMI_EXACT_MATCH(DMI_BIOS_VERSION, "A08")

Helge

> > Via "force" module param fan support can be enabled.
> > 
> > Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
> > Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
> > ---
> >  drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
> >  1 file changed, 7 insertions(+)
> > 
> > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> > index bf3bb7e1adab..9d3ef879dc51 100644
> > --- a/drivers/hwmon/dell-smm-hwmon.c
> > +++ b/drivers/hwmon/dell-smm-hwmon.c
> > @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
> >  			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
> >  		},
> >  	},
> > +	{
> > +		.ident = "Dell XPS13 9333",
> > +		.matches = {
> > +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> > +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
> > +		},
> > +	},
> >  	{ }
> >  };
> >  
> 
> -- 
> Pali Rohár
> pali.rohar@gmail.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-07  6:04   ` Helge Eichelberg
@ 2018-06-07  8:25     ` Pali Rohár
  2018-06-08 13:51       ` Guenter Roeck
  0 siblings, 1 reply; 7+ messages in thread
From: Pali Rohár @ 2018-06-07  8:25 UTC (permalink / raw)
  To: Helge Eichelberg; +Cc: Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel

On Thursday 07 June 2018 08:04:55 Helge Eichelberg wrote:
> On Wed, 6 Jun 2018 17:21:34 +0200
> Pali Rohár <pali.rohar@gmail.com> wrote:
> 
> > On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
> > > Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
> > > XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
> > > disable fan support for Dell XPS13 9333.
> > 
> > Hi! Have you reported this firmware bug to Dell?
> 
> No, I haven't.

Mario (from @Dell) wrote on github, that we should start reporting
firmware bugs to Dell as "voice of the customer is the most important".
https://github.com/dell/libsmbios/issues/48#issuecomment-393527813

> > Also we should probably match also BIOS version and do not apply this
> > blacklist quirk for BIOS versions in which Dell fixed it.
> 
> The BIOS hasn't been updated since 08/31/2015 and I'm running the latest version (A08). I wonder if Dell cares anymore about the 9333 which has been replaced by the 9343 in early 2015. Nevertheless, should I add a line matching the BIOS version and should it look like this?

Ok, I was in impression that it was fixed or was going to be fixed. This
looks like that laptop does not have any support. In this case would
need to blacklist it for all bios version and forever. So no match for
bios version. Maybe you should re-phrase commit message to indicate that
Dell probably does not fix it. Or drop that sentence "Until Dell...".

> DMI_EXACT_MATCH(DMI_BIOS_VERSION, "A08")
> 
> Helge
> 
> > > Via "force" module param fan support can be enabled.
> > > 
> > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
> > > Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
> > > ---
> > >  drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
> > >  1 file changed, 7 insertions(+)
> > > 
> > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> > > index bf3bb7e1adab..9d3ef879dc51 100644
> > > --- a/drivers/hwmon/dell-smm-hwmon.c
> > > +++ b/drivers/hwmon/dell-smm-hwmon.c
> > > @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
> > >  			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
> > >  		},
> > >  	},
> > > +	{
> > > +		.ident = "Dell XPS13 9333",
> > > +		.matches = {
> > > +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> > > +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
> > > +		},
> > > +	},
> > >  	{ }
> > >  };
> > >  
> > 
> > -- 
> > Pali Rohár
> > pali.rohar@gmail.com

-- 
Pali Rohár
pali.rohar@gmail.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-07  8:25     ` Pali Rohár
@ 2018-06-08 13:51       ` Guenter Roeck
  2018-06-08 13:58         ` Pali Rohár
  0 siblings, 1 reply; 7+ messages in thread
From: Guenter Roeck @ 2018-06-08 13:51 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Helge Eichelberg, Jean Delvare, linux-hwmon, linux-kernel

On Thu, Jun 07, 2018 at 10:25:42AM +0200, Pali Rohár wrote:
> On Thursday 07 June 2018 08:04:55 Helge Eichelberg wrote:
> > On Wed, 6 Jun 2018 17:21:34 +0200
> > Pali Rohár <pali.rohar@gmail.com> wrote:
> > 
> > > On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
> > > > Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
> > > > XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
> > > > disable fan support for Dell XPS13 9333.
> > > 
> > > Hi! Have you reported this firmware bug to Dell?
> > 
> > No, I haven't.
> 
> Mario (from @Dell) wrote on github, that we should start reporting
> firmware bugs to Dell as "voice of the customer is the most important".
> https://github.com/dell/libsmbios/issues/48#issuecomment-393527813
> 
> > > Also we should probably match also BIOS version and do not apply this
> > > blacklist quirk for BIOS versions in which Dell fixed it.
> > 
> > The BIOS hasn't been updated since 08/31/2015 and I'm running the latest version (A08). I wonder if Dell cares anymore about the 9333 which has been replaced by the 9343 in early 2015. Nevertheless, should I add a line matching the BIOS version and should it look like this?
> 
> Ok, I was in impression that it was fixed or was going to be fixed. This
> looks like that laptop does not have any support. In this case would
> need to blacklist it for all bios version and forever. So no match for
> bios version. Maybe you should re-phrase commit message to indicate that
> Dell probably does not fix it. Or drop that sentence "Until Dell...".
> 
Those would just be assumptions and not add any value to the commit log.
I don't recall similar comments for previous patches either, and it is not
as if Dell stopped supporting Linux only recently. I'll apply the patch
as-is; I don't see value in a respin.

Guenter

> > DMI_EXACT_MATCH(DMI_BIOS_VERSION, "A08")
> > 
> > Helge
> > 
> > > > Via "force" module param fan support can be enabled.
> > > > 
> > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
> > > > Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
> > > > ---
> > > >  drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
> > > >  1 file changed, 7 insertions(+)
> > > > 
> > > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> > > > index bf3bb7e1adab..9d3ef879dc51 100644
> > > > --- a/drivers/hwmon/dell-smm-hwmon.c
> > > > +++ b/drivers/hwmon/dell-smm-hwmon.c
> > > > @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
> > > >  			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
> > > >  		},
> > > >  	},
> > > > +	{
> > > > +		.ident = "Dell XPS13 9333",
> > > > +		.matches = {
> > > > +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> > > > +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
> > > > +		},
> > > > +	},
> > > >  	{ }
> > > >  };
> > > >  
> > > 
> > > -- 
> > > Pali Rohár
> > > pali.rohar@gmail.com
> 
> -- 
> Pali Rohár
> pali.rohar@gmail.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
  2018-06-08 13:51       ` Guenter Roeck
@ 2018-06-08 13:58         ` Pali Rohár
  0 siblings, 0 replies; 7+ messages in thread
From: Pali Rohár @ 2018-06-08 13:58 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Helge Eichelberg, Jean Delvare, linux-hwmon, linux-kernel

On Friday 08 June 2018 06:51:55 Guenter Roeck wrote:
> On Thu, Jun 07, 2018 at 10:25:42AM +0200, Pali Rohár wrote:
> > On Thursday 07 June 2018 08:04:55 Helge Eichelberg wrote:
> > > On Wed, 6 Jun 2018 17:21:34 +0200
> > > Pali Rohár <pali.rohar@gmail.com> wrote:
> > > 
> > > > On Tuesday 05 June 2018 19:38:32 Helge Eichelberg wrote:
> > > > > Calling fan related SMM functions implemented by Dell BIOS firmware on Dell
> > > > > XPS13 9333 freeze kernel for about 500ms. Until Dell fixes it we need to
> > > > > disable fan support for Dell XPS13 9333.
> > > > 
> > > > Hi! Have you reported this firmware bug to Dell?
> > > 
> > > No, I haven't.
> > 
> > Mario (from @Dell) wrote on github, that we should start reporting
> > firmware bugs to Dell as "voice of the customer is the most important".
> > https://github.com/dell/libsmbios/issues/48#issuecomment-393527813
> > 
> > > > Also we should probably match also BIOS version and do not apply this
> > > > blacklist quirk for BIOS versions in which Dell fixed it.
> > > 
> > > The BIOS hasn't been updated since 08/31/2015 and I'm running the latest version (A08). I wonder if Dell cares anymore about the 9333 which has been replaced by the 9343 in early 2015. Nevertheless, should I add a line matching the BIOS version and should it look like this?
> > 
> > Ok, I was in impression that it was fixed or was going to be fixed. This
> > looks like that laptop does not have any support. In this case would
> > need to blacklist it for all bios version and forever. So no match for
> > bios version. Maybe you should re-phrase commit message to indicate that
> > Dell probably does not fix it. Or drop that sentence "Until Dell...".
> > 
> Those would just be assumptions and not add any value to the commit log.
> I don't recall similar comments for previous patches either, and it is not
> as if Dell stopped supporting Linux only recently. I'll apply the patch
> as-is; I don't see value in a respin.

Ok. I have no objections. That was only suggestion. Also you can add my

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>

Anyway, if last version of Bios was released 3 years ago, I really doubt
that something is going to be fixed...

> Guenter
> 
> > > DMI_EXACT_MATCH(DMI_BIOS_VERSION, "A08")
> > > 
> > > Helge
> > > 
> > > > > Via "force" module param fan support can be enabled.
> > > > > 
> > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=195751
> > > > > Signed-off-by: Helge Eichelberg <kernelorg@elchenberg.name>
> > > > > ---
> > > > >  drivers/hwmon/dell-smm-hwmon.c | 7 +++++++
> > > > >  1 file changed, 7 insertions(+)
> > > > > 
> > > > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> > > > > index bf3bb7e1adab..9d3ef879dc51 100644
> > > > > --- a/drivers/hwmon/dell-smm-hwmon.c
> > > > > +++ b/drivers/hwmon/dell-smm-hwmon.c
> > > > > @@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = {
> > > > >  			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
> > > > >  		},
> > > > >  	},
> > > > > +	{
> > > > > +		.ident = "Dell XPS13 9333",
> > > > > +		.matches = {
> > > > > +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> > > > > +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"),
> > > > > +		},
> > > > > +	},
> > > > >  	{ }
> > > > >  };
> > > > >  
> > > > 
> > > > -- 
> > > > Pali Rohár
> > > > pali.rohar@gmail.com
> > 
> > -- 
> > Pali Rohár
> > pali.rohar@gmail.com

-- 
Pali Rohár
pali.rohar@gmail.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-08 13:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-05 17:38 [PATCH] hwmon: (dell-smm) Disable fan support for Dell XPS13 9333 Helge Eichelberg
2018-06-06 15:21 ` Pali Rohár
2018-06-06 15:39   ` Guenter Roeck
2018-06-07  6:04   ` Helge Eichelberg
2018-06-07  8:25     ` Pali Rohár
2018-06-08 13:51       ` Guenter Roeck
2018-06-08 13:58         ` Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).